diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 567119a..e6caa4e 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -33,10 +33,11 @@ val generateFilcApiClient by tasks.registering(GenerateTask::class) { packageName.set("hu.petrik.filcapp.api") apiPackage.set("hu.petrik.filcapp.api.client") modelPackage.set("hu.petrik.filcapp.api.model") + generateModelTests.set(false) + generateApiTests.set(false) configOptions.set( mapOf( "dateLibrary" to "string", - "serializationLibrary" to "kotlinx_serialization", "omitGradleWrapper" to "true", "omitGradlePluginVersions" to "true", ), diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/ApiKeyAuth.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/ApiKeyAuth.kt index a27acdf..5e5db26 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/ApiKeyAuth.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/ApiKeyAuth.kt @@ -1,21 +1,16 @@ package hu.petrik.filcapp.api.auth -class ApiKeyAuth( - private val location: String, - val paramName: String, -) : Authentication { +class ApiKeyAuth(private val location: String, val paramName: String) : Authentication { var apiKey: String? = null var apiKeyPrefix: String? = null - override fun apply( - query: MutableMap>, - headers: MutableMap, - ) { + override fun apply(query: MutableMap>, headers: MutableMap) { val key: String = apiKey ?: return + val prefix: String? = apiKeyPrefix + val value: String = if (prefix != null) "$prefix $key" else key when (location) { - "cookie" -> Unit - "query" -> query[paramName] = listOf(key) - "header" -> headers[paramName] = key + "query" -> query[paramName] = listOf(value) + "header" -> headers[paramName] = value } } } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/Authentication.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/Authentication.kt index 5af1290..ca5adc4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/Authentication.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/Authentication.kt @@ -1,14 +1,13 @@ package hu.petrik.filcapp.api.auth interface Authentication { + /** * Apply authentication settings to header and query params. * * @param query Query parameters. * @param headers Header parameters. */ - fun apply( - query: MutableMap>, - headers: MutableMap, - ) + fun apply(query: MutableMap>, headers: MutableMap) + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/HttpBasicAuth.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/HttpBasicAuth.kt index 75cf24e..15cae75 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/HttpBasicAuth.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/HttpBasicAuth.kt @@ -1,18 +1,15 @@ package hu.petrik.filcapp.api.auth -import io.ktor.util.encodeBase64 +import kotlin.io.encoding.Base64 class HttpBasicAuth : Authentication { var username: String? = null var password: String? = null - override fun apply( - query: MutableMap>, - headers: MutableMap, - ) { + override fun apply(query: MutableMap>, headers: MutableMap) { if (username == null && password == null) return val str = (username ?: "") + ":" + (password ?: "") - val auth = str.encodeBase64() + val auth = Base64.encode(str.encodeToByteArray()) headers["Authorization"] = "Basic $auth" } } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/HttpBearerAuth.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/HttpBearerAuth.kt index 2b16246..49875e6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/HttpBearerAuth.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/HttpBearerAuth.kt @@ -1,17 +1,14 @@ package hu.petrik.filcapp.api.auth -class HttpBearerAuth( - private val scheme: String?, -) : Authentication { +class HttpBearerAuth(private val scheme: String?) : Authentication { var bearerToken: String? = null - override fun apply( - query: MutableMap>, - headers: MutableMap, - ) { + override fun apply(query: MutableMap>, headers: MutableMap) { val token: String = bearerToken ?: return headers["Authorization"] = (if (scheme != null) upperCaseBearer(scheme)!! + " " else "") + token } - private fun upperCaseBearer(scheme: String): String? = if ("bearer".equals(scheme, ignoreCase = true)) "Bearer" else scheme + private fun upperCaseBearer(scheme: String): String? { + return if ("bearer".equals(scheme, ignoreCase = true)) "Bearer" else scheme + } } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/OAuth.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/OAuth.kt index 44ed153..fa1e391 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/OAuth.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/auth/OAuth.kt @@ -3,10 +3,7 @@ package hu.petrik.filcapp.api.auth class OAuth : Authentication { var accessToken: String? = null - override fun apply( - query: MutableMap>, - headers: MutableMap, - ) { + override fun apply(query: MutableMap>, headers: MutableMap) { val token: String = accessToken ?: return headers["Authorization"] = "Bearer $token" } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/APIKeysApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/APIKeysApi.kt index 000aca5..9c6b7f0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/APIKeysApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/APIKeysApi.kt @@ -8,77 +8,92 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetAdminApiKeys200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyIdRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class APIKeysApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Revoke any user's API key - * @param keyId + * @param keyId * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteAdminApiKeysByKeyId(keyId: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/admin/api-keys/{keyId}".replace("{" + "keyId" + "}", "$keyId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/admin/api-keys/{keyId}".replace("{" + "keyId" + "}", "$keyId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List every user's API keys * @param limit (optional, default to 20) * @param offset (optional, default to 0) @@ -87,15 +102,11 @@ open class APIKeysApi : ApiClient { * @return GetAdminApiKeys200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getAdminApiKeys( - limit: kotlin.Double? = 20.toDouble(), - offset: kotlin.Double? = 0.toDouble(), - ownerId: kotlin.String? = null, - search: kotlin.String? = null, - ): HttpResponse { + open suspend fun getAdminApiKeys(limit: kotlin.Double? = 20.toDouble(), offset: kotlin.Double? = 0.toDouble(), ownerId: kotlin.String? = null, search: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -105,34 +116,32 @@ open class APIKeysApi : ApiClient { search?.apply { localVariableQuery["search"] = listOf("$search") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/admin/api-keys", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/admin/api-keys", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Enable or disable any user's API key - * @param keyId - * @param patchAdminApiKeysByKeyIdRequest + * @param keyId + * @param patchAdminApiKeysByKeyIdRequest * @return PatchAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchAdminApiKeysByKeyId( - keyId: kotlin.String, - patchAdminApiKeysByKeyIdRequest: PatchAdminApiKeysByKeyIdRequest, - ): HttpResponse { + open suspend fun patchAdminApiKeysByKeyId(keyId: kotlin.String, patchAdminApiKeysByKeyIdRequest: PatchAdminApiKeysByKeyIdRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchAdminApiKeysByKeyIdRequest @@ -140,19 +149,21 @@ open class APIKeysApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/admin/api-keys/{keyId}".replace("{" + "keyId" + "}", "$keyId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/admin/api-keys/{keyId}".replace("{" + "keyId" + "}", "$keyId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/BugReportsApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/BugReportsApi.kt index ebc89e1..d4beaed 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/BugReportsApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/BugReportsApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetBugReport200Response @@ -24,83 +31,93 @@ import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200Response import hu.petrik.filcapp.api.model.PatchBugReportByIdStatusRequest import hu.petrik.filcapp.api.model.PostBugReport201Response import hu.petrik.filcapp.api.model.PostBugReportRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class BugReportsApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a bug report - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteBugReportById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/bug-report/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/bug-report/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** * enum for parameter status */ @Serializable - enum class StatusGetBugReport( - val value: kotlin.String, - ) { + enum class StatusGetBugReport(val value: kotlin.String) { + @SerialName(value = "open") `open`("open"), - + @SerialName(value = "in_progress") in_progress("in_progress"), - + @SerialName(value = "resolved") resolved("resolved"), - + @SerialName(value = "closed") - closed("closed"), + closed("closed"); + + override fun toString(): kotlin.String = value } /** - * + * * List bug reports with optional filters and paging * @param dateFrom (optional) * @param dateTo (optional) @@ -111,17 +128,11 @@ open class BugReportsApi : ApiClient { * @return GetBugReport200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getBugReport( - dateFrom: kotlin.String? = null, - dateTo: kotlin.String? = null, - limit: kotlin.Int? = 20, - page: kotlin.Int? = 1, - search: kotlin.String? = null, - status: StatusGetBugReport? = null, - ): HttpResponse { + open suspend fun getBugReport(dateFrom: kotlin.String? = null, dateTo: kotlin.String? = null, limit: kotlin.Int? = 20, page: kotlin.Int? = 1, search: kotlin.String? = null, status: StatusGetBugReport? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -133,34 +144,32 @@ open class BugReportsApi : ApiClient { status?.apply { localVariableQuery["status"] = listOf("${ status.value }") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/bug-report", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/bug-report", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update a bug report status - * @param id - * @param patchBugReportByIdStatusRequest + * @param id + * @param patchBugReportByIdStatusRequest * @return PatchBugReportByIdStatus200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchBugReportByIdStatus( - id: kotlin.String, - patchBugReportByIdStatusRequest: PatchBugReportByIdStatusRequest, - ): HttpResponse { + open suspend fun patchBugReportByIdStatus(id: kotlin.String, patchBugReportByIdStatusRequest: PatchBugReportByIdStatusRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchBugReportByIdStatusRequest @@ -168,30 +177,32 @@ open class BugReportsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/bug-report/{id}/status".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/bug-report/{id}/status".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a new bug report - * @param postBugReportRequest + * @param postBugReportRequest * @return PostBugReport201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postBugReport(postBugReportRequest: PostBugReportRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postBugReportRequest @@ -199,19 +210,21 @@ open class BugReportsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/bug-report", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/bug-report", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/ClassroomApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/ClassroomApi.kt index a265f85..d9e7c06 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/ClassroomApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/ClassroomApi.kt @@ -8,89 +8,100 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetNavigatorClassrooms200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class ClassroomApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Get all classrooms from the database. * @return GetNavigatorClassrooms200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableClassroomsGetAll(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/classrooms/getAll", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/classrooms/getAll", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get classrooms that are free for a given date, day and period. - * @param date - * @param startingDay - * @param startingPeriod + * @param date + * @param startingDay + * @param startingPeriod * @param timetableId (optional) * @return GetNavigatorClassrooms200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableClassroomsGetAvailable( - date: kotlin.String, - startingDay: kotlin.String, - startingPeriod: kotlin.String, - timetableId: kotlin.String? = null, - ): HttpResponse { + open suspend fun getTimetableClassroomsGetAvailable(date: kotlin.String, startingDay: kotlin.String, startingPeriod: kotlin.String, timetableId: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -100,19 +111,20 @@ open class ClassroomApi : ApiClient { timetableId?.apply { localVariableQuery["timetableId"] = listOf("$timetableId") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/classrooms/getAvailable", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/classrooms/getAvailable", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/CohortApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/CohortApi.kt index 3a2aebf..94149c5 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/CohortApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/CohortApi.kt @@ -8,99 +8,116 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetCohort200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class CohortApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * List all cohorts * @return GetCohort200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getCohort(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/cohort", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/cohort", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get cohorts for a given timetable from the database. - * @param timetableId + * @param timetableId * @return GetCohort200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableCohortsGetAllForTimetableByTimetableId(timetableId: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/cohorts/getAllForTimetable/{timetableId}".replace("{" + "timetableId" + "}", "$timetableId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/cohorts/getAllForTimetable/{timetableId}".replace("{" + "timetableId" + "}", "$timetableId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/DashboardApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/DashboardApi.kt index ce2d0d7..cfb5a23 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/DashboardApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/DashboardApi.kt @@ -8,69 +8,85 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetDashboardStats200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class DashboardApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Get aggregated dashboard statistics * @param days (optional, default to 30) * @return GetDashboardStats200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getDashboardStats(days: kotlin.Int? = 30): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() days?.apply { localVariableQuery["days"] = listOf("$days") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/dashboard/stats", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/dashboard/stats", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/DoorlockApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/DoorlockApi.kt index c9fa532..8e725d3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/DoorlockApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/DoorlockApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetDoorlockCards200Response @@ -37,234 +44,249 @@ import hu.petrik.filcapp.api.model.PostDoorlockSelfCardsByIdActivateRequest import hu.petrik.filcapp.api.model.PutDoorlockCardsByIdRequest import hu.petrik.filcapp.api.model.PutDoorlockDevicesByIdRequest import hu.petrik.filcapp.api.model.PutDoorlockSelfCardsByIdFrozenRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class DoorlockApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete an access card - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteDoorlockCardsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/doorlock/cards/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/doorlock/cards/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a doorlock device - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteDoorlockDevicesById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/doorlock/devices/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/doorlock/devices/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List all access cards * @return GetDoorlockCards200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getDoorlockCards(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/doorlock/cards", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/doorlock/cards", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List users eligible for card ownership * @return GetDoorlockCardsUsers200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getDoorlockCardsUsers(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/doorlock/cards/users", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/doorlock/cards/users", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List all doorlock devices * @return GetDoorlockDevices200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getDoorlockDevices(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/doorlock/devices", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/doorlock/devices", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get device health statistics - * @param id + * @param id * @return GetDoorlockDevicesByIdStats200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getDoorlockDevicesByIdStats(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/doorlock/devices/{id}/stats".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/doorlock/devices/{id}/stats".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** * enum for parameter granted */ @Serializable - enum class GrantedGetDoorlockLogs( - val value: kotlin.String, - ) { + enum class GrantedGetDoorlockLogs(val value: kotlin.String) { + @SerialName(value = "true") `true`("true"), - + @SerialName(value = "false") - `false`("false"), + `false`("false"); + + override fun toString(): kotlin.String = value } /** - * + * * List audit log entries * @param cardId (optional) * @param deviceId (optional) @@ -277,19 +299,11 @@ open class DoorlockApi : ApiClient { * @return GetDoorlockLogs200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getDoorlockLogs( - cardId: kotlin.String? = null, - deviceId: kotlin.String? = null, - from: kotlin.String? = null, - granted: GrantedGetDoorlockLogs? = null, - limit: kotlin.Int? = 500, - search: kotlin.String? = null, - to: kotlin.String? = null, - userId: kotlin.String? = null, - ): HttpResponse { + open suspend fun getDoorlockLogs(cardId: kotlin.String? = null, deviceId: kotlin.String? = null, from: kotlin.String? = null, granted: GrantedGetDoorlockLogs? = null, limit: kotlin.Int? = 500, search: kotlin.String? = null, to: kotlin.String? = null, userId: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -303,38 +317,40 @@ open class DoorlockApi : ApiClient { userId?.apply { localVariableQuery["userId"] = listOf("$userId") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/doorlock/logs", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/doorlock/logs", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** * enum for parameter granted */ @Serializable - enum class GrantedGetDoorlockLogsExport( - val value: kotlin.String, - ) { + enum class GrantedGetDoorlockLogsExport(val value: kotlin.String) { + @SerialName(value = "true") `true`("true"), - + @SerialName(value = "false") - `false`("false"), + `false`("false"); + + override fun toString(): kotlin.String = value } /** - * + * * Export doorlock audit log entries (attendance data) as a CSV file over an optional date range. * @param cardId (optional) * @param deviceId (optional) @@ -346,18 +362,11 @@ open class DoorlockApi : ApiClient { * @return kotlin.String */ @Suppress("UNCHECKED_CAST") - open suspend fun getDoorlockLogsExport( - cardId: kotlin.String? = null, - deviceId: kotlin.String? = null, - from: kotlin.String? = null, - granted: GrantedGetDoorlockLogsExport? = null, - search: kotlin.String? = null, - to: kotlin.String? = null, - userId: kotlin.String? = null, - ): HttpResponse { + open suspend fun getDoorlockLogsExport(cardId: kotlin.String? = null, deviceId: kotlin.String? = null, from: kotlin.String? = null, granted: GrantedGetDoorlockLogsExport? = null, search: kotlin.String? = null, to: kotlin.String? = null, userId: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -370,92 +379,95 @@ open class DoorlockApi : ApiClient { userId?.apply { localVariableQuery["userId"] = listOf("$userId") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/doorlock/logs/export", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/doorlock/logs/export", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List cards owned by the authenticated user * @return GetDoorlockCards200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getDoorlockSelfCards(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/doorlock/self/cards", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/doorlock/self/cards", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get aggregated doorlock statistics * @return GetDoorlockStatsOverview200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getDoorlockStatsOverview(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/doorlock/stats/overview", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/doorlock/stats/overview", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Create a new access card - * @param postDoorlockCardsRequest + * @param postDoorlockCardsRequest * @return PostDoorlockCards201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postDoorlockCards(postDoorlockCardsRequest: PostDoorlockCardsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postDoorlockCardsRequest @@ -463,32 +475,32 @@ open class DoorlockApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/doorlock/cards", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/doorlock/cards", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a new doorlock device - * @param postDoorlockDevicesRequest + * @param postDoorlockDevicesRequest * @return PostDoorlockDevices201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postDoorlockDevices( - postDoorlockDevicesRequest: PostDoorlockDevicesRequest, - ): HttpResponse { + open suspend fun postDoorlockDevices(postDoorlockDevicesRequest: PostDoorlockDevicesRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postDoorlockDevicesRequest @@ -496,34 +508,33 @@ open class DoorlockApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/doorlock/devices", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/doorlock/devices", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Trigger an OTA update on a specific device - * @param id - * @param postDoorlockDevicesByIdUpdateRequest + * @param id + * @param postDoorlockDevicesByIdUpdateRequest * @return PostDoorlockDevicesByIdUpdate200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postDoorlockDevicesByIdUpdate( - id: kotlin.String, - postDoorlockDevicesByIdUpdateRequest: PostDoorlockDevicesByIdUpdateRequest, - ): HttpResponse { + open suspend fun postDoorlockDevicesByIdUpdate(id: kotlin.String, postDoorlockDevicesByIdUpdateRequest: PostDoorlockDevicesByIdUpdateRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postDoorlockDevicesByIdUpdateRequest @@ -531,32 +542,32 @@ open class DoorlockApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/doorlock/devices/{id}/update".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/doorlock/devices/{id}/update".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Trigger an OTA update on all devices - * @param postDoorlockDevicesByIdUpdateRequest + * @param postDoorlockDevicesByIdUpdateRequest * @return PostDoorlockDevicesUpdate200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postDoorlockDevicesUpdate( - postDoorlockDevicesByIdUpdateRequest: PostDoorlockDevicesByIdUpdateRequest, - ): HttpResponse { + open suspend fun postDoorlockDevicesUpdate(postDoorlockDevicesByIdUpdateRequest: PostDoorlockDevicesByIdUpdateRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postDoorlockDevicesByIdUpdateRequest @@ -564,34 +575,33 @@ open class DoorlockApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/doorlock/devices/update", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/doorlock/devices/update", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Activate an authorized device using a user-owned virtual card - * @param id + * @param id * @param postDoorlockSelfCardsByIdActivateRequest (optional) * @return PostDoorlockSelfCardsByIdActivate200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postDoorlockSelfCardsByIdActivate( - id: kotlin.String, - postDoorlockSelfCardsByIdActivateRequest: PostDoorlockSelfCardsByIdActivateRequest? = null, - ): HttpResponse { + open suspend fun postDoorlockSelfCardsByIdActivate(id: kotlin.String, postDoorlockSelfCardsByIdActivateRequest: PostDoorlockSelfCardsByIdActivateRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postDoorlockSelfCardsByIdActivateRequest @@ -599,34 +609,33 @@ open class DoorlockApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/doorlock/self/cards/{id}/activate".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/doorlock/self/cards/{id}/activate".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update an access card - * @param id - * @param putDoorlockCardsByIdRequest + * @param id + * @param putDoorlockCardsByIdRequest * @return PostDoorlockCards201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putDoorlockCardsById( - id: kotlin.String, - putDoorlockCardsByIdRequest: PutDoorlockCardsByIdRequest, - ): HttpResponse { + open suspend fun putDoorlockCardsById(id: kotlin.String, putDoorlockCardsByIdRequest: PutDoorlockCardsByIdRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putDoorlockCardsByIdRequest @@ -634,34 +643,33 @@ open class DoorlockApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/doorlock/cards/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/doorlock/cards/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update an existing doorlock device - * @param id - * @param putDoorlockDevicesByIdRequest + * @param id + * @param putDoorlockDevicesByIdRequest * @return PostDoorlockDevices201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putDoorlockDevicesById( - id: kotlin.String, - putDoorlockDevicesByIdRequest: PutDoorlockDevicesByIdRequest, - ): HttpResponse { + open suspend fun putDoorlockDevicesById(id: kotlin.String, putDoorlockDevicesByIdRequest: PutDoorlockDevicesByIdRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putDoorlockDevicesByIdRequest @@ -669,34 +677,33 @@ open class DoorlockApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/doorlock/devices/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/doorlock/devices/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update the frozen state of a user-owned card - * @param id - * @param putDoorlockSelfCardsByIdFrozenRequest + * @param id + * @param putDoorlockSelfCardsByIdFrozenRequest * @return PostDoorlockCards201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putDoorlockSelfCardsByIdFrozen( - id: kotlin.String, - putDoorlockSelfCardsByIdFrozenRequest: PutDoorlockSelfCardsByIdFrozenRequest, - ): HttpResponse { + open suspend fun putDoorlockSelfCardsByIdFrozen(id: kotlin.String, putDoorlockSelfCardsByIdFrozenRequest: PutDoorlockSelfCardsByIdFrozenRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putDoorlockSelfCardsByIdFrozenRequest @@ -704,19 +711,21 @@ open class DoorlockApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/doorlock/self/cards/{id}/frozen".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/doorlock/self/cards/{id}/frozen".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/GroupApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/GroupApi.kt index 8e3864e..f6ffd8b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/GroupApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/GroupApi.kt @@ -8,85 +8,97 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetTimetableGroupsGetForCohortByCohortId200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.PostTimetableGroupsSelect200Response import hu.petrik.filcapp.api.model.PostTimetableGroupsSelectRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class GroupApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Get the groups of a cohort, marking the current user selection. - * @param cohortId + * @param cohortId * @return GetTimetableGroupsGetForCohortByCohortId200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableGroupsGetForCohortByCohortId( - cohortId: kotlin.String, - ): HttpResponse { + open suspend fun getTimetableGroupsGetForCohortByCohortId(cohortId: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/groups/getForCohort/{cohortId}".replace("{" + "cohortId" + "}", "$cohortId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/groups/getForCohort/{cohortId}".replace("{" + "cohortId" + "}", "$cohortId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Select the group the current user belongs to for a division. Replaces any previous membership in that division. - * @param postTimetableGroupsSelectRequest + * @param postTimetableGroupsSelectRequest * @return PostTimetableGroupsSelect200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableGroupsSelect( - postTimetableGroupsSelectRequest: PostTimetableGroupsSelectRequest, - ): HttpResponse { + open suspend fun postTimetableGroupsSelect(postTimetableGroupsSelectRequest: PostTimetableGroupsSelectRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postTimetableGroupsSelectRequest @@ -94,19 +106,21 @@ open class GroupApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/groups/select", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/groups/select", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/HealthApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/HealthApi.kt index d584ab1..c69a546 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/HealthApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/HealthApi.kt @@ -8,67 +8,83 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetHealth200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class HealthApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Readiness probe: answers 200 only when PostgreSQL is reachable. * @return GetHealth200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getHealth(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/health", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/health", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/ImportApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/ImportApi.kt index 42510b3..c429bc3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/ImportApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/ImportApi.kt @@ -8,50 +8,63 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.PostDoorlockDevicesByIdUpdate200Response import hu.petrik.filcapp.api.model.PostTimetableImportRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class ImportApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Import a timetable from an Oman or aSc 2012 XML file. - * @param postTimetableImportRequest + * @param postTimetableImportRequest * @return PostDoorlockDevicesByIdUpdate200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableImport( - postTimetableImportRequest: PostTimetableImportRequest, - ): HttpResponse { + open suspend fun postTimetableImport(postTimetableImportRequest: PostTimetableImportRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postTimetableImportRequest @@ -59,19 +72,21 @@ open class ImportApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/import", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/import", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/KioskApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/KioskApi.kt index d1d8e3b..f4a54cc 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/KioskApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/KioskApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetKiosk200Response @@ -30,227 +37,241 @@ import hu.petrik.filcapp.api.model.PostKioskHeartbeat200Response import hu.petrik.filcapp.api.model.PostKioskHeartbeatRequest import hu.petrik.filcapp.api.model.PostKioskRequest import hu.petrik.filcapp.api.model.PutKioskByIdRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class KioskApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a kiosk - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteKioskById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/kiosk/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/kiosk/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List all kiosks * @return GetKiosk200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getKiosk(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/kiosk", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/kiosk", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Active, titled, non-cohort-scoped announcements for the TV kiosk marquee * @return GetKioskNews200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getKioskNews(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/kiosk/news", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/kiosk/news", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * The image an announcement shows on the kiosk, as stored - * @param id + * @param id * @return kotlin.String */ @Suppress("UNCHECKED_CAST") open suspend fun getKioskNewsByIdImage(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/kiosk/news/{id}/image".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/kiosk/news/{id}/image".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * petrik.hu news for the navigator kiosk, cached for ten minutes * @param machine (optional) * @return GetKioskPetrikNews200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getKioskPetrikNews(machine: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() machine?.apply { localVariableQuery["machine"] = listOf("$machine") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/kiosk/petrik-news", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/kiosk/petrik-news", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Current weather for the TV kiosk, cached for ten minutes * @return GetKioskWeather200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getKioskWeather(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/kiosk/weather", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/kiosk/weather", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Register a kiosk - * @param postKioskRequest + * @param postKioskRequest * @return PostKiosk201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postKiosk(postKioskRequest: PostKioskRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postKioskRequest @@ -258,32 +279,32 @@ open class KioskApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/kiosk", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/kiosk", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Next departure per configured group, trying each stop in order - * @param postKioskDeparturesRequest + * @param postKioskDeparturesRequest * @return PostKioskDepartures200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postKioskDepartures( - postKioskDeparturesRequest: PostKioskDeparturesRequest, - ): HttpResponse { + open suspend fun postKioskDepartures(postKioskDeparturesRequest: PostKioskDeparturesRequest): HttpResponse { + val localVariableAuthNames = listOf() val localVariableBody = postKioskDeparturesRequest @@ -291,30 +312,32 @@ open class KioskApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/kiosk/departures", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/kiosk/departures", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Record a kiosk heartbeat and report whether the box is registered and enabled - * @param postKioskHeartbeatRequest + * @param postKioskHeartbeatRequest * @return PostKioskHeartbeat200Response */ @Suppress("UNCHECKED_CAST") open suspend fun postKioskHeartbeat(postKioskHeartbeatRequest: PostKioskHeartbeatRequest): HttpResponse { + val localVariableAuthNames = listOf() val localVariableBody = postKioskHeartbeatRequest @@ -322,34 +345,33 @@ open class KioskApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/kiosk/heartbeat", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/kiosk/heartbeat", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a kiosk - * @param id + * @param id * @param putKioskByIdRequest (optional) * @return PostKiosk201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putKioskById( - id: kotlin.String, - putKioskByIdRequest: PutKioskByIdRequest? = null, - ): HttpResponse { + open suspend fun putKioskById(id: kotlin.String, putKioskByIdRequest: PutKioskByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putKioskByIdRequest @@ -357,19 +379,21 @@ open class KioskApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/kiosk/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/kiosk/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/LessonApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/LessonApi.kt index 1cee6c4..804b5e3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/LessonApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/LessonApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForCohortByCohortId200Response import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForIdByLessonId200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response @@ -23,184 +30,183 @@ import hu.petrik.filcapp.api.model.PostTimetableLessonsGetForTeachers200Response import hu.petrik.filcapp.api.model.PostTimetableLessonsGetForTeachersRequest import hu.petrik.filcapp.api.model.PostTimetableLessonsGetSubstitutionCandidates200Response import hu.petrik.filcapp.api.model.PostTimetableLessonsGetSubstitutionCandidatesRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class LessonApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Get lessons for a given cohort from the database. - * @param cohortId + * @param cohortId * @param timetableId (optional) * @return GetTimetableLessonsGetForCohortByCohortId200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableLessonsGetForCohortByCohortId( - cohortId: kotlin.String, - timetableId: kotlin.String? = null, - ): HttpResponse { + open suspend fun getTimetableLessonsGetForCohortByCohortId(cohortId: kotlin.String, timetableId: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() timetableId?.apply { localVariableQuery["timetableId"] = listOf("$timetableId") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/lessons/getForCohort/{cohortId}".replace("{" + "cohortId" + "}", "$cohortId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/lessons/getForCohort/{cohortId}".replace("{" + "cohortId" + "}", "$cohortId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get a lesson by its ID from the database. - * @param lessonId + * @param lessonId * @return GetTimetableLessonsGetForIdByLessonId200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableLessonsGetForIdByLessonId( - lessonId: kotlin.String, - ): HttpResponse { + open suspend fun getTimetableLessonsGetForIdByLessonId(lessonId: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/lessons/getForId/{lessonId}".replace("{" + "lessonId" + "}", "$lessonId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/lessons/getForId/{lessonId}".replace("{" + "lessonId" + "}", "$lessonId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get lessons for a given classroom from the database. - * @param classroomId + * @param classroomId * @param timetableId (optional) * @return GetTimetableLessonsGetForCohortByCohortId200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableLessonsGetForRoomByClassroomId( - classroomId: kotlin.String, - timetableId: kotlin.String? = null, - ): HttpResponse { + open suspend fun getTimetableLessonsGetForRoomByClassroomId(classroomId: kotlin.String, timetableId: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() timetableId?.apply { localVariableQuery["timetableId"] = listOf("$timetableId") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/lessons/getForRoom/{classroomId}".replace("{" + "classroomId" + "}", "$classroomId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/lessons/getForRoom/{classroomId}".replace("{" + "classroomId" + "}", "$classroomId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get lessons for a given teacher from the database. - * @param teacherId + * @param teacherId * @param timetableId (optional) * @return GetTimetableLessonsGetForCohortByCohortId200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableLessonsGetForTeacherByTeacherId( - teacherId: kotlin.String, - timetableId: kotlin.String? = null, - ): HttpResponse { + open suspend fun getTimetableLessonsGetForTeacherByTeacherId(teacherId: kotlin.String, timetableId: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() timetableId?.apply { localVariableQuery["timetableId"] = listOf("$timetableId") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/lessons/getForTeacher/{teacherId}".replace("{" + "teacherId" + "}", "$teacherId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/lessons/getForTeacher/{teacherId}".replace("{" + "teacherId" + "}", "$teacherId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get lessons for multiple teachers in a single request. - * @param postTimetableLessonsGetForTeachersRequest + * @param postTimetableLessonsGetForTeachersRequest * @return PostTimetableLessonsGetForTeachers200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableLessonsGetForTeachers( - postTimetableLessonsGetForTeachersRequest: PostTimetableLessonsGetForTeachersRequest, - ): HttpResponse { + open suspend fun postTimetableLessonsGetForTeachers(postTimetableLessonsGetForTeachersRequest: PostTimetableLessonsGetForTeachersRequest): HttpResponse { + val localVariableAuthNames = listOf() val localVariableBody = postTimetableLessonsGetForTeachersRequest @@ -208,32 +214,32 @@ open class LessonApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/lessons/getForTeachers", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/lessons/getForTeachers", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Get available lessons and substitute teacher candidates for substitution editing in one request. - * @param postTimetableLessonsGetSubstitutionCandidatesRequest + * @param postTimetableLessonsGetSubstitutionCandidatesRequest * @return PostTimetableLessonsGetSubstitutionCandidates200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableLessonsGetSubstitutionCandidates( - postTimetableLessonsGetSubstitutionCandidatesRequest: PostTimetableLessonsGetSubstitutionCandidatesRequest, - ): HttpResponse { + open suspend fun postTimetableLessonsGetSubstitutionCandidates(postTimetableLessonsGetSubstitutionCandidatesRequest: PostTimetableLessonsGetSubstitutionCandidatesRequest): HttpResponse { + val localVariableAuthNames = listOf() val localVariableBody = postTimetableLessonsGetSubstitutionCandidatesRequest @@ -241,19 +247,21 @@ open class LessonApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/lessons/getSubstitutionCandidates", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/lessons/getSubstitutionCandidates", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/MovedLessonApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/MovedLessonApi.kt index 6c67bcf..abe425a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/MovedLessonApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/MovedLessonApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetTimetableMovedLessons200Response @@ -23,173 +30,180 @@ import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.PostTimetableMovedLessons200Response import hu.petrik.filcapp.api.model.PostTimetableMovedLessonsRequest import hu.petrik.filcapp.api.model.PutTimetableMovedLessonsByIdRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class MovedLessonApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a moved lesson - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteTimetableMovedLessonsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/timetable/movedLessons/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/timetable/movedLessons/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get all moved lessons. * @return GetTimetableMovedLessons200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableMovedLessons(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/movedLessons", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/movedLessons", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get all moved lessons for a cohort. - * @param cohortId + * @param cohortId * @return GetTimetableMovedLessons200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableMovedLessonsCohortByCohortId(cohortId: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/movedLessons/cohort/{cohortId}".replace("{" + "cohortId" + "}", "$cohortId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/movedLessons/cohort/{cohortId}".replace("{" + "cohortId" + "}", "$cohortId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get all relevant moved lessons for a given cohort. - * @param cohortId + * @param cohortId * @return GetTimetableMovedLessons200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableMovedLessonsCohortByCohortIdRelevant( - cohortId: kotlin.String, - ): HttpResponse { + open suspend fun getTimetableMovedLessonsCohortByCohortIdRelevant(cohortId: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/movedLessons/cohort/{cohortId}/relevant".replace("{" + "cohortId" + "}", "$cohortId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/movedLessons/cohort/{cohortId}/relevant".replace("{" + "cohortId" + "}", "$cohortId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Export moved lessons as a CSV file over an optional date range. * @param from (optional) * @param to (optional) * @return kotlin.String */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableMovedLessonsExport( - from: kotlin.String? = null, - to: kotlin.String? = null, - ): HttpResponse { + open suspend fun getTimetableMovedLessonsExport(from: kotlin.String? = null, to: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -197,63 +211,63 @@ open class MovedLessonApi : ApiClient { to?.apply { localVariableQuery["to"] = listOf("$to") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/movedLessons/export", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/movedLessons/export", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get relevant moved lessons for the active timetable. * @return GetTimetableMovedLessons200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableMovedLessonsRelevant(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/movedLessons/relevant", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/movedLessons/relevant", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Create a moved lesson. - * @param postTimetableMovedLessonsRequest + * @param postTimetableMovedLessonsRequest * @return PostTimetableMovedLessons200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableMovedLessons( - postTimetableMovedLessonsRequest: PostTimetableMovedLessonsRequest, - ): HttpResponse { + open suspend fun postTimetableMovedLessons(postTimetableMovedLessonsRequest: PostTimetableMovedLessonsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postTimetableMovedLessonsRequest @@ -261,34 +275,33 @@ open class MovedLessonApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/movedLessons", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/movedLessons", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a moved lesson. - * @param id + * @param id * @param putTimetableMovedLessonsByIdRequest (optional) * @return PostTimetableMovedLessons200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putTimetableMovedLessonsById( - id: kotlin.String, - putTimetableMovedLessonsByIdRequest: PutTimetableMovedLessonsByIdRequest? = null, - ): HttpResponse { + open suspend fun putTimetableMovedLessonsById(id: kotlin.String, putTimetableMovedLessonsByIdRequest: PutTimetableMovedLessonsByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putTimetableMovedLessonsByIdRequest @@ -296,19 +309,21 @@ open class MovedLessonApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/timetable/movedLessons/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/timetable/movedLessons/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NavigatorApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NavigatorApi.kt index 31a7890..80ada14 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NavigatorApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NavigatorApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteNavigatorBuildingsById200Response import hu.petrik.filcapp.api.model.GetNavigatorBuildings200Response import hu.petrik.filcapp.api.model.GetNavigatorClassroomTypes200Response @@ -52,627 +59,640 @@ import hu.petrik.filcapp.api.model.PutNavigatorCorridorsByIdRequest import hu.petrik.filcapp.api.model.PutNavigatorLiftsByIdRequest import hu.petrik.filcapp.api.model.PutNavigatorStairsByIdRequest import hu.petrik.filcapp.api.model.PutNavigatorTranslationsByLangByKeyRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class NavigatorApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a campus building; its corridors, lifts and stairs cascade with it, but rooms still assigned to it refuse the delete - * @param id + * @param id * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNavigatorBuildingsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/navigator/buildings/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/navigator/buildings/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a classroom type; types still assigned to a classroom are refused - * @param id + * @param id * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNavigatorClassroomTypesById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/navigator/classroom-types/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/navigator/classroom-types/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a classroom; rooms the timetable still uses are refused - * @param id + * @param id * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNavigatorClassroomsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/navigator/classrooms/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/navigator/classrooms/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a corridor - * @param id + * @param id * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNavigatorCorridorsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/navigator/corridors/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/navigator/corridors/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a lift - * @param id + * @param id * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNavigatorLiftsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/navigator/lifts/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/navigator/lifts/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a staircase - * @param id + * @param id * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNavigatorStairsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/navigator/stairs/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/navigator/stairs/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete one codename in one language - * @param lang - * @param key + * @param lang + * @param key * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun deleteNavigatorTranslationsByLangByKey( - lang: kotlin.String, - key: kotlin.String, - ): HttpResponse { + open suspend fun deleteNavigatorTranslationsByLangByKey(lang: kotlin.String, key: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/navigator/translations/{lang}/{key}".replace("{" + "lang" + "}", "$lang").replace("{" + "key" + "}", "$key"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/navigator/translations/{lang}/{key}".replace("{" + "lang" + "}", "$lang").replace("{" + "key" + "}", "$key"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List the campus buildings * @return GetNavigatorBuildings200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorBuildings(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/buildings", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/buildings", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List the classroom types * @return GetNavigatorClassroomTypes200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorClassroomTypes(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/classroom-types", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/classroom-types", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List the classrooms, including the ones the campus has not placed yet * @return GetNavigatorClassrooms200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorClassrooms(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/classrooms", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/classrooms", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List the corridors * @return GetNavigatorCorridors200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorCorridors(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/corridors", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/corridors", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Export every navigator row (buildings, classroom types, classrooms, corridors, lifts, stairs and translations) as a versioned JSON payload. * @return kotlin.String */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorExport(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/export", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/export", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * The whole campus graph in the upstream wire format, without a session. Only rows the campus has placed on the map appear. * @return GetNavigatorGraph200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorGraph(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/graph", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/graph", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List the lifts * @return GetNavigatorLifts200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorLifts(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/lifts", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/lifts", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List the staircases * @return GetNavigatorStairs200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorStairs(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/stairs", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/stairs", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List every translation row * @return GetNavigatorTranslations200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorTranslations(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/translations", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/translations", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List the languages the campus translations exist in * @return GetNavigatorTranslationsAvailable200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNavigatorTranslationsAvailable(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/translations/available", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/translations/available", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * One language as a flat `text_key -> text` bundle, without a session - * @param lang - * @return kotlin.collections.Map + * @param lang + * @return kotlin.collections.Map */ @Suppress("UNCHECKED_CAST") - open suspend fun getNavigatorTranslationsLang(lang: kotlin.String): HttpResponse> { + open suspend fun getNavigatorTranslationsLang(lang: kotlin.String): HttpResponse> { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() lang?.apply { localVariableQuery["lang"] = listOf("$lang") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/navigator/translations/lang", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/navigator/translations/lang", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap().map { value } } @Serializable(GetNavigatorTranslationsLangResponse.Companion::class) - private class GetNavigatorTranslationsLangResponse( - val value: Map, - ) { + private class GetNavigatorTranslationsLangResponse(val value: Map) { companion object : KSerializer { private val serializer: KSerializer> = serializer>() override val descriptor = serializer.descriptor - - override fun serialize( - encoder: Encoder, - value: GetNavigatorTranslationsLangResponse, - ) = serializer.serialize(encoder, value.value) - + override fun serialize(encoder: Encoder, value: GetNavigatorTranslationsLangResponse) = serializer.serialize(encoder, value.value) override fun deserialize(decoder: Decoder) = GetNavigatorTranslationsLangResponse(serializer.deserialize(decoder)) } } /** - * + * * Create a campus building - * @param postNavigatorBuildingsRequest + * @param postNavigatorBuildingsRequest * @return PostNavigatorBuildings201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNavigatorBuildings( - postNavigatorBuildingsRequest: PostNavigatorBuildingsRequest, - ): HttpResponse { + open suspend fun postNavigatorBuildings(postNavigatorBuildingsRequest: PostNavigatorBuildingsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorBuildingsRequest @@ -680,32 +700,32 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/navigator/buildings", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/navigator/buildings", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a classroom type - * @param postNavigatorClassroomTypesRequest + * @param postNavigatorClassroomTypesRequest * @return PostNavigatorClassroomTypes201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNavigatorClassroomTypes( - postNavigatorClassroomTypesRequest: PostNavigatorClassroomTypesRequest, - ): HttpResponse { + open suspend fun postNavigatorClassroomTypes(postNavigatorClassroomTypesRequest: PostNavigatorClassroomTypesRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorClassroomTypesRequest @@ -713,32 +733,32 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/navigator/classroom-types", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/navigator/classroom-types", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a classroom - * @param postNavigatorClassroomsRequest + * @param postNavigatorClassroomsRequest * @return PostNavigatorClassrooms201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNavigatorClassrooms( - postNavigatorClassroomsRequest: PostNavigatorClassroomsRequest, - ): HttpResponse { + open suspend fun postNavigatorClassrooms(postNavigatorClassroomsRequest: PostNavigatorClassroomsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorClassroomsRequest @@ -746,32 +766,32 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/navigator/classrooms", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/navigator/classrooms", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a corridor - * @param postNavigatorCorridorsRequest + * @param postNavigatorCorridorsRequest * @return PostNavigatorCorridors201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNavigatorCorridors( - postNavigatorCorridorsRequest: PostNavigatorCorridorsRequest, - ): HttpResponse { + open suspend fun postNavigatorCorridors(postNavigatorCorridorsRequest: PostNavigatorCorridorsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorCorridorsRequest @@ -779,32 +799,32 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/navigator/corridors", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/navigator/corridors", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Insert or update every collection in a navigator export payload by its key, inside one transaction. Rows absent from the payload are never deleted. - * @param postNavigatorImportRequest + * @param postNavigatorImportRequest * @return PostNavigatorImport200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNavigatorImport( - postNavigatorImportRequest: PostNavigatorImportRequest, - ): HttpResponse { + open suspend fun postNavigatorImport(postNavigatorImportRequest: PostNavigatorImportRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorImportRequest @@ -812,32 +832,32 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/navigator/import", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/navigator/import", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a lift - * @param postNavigatorLiftsRequest + * @param postNavigatorLiftsRequest * @return GetNavigatorLifts200ResponseItemsInner */ @Suppress("UNCHECKED_CAST") - open suspend fun postNavigatorLifts( - postNavigatorLiftsRequest: PostNavigatorLiftsRequest, - ): HttpResponse { + open suspend fun postNavigatorLifts(postNavigatorLiftsRequest: PostNavigatorLiftsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorLiftsRequest @@ -845,32 +865,32 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/navigator/lifts", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/navigator/lifts", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a staircase - * @param postNavigatorStairsRequest + * @param postNavigatorStairsRequest * @return GetNavigatorStairs200ResponseItemsInner */ @Suppress("UNCHECKED_CAST") - open suspend fun postNavigatorStairs( - postNavigatorStairsRequest: PostNavigatorStairsRequest, - ): HttpResponse { + open suspend fun postNavigatorStairs(postNavigatorStairsRequest: PostNavigatorStairsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorStairsRequest @@ -878,32 +898,32 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/navigator/stairs", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/navigator/stairs", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create or replace one codename across every given language - * @param postNavigatorTranslationsRequest + * @param postNavigatorTranslationsRequest * @return PostNavigatorTranslations201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNavigatorTranslations( - postNavigatorTranslationsRequest: PostNavigatorTranslationsRequest, - ): HttpResponse { + open suspend fun postNavigatorTranslations(postNavigatorTranslationsRequest: PostNavigatorTranslationsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorTranslationsRequest @@ -911,34 +931,33 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/navigator/translations", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/navigator/translations", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a campus building - * @param id + * @param id * @param putNavigatorBuildingsByIdRequest (optional) * @return PostNavigatorBuildings201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putNavigatorBuildingsById( - id: kotlin.String, - putNavigatorBuildingsByIdRequest: PutNavigatorBuildingsByIdRequest? = null, - ): HttpResponse { + open suspend fun putNavigatorBuildingsById(id: kotlin.String, putNavigatorBuildingsByIdRequest: PutNavigatorBuildingsByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putNavigatorBuildingsByIdRequest @@ -946,34 +965,33 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/navigator/buildings/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/navigator/buildings/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a classroom type - * @param id + * @param id * @param putNavigatorClassroomTypesByIdRequest (optional) * @return PostNavigatorClassroomTypes201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putNavigatorClassroomTypesById( - id: kotlin.String, - putNavigatorClassroomTypesByIdRequest: PutNavigatorClassroomTypesByIdRequest? = null, - ): HttpResponse { + open suspend fun putNavigatorClassroomTypesById(id: kotlin.String, putNavigatorClassroomTypesByIdRequest: PutNavigatorClassroomTypesByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putNavigatorClassroomTypesByIdRequest @@ -981,34 +999,33 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/navigator/classroom-types/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/navigator/classroom-types/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a classroom - * @param id + * @param id * @param putNavigatorClassroomsByIdRequest (optional) * @return PutNavigatorClassroomsById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putNavigatorClassroomsById( - id: kotlin.String, - putNavigatorClassroomsByIdRequest: PutNavigatorClassroomsByIdRequest? = null, - ): HttpResponse { + open suspend fun putNavigatorClassroomsById(id: kotlin.String, putNavigatorClassroomsByIdRequest: PutNavigatorClassroomsByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putNavigatorClassroomsByIdRequest @@ -1016,34 +1033,33 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/navigator/classrooms/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/navigator/classrooms/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a corridor - * @param id + * @param id * @param putNavigatorCorridorsByIdRequest (optional) * @return PostNavigatorCorridors201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putNavigatorCorridorsById( - id: kotlin.String, - putNavigatorCorridorsByIdRequest: PutNavigatorCorridorsByIdRequest? = null, - ): HttpResponse { + open suspend fun putNavigatorCorridorsById(id: kotlin.String, putNavigatorCorridorsByIdRequest: PutNavigatorCorridorsByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putNavigatorCorridorsByIdRequest @@ -1051,34 +1067,33 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/navigator/corridors/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/navigator/corridors/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a lift - * @param id + * @param id * @param putNavigatorLiftsByIdRequest (optional) * @return GetNavigatorLifts200ResponseItemsInner */ @Suppress("UNCHECKED_CAST") - open suspend fun putNavigatorLiftsById( - id: kotlin.String, - putNavigatorLiftsByIdRequest: PutNavigatorLiftsByIdRequest? = null, - ): HttpResponse { + open suspend fun putNavigatorLiftsById(id: kotlin.String, putNavigatorLiftsByIdRequest: PutNavigatorLiftsByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putNavigatorLiftsByIdRequest @@ -1086,34 +1101,33 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/navigator/lifts/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/navigator/lifts/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a staircase - * @param id + * @param id * @param putNavigatorStairsByIdRequest (optional) * @return GetNavigatorStairs200ResponseItemsInner */ @Suppress("UNCHECKED_CAST") - open suspend fun putNavigatorStairsById( - id: kotlin.String, - putNavigatorStairsByIdRequest: PutNavigatorStairsByIdRequest? = null, - ): HttpResponse { + open suspend fun putNavigatorStairsById(id: kotlin.String, putNavigatorStairsByIdRequest: PutNavigatorStairsByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putNavigatorStairsByIdRequest @@ -1121,36 +1135,34 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/navigator/stairs/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/navigator/stairs/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Write the text of one codename in one language - * @param lang - * @param key - * @param putNavigatorTranslationsByLangByKeyRequest + * @param lang + * @param key + * @param putNavigatorTranslationsByLangByKeyRequest * @return PostNavigatorTranslations201ResponseItemsInner */ @Suppress("UNCHECKED_CAST") - open suspend fun putNavigatorTranslationsByLangByKey( - lang: kotlin.String, - key: kotlin.String, - putNavigatorTranslationsByLangByKeyRequest: PutNavigatorTranslationsByLangByKeyRequest, - ): HttpResponse { + open suspend fun putNavigatorTranslationsByLangByKey(lang: kotlin.String, key: kotlin.String, putNavigatorTranslationsByLangByKeyRequest: PutNavigatorTranslationsByLangByKeyRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putNavigatorTranslationsByLangByKeyRequest @@ -1158,19 +1170,21 @@ open class NavigatorApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/navigator/translations/{lang}/{key}".replace("{" + "lang" + "}", "$lang").replace("{" + "key" + "}", "$key"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/navigator/translations/{lang}/{key}".replace("{" + "lang" + "}", "$lang").replace("{" + "key" + "}", "$key"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsAnnouncementsApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsAnnouncementsApi.kt index 4375870..07ffda6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsAnnouncementsApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsAnnouncementsApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetNewsAnnouncements200Response @@ -26,95 +33,104 @@ import hu.petrik.filcapp.api.model.PatchNewsAnnouncementsByIdRequest import hu.petrik.filcapp.api.model.PostNavigatorImportRequest import hu.petrik.filcapp.api.model.PostNewsAnnouncements201Response import hu.petrik.filcapp.api.model.PostNewsAnnouncementsRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class NewsAnnouncementsApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete an announcement - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNewsAnnouncementsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/news/announcements/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/news/announcements/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete the image attached to an announcement - * @param id + * @param id * @return PatchNewsAnnouncementsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNewsAnnouncementsByIdImage(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/news/announcements/{id}/image".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/news/announcements/{id}/image".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List active announcements within date range, cohort-filtered by default; includeAll=true returns everything * @param limit (optional, default to 20) * @param offset (optional, default to 0) @@ -124,16 +140,11 @@ open class NewsAnnouncementsApi : ApiClient { * @return GetNewsAnnouncements200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getNewsAnnouncements( - limit: kotlin.Int? = 20, - offset: kotlin.Int? = 0, - includeAll: kotlin.String? = "false", - includeExpired: kotlin.String? = "false", - includeKioskOnly: kotlin.String? = "false", - ): HttpResponse { + open suspend fun getNewsAnnouncements(limit: kotlin.Int? = 20, offset: kotlin.Int? = 0, includeAll: kotlin.String? = "false", includeExpired: kotlin.String? = "false", includeKioskOnly: kotlin.String? = "false"): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -144,66 +155,65 @@ open class NewsAnnouncementsApi : ApiClient { includeKioskOnly?.apply { localVariableQuery["includeKioskOnly"] = listOf("$includeKioskOnly") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/news/announcements", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/news/announcements", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get a single announcement by ID - * @param id + * @param id * @return GetNewsAnnouncementsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNewsAnnouncementsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/news/announcements/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/news/announcements/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update an existing announcement - * @param id + * @param id * @param patchNewsAnnouncementsByIdRequest (optional) * @return PatchNewsAnnouncementsById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchNewsAnnouncementsById( - id: kotlin.String, - patchNewsAnnouncementsByIdRequest: PatchNewsAnnouncementsByIdRequest? = null, - ): HttpResponse { + open suspend fun patchNewsAnnouncementsById(id: kotlin.String, patchNewsAnnouncementsByIdRequest: PatchNewsAnnouncementsByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchNewsAnnouncementsByIdRequest @@ -211,32 +221,32 @@ open class NewsAnnouncementsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/news/announcements/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/news/announcements/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a new announcement - * @param postNewsAnnouncementsRequest + * @param postNewsAnnouncementsRequest * @return PostNewsAnnouncements201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNewsAnnouncements( - postNewsAnnouncementsRequest: PostNewsAnnouncementsRequest, - ): HttpResponse { + open suspend fun postNewsAnnouncements(postNewsAnnouncementsRequest: PostNewsAnnouncementsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNewsAnnouncementsRequest @@ -244,34 +254,33 @@ open class NewsAnnouncementsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/news/announcements", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/news/announcements", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Upload the image this announcement shows on the kiosk - * @param id - * @param postNavigatorImportRequest + * @param id + * @param postNavigatorImportRequest * @return PatchNewsAnnouncementsById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNewsAnnouncementsByIdImage( - id: kotlin.String, - postNavigatorImportRequest: PostNavigatorImportRequest, - ): HttpResponse { + open suspend fun postNewsAnnouncementsByIdImage(id: kotlin.String, postNavigatorImportRequest: PostNavigatorImportRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNavigatorImportRequest @@ -279,19 +288,21 @@ open class NewsAnnouncementsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/news/announcements/{id}/image".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/news/announcements/{id}/image".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsBlogsApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsBlogsApi.kt index a31d0bb..58a66a1 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsBlogsApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsBlogsApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetNewsBlogs200Response @@ -25,76 +32,82 @@ import hu.petrik.filcapp.api.model.PatchNewsBlogsById200Response import hu.petrik.filcapp.api.model.PatchNewsBlogsByIdRequest import hu.petrik.filcapp.api.model.PostNewsBlogs201Response import hu.petrik.filcapp.api.model.PostNewsBlogsRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class NewsBlogsApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a blog post - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNewsBlogsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/news/blogs/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/news/blogs/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List published blog posts (public, no auth required) * @param limit (optional, default to 20) * @param offset (optional, default to 0) * @return GetNewsBlogs200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getNewsBlogs( - limit: kotlin.Int? = 20, - offset: kotlin.Int? = 0, - ): HttpResponse { + open suspend fun getNewsBlogs(limit: kotlin.Int? = 20, offset: kotlin.Int? = 0): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -102,69 +115,68 @@ open class NewsBlogsApi : ApiClient { offset?.apply { localVariableQuery["offset"] = listOf("$offset") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/news/blogs", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/news/blogs", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get a published blog post by slug (public, no auth required) - * @param slug + * @param slug * @return GetNewsBlogsBySlug200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNewsBlogsBySlug(slug: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/news/blogs/{slug}".replace("{" + "slug" + "}", "$slug"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/news/blogs/{slug}".replace("{" + "slug" + "}", "$slug"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List all blog posts including drafts (requires permission) * @param limit (optional, default to 20) * @param offset (optional, default to 0) * @return GetNewsBlogs200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getNewsBlogsDrafts( - limit: kotlin.Int? = 20, - offset: kotlin.Int? = 0, - ): HttpResponse { + open suspend fun getNewsBlogsDrafts(limit: kotlin.Int? = 20, offset: kotlin.Int? = 0): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -172,66 +184,65 @@ open class NewsBlogsApi : ApiClient { offset?.apply { localVariableQuery["offset"] = listOf("$offset") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/news/blogs/drafts", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/news/blogs/drafts", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get any blog post by ID including drafts (requires permission) - * @param id + * @param id * @return GetNewsBlogsBySlug200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNewsBlogsIdById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/news/blogs/id/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/news/blogs/id/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update a blog post - * @param id + * @param id * @param patchNewsBlogsByIdRequest (optional) * @return PatchNewsBlogsById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchNewsBlogsById( - id: kotlin.String, - patchNewsBlogsByIdRequest: PatchNewsBlogsByIdRequest? = null, - ): HttpResponse { + open suspend fun patchNewsBlogsById(id: kotlin.String, patchNewsBlogsByIdRequest: PatchNewsBlogsByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchNewsBlogsByIdRequest @@ -239,30 +250,32 @@ open class NewsBlogsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/news/blogs/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/news/blogs/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a new blog post (defaults to draft) - * @param postNewsBlogsRequest + * @param postNewsBlogsRequest * @return PostNewsBlogs201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postNewsBlogs(postNewsBlogsRequest: PostNewsBlogsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNewsBlogsRequest @@ -270,83 +283,87 @@ open class NewsBlogsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/news/blogs", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/news/blogs", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Publish a blog post (draft → published) - * @param id + * @param id * @return PatchNewsBlogsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun postNewsBlogsByIdPublish(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/news/blogs/{id}/publish".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/news/blogs/{id}/publish".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Unpublish a blog post (published → draft) - * @param id + * @param id * @return PatchNewsBlogsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun postNewsBlogsByIdUnpublish(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/news/blogs/{id}/unpublish".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/news/blogs/{id}/unpublish".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsSystemMessagesApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsSystemMessagesApi.kt index b29df33..608cb71 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsSystemMessagesApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NewsSystemMessagesApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetNewsSystemMessages200Response @@ -25,63 +32,71 @@ import hu.petrik.filcapp.api.model.PatchNewsSystemMessagesById200Response import hu.petrik.filcapp.api.model.PatchNewsSystemMessagesByIdRequest import hu.petrik.filcapp.api.model.PostNewsSystemMessages201Response import hu.petrik.filcapp.api.model.PostNewsSystemMessagesRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class NewsSystemMessagesApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a system message - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNewsSystemMessagesById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/news/system-messages/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/news/system-messages/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List active system messages within date range, filtered by user cohort * @param limit (optional, default to 20) * @param offset (optional, default to 0) @@ -91,16 +106,11 @@ open class NewsSystemMessagesApi : ApiClient { * @return GetNewsSystemMessages200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getNewsSystemMessages( - limit: kotlin.Int? = 20, - offset: kotlin.Int? = 0, - includeAll: kotlin.String? = "false", - includeExpired: kotlin.String? = "false", - includeKioskOnly: kotlin.String? = "false", - ): HttpResponse { + open suspend fun getNewsSystemMessages(limit: kotlin.Int? = 20, offset: kotlin.Int? = 0, includeAll: kotlin.String? = "false", includeExpired: kotlin.String? = "false", includeKioskOnly: kotlin.String? = "false"): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -111,66 +121,65 @@ open class NewsSystemMessagesApi : ApiClient { includeKioskOnly?.apply { localVariableQuery["includeKioskOnly"] = listOf("$includeKioskOnly") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/news/system-messages", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/news/system-messages", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get a single system message by ID - * @param id + * @param id * @return GetNewsSystemMessagesById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNewsSystemMessagesById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/news/system-messages/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/news/system-messages/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update an existing system message - * @param id + * @param id * @param patchNewsSystemMessagesByIdRequest (optional) * @return PatchNewsSystemMessagesById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchNewsSystemMessagesById( - id: kotlin.String, - patchNewsSystemMessagesByIdRequest: PatchNewsSystemMessagesByIdRequest? = null, - ): HttpResponse { + open suspend fun patchNewsSystemMessagesById(id: kotlin.String, patchNewsSystemMessagesByIdRequest: PatchNewsSystemMessagesByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchNewsSystemMessagesByIdRequest @@ -178,32 +187,32 @@ open class NewsSystemMessagesApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/news/system-messages/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/news/system-messages/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a new system message - * @param postNewsSystemMessagesRequest + * @param postNewsSystemMessagesRequest * @return PostNewsSystemMessages201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNewsSystemMessages( - postNewsSystemMessagesRequest: PostNewsSystemMessagesRequest, - ): HttpResponse { + open suspend fun postNewsSystemMessages(postNewsSystemMessagesRequest: PostNewsSystemMessagesRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNewsSystemMessagesRequest @@ -211,19 +220,21 @@ open class NewsSystemMessagesApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/news/system-messages", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/news/system-messages", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NotificationsApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NotificationsApi.kt index 57207ea..e7c83da 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NotificationsApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/NotificationsApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetNotifications200Response import hu.petrik.filcapp.api.model.GetNotificationsSettings200Response import hu.petrik.filcapp.api.model.GetNotificationsUnreadCount200Response @@ -28,77 +35,87 @@ import hu.petrik.filcapp.api.model.PostNotificationsTestPreview200Response import hu.petrik.filcapp.api.model.PostNotificationsTestPreviewRequest import hu.petrik.filcapp.api.model.PostNotificationsTestSend200Response import hu.petrik.filcapp.api.model.PostNotificationsTestSendRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class NotificationsApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Unregister a push (FCM) token - * @param token + * @param token * @return PostDoorlockDevicesByIdUpdate200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteNotificationsFcmTokensByToken(token: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/notifications/fcm-tokens/{token}".replace("{" + "token" + "}", "$token"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/notifications/fcm-tokens/{token}".replace("{" + "token" + "}", "$token"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** * enum for parameter unread */ @Serializable - enum class UnreadGetNotifications( - val value: kotlin.String, - ) { + enum class UnreadGetNotifications(val value: kotlin.String) { + @SerialName(value = "true") `true`("true"), - + @SerialName(value = "false") - `false`("false"), + `false`("false"); + + override fun toString(): kotlin.String = value } /** - * + * * List the signed-in user's notifications * @param dateFrom (optional) * @param dateTo (optional) @@ -109,17 +126,11 @@ open class NotificationsApi : ApiClient { * @return GetNotifications200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getNotifications( - dateFrom: kotlin.String? = null, - dateTo: kotlin.String? = null, - limit: kotlin.Double? = 20.toDouble(), - offset: kotlin.Double? = 0.toDouble(), - type: kotlin.String? = null, - unread: UnreadGetNotifications? = null, - ): HttpResponse { + open suspend fun getNotifications(dateFrom: kotlin.String? = null, dateTo: kotlin.String? = null, limit: kotlin.Double? = 20.toDouble(), offset: kotlin.Double? = 0.toDouble(), type: kotlin.String? = null, unread: UnreadGetNotifications? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -131,94 +142,95 @@ open class NotificationsApi : ApiClient { unread?.apply { localVariableQuery["unread"] = listOf("${ unread.value }") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/notifications", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/notifications", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Read the notification preferences of the signed-in user * @return GetNotificationsSettings200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNotificationsSettings(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/notifications/settings", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/notifications/settings", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Count the signed-in user's unread notifications * @return GetNotificationsUnreadCount200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getNotificationsUnreadCount(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/notifications/unread-count", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/notifications/unread-count", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update the notification preferences of the signed-in user - * @param patchNotificationsSettingsRequest + * @param patchNotificationsSettingsRequest * @return GetNotificationsSettings200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchNotificationsSettings( - patchNotificationsSettingsRequest: PatchNotificationsSettingsRequest, - ): HttpResponse { + open suspend fun patchNotificationsSettings(patchNotificationsSettingsRequest: PatchNotificationsSettingsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchNotificationsSettingsRequest @@ -226,64 +238,65 @@ open class NotificationsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/notifications/settings", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/notifications/settings", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Mark one notification as read - * @param id + * @param id * @return PostNotificationsByIdRead200Response */ @Suppress("UNCHECKED_CAST") open suspend fun postNotificationsByIdRead(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/notifications/{id}/read".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/notifications/{id}/read".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Register a push (FCM) token for the signed-in user - * @param postNotificationsFcmTokensRequest + * @param postNotificationsFcmTokensRequest * @return PostDoorlockDevicesByIdUpdate200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNotificationsFcmTokens( - postNotificationsFcmTokensRequest: PostNotificationsFcmTokensRequest, - ): HttpResponse { + open suspend fun postNotificationsFcmTokens(postNotificationsFcmTokensRequest: PostNotificationsFcmTokensRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNotificationsFcmTokensRequest @@ -291,94 +304,96 @@ open class NotificationsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/notifications/fcm-tokens", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/notifications/fcm-tokens", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Mark every notification of the signed-in user as read * @return PostDoorlockDevicesByIdUpdate200Response */ @Suppress("UNCHECKED_CAST") open suspend fun postNotificationsReadAll(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/notifications/read-all", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/notifications/read-all", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Development helper: drop a test notification into the caller's own inbox (needs CHRONOS_ENABLE_TEST_NOTIFICATIONS) * @return PostNotificationsByIdRead200Response */ @Suppress("UNCHECKED_CAST") open suspend fun postNotificationsTest(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/notifications/test", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/notifications/test", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Development helper: render a notification template without sending it (needs CHRONOS_ENABLE_TEST_NOTIFICATIONS) - * @param postNotificationsTestPreviewRequest + * @param postNotificationsTestPreviewRequest * @return PostNotificationsTestPreview200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNotificationsTestPreview( - postNotificationsTestPreviewRequest: PostNotificationsTestPreviewRequest, - ): HttpResponse { + open suspend fun postNotificationsTestPreview(postNotificationsTestPreviewRequest: PostNotificationsTestPreviewRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNotificationsTestPreviewRequest @@ -386,32 +401,32 @@ open class NotificationsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/notifications/test/preview", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/notifications/test/preview", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Development helper: send a test message over email, in-app and/or push (needs CHRONOS_ENABLE_TEST_NOTIFICATIONS) - * @param postNotificationsTestSendRequest + * @param postNotificationsTestSendRequest * @return PostNotificationsTestSend200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postNotificationsTestSend( - postNotificationsTestSendRequest: PostNotificationsTestSendRequest, - ): HttpResponse { + open suspend fun postNotificationsTestSend(postNotificationsTestSendRequest: PostNotificationsTestSendRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postNotificationsTestSendRequest @@ -419,19 +434,21 @@ open class NotificationsApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/notifications/test/send", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/notifications/test/send", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/PeriodApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/PeriodApi.kt index 3dcf24c..646537e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/PeriodApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/PeriodApi.kt @@ -8,69 +8,85 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetTimetablePeriodsGetAll200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class PeriodApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Get all period definitions used in a given timetable, sorted by period number. * @param timetableId (optional) * @return GetTimetablePeriodsGetAll200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetablePeriodsGetAll(timetableId: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() timetableId?.apply { localVariableQuery["timetableId"] = listOf("$timetableId") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/periods/getAll", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/periods/getAll", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/PingApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/PingApi.kt index a89542f..cf8d1c6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/PingApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/PingApi.kt @@ -8,99 +8,116 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetPing200Response import hu.petrik.filcapp.api.model.GetPingUptime200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class PingApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Health check endpoint that returns a pong response. * @return GetPing200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getPing(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/ping", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/ping", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get the uptime. * @return GetPingUptime200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getPingUptime(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/ping/uptime", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/ping/uptime", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/RolesApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/RolesApi.kt index 5126268..e468176 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/RolesApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/RolesApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetNavigatorTranslationsAvailable200Response import hu.petrik.filcapp.api.model.GetRoles200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response @@ -23,135 +30,143 @@ import hu.petrik.filcapp.api.model.PatchRolesByNameRequest import hu.petrik.filcapp.api.model.PostDoorlockDevicesByIdUpdate200Response import hu.petrik.filcapp.api.model.PostRoles201Response import hu.petrik.filcapp.api.model.PostRolesRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class RolesApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a role - * @param name + * @param name * @return PostDoorlockDevicesByIdUpdate200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteRolesByName(name: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/roles/{name}".replace("{" + "name" + "}", "$name"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/roles/{name}".replace("{" + "name" + "}", "$name"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List all roles with their permissions * @return GetRoles200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getRoles(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/roles", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/roles", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List all known permissions registered by the application * @return GetNavigatorTranslationsAvailable200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getRolesPermissions(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/roles/permissions", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/roles/permissions", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update permissions for a role - * @param name - * @param patchRolesByNameRequest + * @param name + * @param patchRolesByNameRequest * @return PostRoles201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchRolesByName( - name: kotlin.String, - patchRolesByNameRequest: PatchRolesByNameRequest, - ): HttpResponse { + open suspend fun patchRolesByName(name: kotlin.String, patchRolesByNameRequest: PatchRolesByNameRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchRolesByNameRequest @@ -159,30 +174,32 @@ open class RolesApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/roles/{name}".replace("{" + "name" + "}", "$name"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/roles/{name}".replace("{" + "name" + "}", "$name"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a new role - * @param postRolesRequest + * @param postRolesRequest * @return PostRoles201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postRoles(postRolesRequest: PostRolesRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postRolesRequest @@ -190,19 +207,21 @@ open class RolesApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/roles", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/roles", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/SubjectApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/SubjectApi.kt index a3bad8b..dcbed1b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/SubjectApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/SubjectApi.kt @@ -8,67 +8,83 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetTimetableSubjects200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class SubjectApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Get all subjects from the database. * @return GetTimetableSubjects200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableSubjects(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/subjects", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/subjects", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/SubstitutionApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/SubstitutionApi.kt index 018f614..af380a0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/SubstitutionApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/SubstitutionApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetTimetableSubstitutions200Response @@ -26,141 +33,147 @@ import hu.petrik.filcapp.api.model.PostTimetableSubstitutions200Response import hu.petrik.filcapp.api.model.PostTimetableSubstitutionsManualRequest import hu.petrik.filcapp.api.model.PostTimetableSubstitutionsRequest import hu.petrik.filcapp.api.model.PutTimetableSubstitutionsByIdRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class SubstitutionApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a substitution - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteTimetableSubstitutionsById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/timetable/substitutions/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/timetable/substitutions/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get all substitutions from the database. * @return GetTimetableSubstitutions200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableSubstitutions(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/substitutions", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/substitutions", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get relevant substitutions for a given cohort from the database. - * @param cohortId + * @param cohortId * @return GetTimetableSubstitutionsCohortByCohortId200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableSubstitutionsCohortByCohortId( - cohortId: kotlin.String, - ): HttpResponse { + open suspend fun getTimetableSubstitutionsCohortByCohortId(cohortId: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/substitutions/cohort/{cohortId}".replace("{" + "cohortId" + "}", "$cohortId"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/substitutions/cohort/{cohortId}".replace("{" + "cohortId" + "}", "$cohortId"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Export substitutions as a CSV file over an optional date range. * @param from (optional) * @param to (optional) * @return kotlin.String */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableSubstitutionsExport( - from: kotlin.String? = null, - to: kotlin.String? = null, - ): HttpResponse { + open suspend fun getTimetableSubstitutionsExport(from: kotlin.String? = null, to: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -168,63 +181,63 @@ open class SubstitutionApi : ApiClient { to?.apply { localVariableQuery["to"] = listOf("$to") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/substitutions/export", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/substitutions/export", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get relevant substitutions from the database. * @return GetTimetableSubstitutionsRelevant200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableSubstitutionsRelevant(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/substitutions/relevant", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/substitutions/relevant", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Create a new substitution - * @param postTimetableSubstitutionsRequest + * @param postTimetableSubstitutionsRequest * @return PostTimetableSubstitutions200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableSubstitutions( - postTimetableSubstitutionsRequest: PostTimetableSubstitutionsRequest, - ): HttpResponse { + open suspend fun postTimetableSubstitutions(postTimetableSubstitutionsRequest: PostTimetableSubstitutionsRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postTimetableSubstitutionsRequest @@ -232,32 +245,32 @@ open class SubstitutionApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/substitutions", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/substitutions", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a substitution manually by specifying the teacher, lesson time, subject and cohort directly. - * @param postTimetableSubstitutionsManualRequest + * @param postTimetableSubstitutionsManualRequest * @return PostTimetableSubstitutions200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableSubstitutionsManual( - postTimetableSubstitutionsManualRequest: PostTimetableSubstitutionsManualRequest, - ): HttpResponse { + open suspend fun postTimetableSubstitutionsManual(postTimetableSubstitutionsManualRequest: PostTimetableSubstitutionsManualRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postTimetableSubstitutionsManualRequest @@ -265,34 +278,33 @@ open class SubstitutionApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/substitutions/manual", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/substitutions/manual", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a substitution - * @param id - * @param putTimetableSubstitutionsByIdRequest + * @param id + * @param putTimetableSubstitutionsByIdRequest * @return PostTimetableSubstitutions200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putTimetableSubstitutionsById( - id: kotlin.String, - putTimetableSubstitutionsByIdRequest: PutTimetableSubstitutionsByIdRequest, - ): HttpResponse { + open suspend fun putTimetableSubstitutionsById(id: kotlin.String, putTimetableSubstitutionsByIdRequest: PutTimetableSubstitutionsByIdRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putTimetableSubstitutionsByIdRequest @@ -300,19 +312,21 @@ open class SubstitutionApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/timetable/substitutions/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/timetable/substitutions/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/TeacherApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/TeacherApi.kt index 90ebd57..9cd5f32 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/TeacherApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/TeacherApi.kt @@ -8,148 +8,163 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetTimetableTeachers200Response import hu.petrik.filcapp.api.model.GetTimetableTeachersGetAll200Response import hu.petrik.filcapp.api.model.GetTimetableTeachersMe200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.PatchTimetableTeachersById200Response import hu.petrik.filcapp.api.model.PatchTimetableTeachersByIdRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class TeacherApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * List all teachers with their email and linked user. * @return GetTimetableTeachers200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableTeachers(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/teachers", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/teachers", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get all teachers from the database. * @return GetTimetableTeachersGetAll200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableTeachersGetAll(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/teachers/getAll", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/teachers/getAll", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get the signed-in user's linked teacher, if any. * @return GetTimetableTeachersMe200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableTeachersMe(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/teachers/me", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/teachers/me", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update a teacher email and/or linked user. - * @param id + * @param id * @param patchTimetableTeachersByIdRequest (optional) * @return PatchTimetableTeachersById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchTimetableTeachersById( - id: kotlin.String, - patchTimetableTeachersByIdRequest: PatchTimetableTeachersByIdRequest? = null, - ): HttpResponse { + open suspend fun patchTimetableTeachersById(id: kotlin.String, patchTimetableTeachersByIdRequest: PatchTimetableTeachersByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchTimetableTeachersByIdRequest @@ -157,19 +172,21 @@ open class TeacherApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/timetable/teachers/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/timetable/teachers/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/TimetableApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/TimetableApi.kt index 4abc0b8..c266722 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/TimetableApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/TimetableApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.GetTimetableTimetables200Response @@ -26,200 +33,208 @@ import hu.petrik.filcapp.api.model.PatchTimetableTimetablesByIdRequest import hu.petrik.filcapp.api.model.PostDoorlockDevicesByIdUpdate200Response import hu.petrik.filcapp.api.model.PostTimetableImportRequest import hu.petrik.filcapp.api.model.PostTimetableTimetablesCleanupOrphanedCohorts200Response + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class TimetableApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a timetable and all its related data, including orphaned cohorts. - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteTimetableTimetablesById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/timetable/timetables/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/timetable/timetables/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get all timetables from the database. * @return GetTimetableTimetables200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableTimetables(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/timetables", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/timetables", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Preview the impact of deleting a timetable. Orphaned cohorts will be deleted along with the timetable. - * @param id + * @param id * @return GetTimetableTimetablesByIdPreviewDelete200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getTimetableTimetablesByIdPreviewDelete( - id: kotlin.String, - ): HttpResponse { + open suspend fun getTimetableTimetablesByIdPreviewDelete(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/timetables/{id}/preview-delete".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/timetables/{id}/preview-delete".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get the latest valid timetable. * @return PatchTimetableTimetablesById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableTimetablesLatestValid(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/timetables/latestValid", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/timetables/latestValid", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get all the latest valid timetables. * @return GetTimetableTimetables200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getTimetableTimetablesValid(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/timetable/timetables/valid", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/timetable/timetables/valid", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update a timetable validity dates. - * @param id + * @param id * @param patchTimetableTimetablesByIdRequest (optional) * @return PatchTimetableTimetablesById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchTimetableTimetablesById( - id: kotlin.String, - patchTimetableTimetablesByIdRequest: PatchTimetableTimetablesByIdRequest? = null, - ): HttpResponse { + open suspend fun patchTimetableTimetablesById(id: kotlin.String, patchTimetableTimetablesByIdRequest: PatchTimetableTimetablesByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchTimetableTimetablesByIdRequest @@ -227,32 +242,32 @@ open class TimetableApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/timetable/timetables/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/timetable/timetables/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Import a timetable from an Oman or aSc 2012 XML file. - * @param postTimetableImportRequest + * @param postTimetableImportRequest * @return PostDoorlockDevicesByIdUpdate200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableImport( - postTimetableImportRequest: PostTimetableImportRequest, - ): HttpResponse { + open suspend fun postTimetableImport(postTimetableImportRequest: PostTimetableImportRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postTimetableImportRequest @@ -260,52 +275,53 @@ open class TimetableApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/import", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/import", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Delete all cohorts that are no longer linked to any timetable (orphaned) and all teachers that are not assigned to any lesson. Users referencing those cohorts will have their cohortId nullified. Teachers still referenced by cohorts, cohort groups, or substitutions are kept. * @return PostTimetableTimetablesCleanupOrphanedCohorts200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postTimetableTimetablesCleanupOrphanedCohorts(): HttpResponse< - PostTimetableTimetablesCleanupOrphanedCohorts200Response, - > { + open suspend fun postTimetableTimetablesCleanupOrphanedCohorts(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/timetable/timetables/cleanup-orphaned-cohorts", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/timetable/timetables/cleanup-orphaned-cohorts", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/UsersApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/UsersApi.kt index 6b7a1f5..c589ef0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/UsersApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/UsersApi.kt @@ -8,43 +8,57 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.GetUsers200Response import hu.petrik.filcapp.api.model.PatchAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.PatchUsersById200Response import hu.petrik.filcapp.api.model.PatchUsersByIdRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class UsersApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * List users * @param limit (optional, default to 20) * @param offset (optional, default to 0) @@ -53,15 +67,11 @@ open class UsersApi : ApiClient { * @return GetUsers200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getUsers( - limit: kotlin.Double? = 20.toDouble(), - offset: kotlin.Double? = 0.toDouble(), - role: kotlin.String? = null, - search: kotlin.String? = null, - ): HttpResponse { + open suspend fun getUsers(limit: kotlin.Double? = 20.toDouble(), offset: kotlin.Double? = 0.toDouble(), role: kotlin.String? = null, search: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -71,34 +81,32 @@ open class UsersApi : ApiClient { search?.apply { localVariableQuery["search"] = listOf("$search") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/users", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/users", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Update user - * @param id + * @param id * @param patchUsersByIdRequest (optional) * @return PatchUsersById200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun patchUsersById( - id: kotlin.String, - patchUsersByIdRequest: PatchUsersByIdRequest? = null, - ): HttpResponse { + open suspend fun patchUsersById(id: kotlin.String, patchUsersByIdRequest: PatchUsersByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = patchUsersByIdRequest @@ -106,19 +114,21 @@ open class UsersApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PATCH, - "/users/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PATCH, + "/users/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/WiFiApi.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/WiFiApi.kt index bfb46c2..2effc16 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/WiFiApi.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/client/WiFiApi.kt @@ -8,14 +8,21 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.client -import hu.petrik.filcapp.api.infrastructure.* import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId200Response import hu.petrik.filcapp.api.model.DeleteAdminApiKeysByKeyId400Response import hu.petrik.filcapp.api.model.DeleteNavigatorBuildingsById200Response @@ -52,205 +59,219 @@ import hu.petrik.filcapp.api.model.PutWifiSelfPassword200Response import hu.petrik.filcapp.api.model.PutWifiSelfPasswordRequest import hu.petrik.filcapp.api.model.PutWifiSpeedProfilesByIdRequest import hu.petrik.filcapp.api.model.PutWifiUsersByIdRequest + +import hu.petrik.filcapp.api.infrastructure.* import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig -import io.ktor.client.engine.HttpClientEngine import io.ktor.client.request.forms.formData +import io.ktor.client.engine.HttpClientEngine +import kotlinx.serialization.json.Json import io.ktor.http.ParametersBuilder +import io.ktor.http.Headers +import io.ktor.http.HttpHeaders +import io.ktor.http.ContentType +import io.ktor.http.content.PartData import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.Json open class WiFiApi : ApiClient { + constructor( baseUrl: String = ApiClient.BASE_URL, httpClientEngine: HttpClientEngine? = null, httpClientConfig: ((HttpClientConfig<*>) -> Unit)? = null, - jsonSerializer: Json = ApiClient.JSON_DEFAULT, + jsonSerializer: Json = ApiClient.JSON_DEFAULT ) : super(baseUrl = baseUrl, httpClientEngine = httpClientEngine, httpClientConfig = httpClientConfig, jsonBlock = jsonSerializer) constructor( baseUrl: String, - httpClient: HttpClient, - ) : super(baseUrl = baseUrl, httpClient = httpClient) + httpClient: HttpClient + ): super(baseUrl = baseUrl, httpClient = httpClient) /** - * + * * Delete a WiFi device or global MAC ban. - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteWifiDevicesById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/wifi/devices/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/wifi/devices/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a WiFi NAS device. - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteWifiNasById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/wifi/nas/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/wifi/nas/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a WiFi role speed-profile mapping. - * @param id + * @param id * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteWifiRoleSpeedProfilesById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/wifi/role-speed-profiles/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/wifi/role-speed-profiles/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a UniFi WiFi speed profile. - * @param id + * @param id * @return DeleteNavigatorBuildingsById200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteWifiSpeedProfilesById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/wifi/speed-profiles/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/wifi/speed-profiles/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Delete a WiFi user account. - * @param id + * @param id * @return DeleteAdminApiKeysByKeyId200Response */ @Suppress("UNCHECKED_CAST") open suspend fun deleteWifiUsersById(id: kotlin.String): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.DELETE, - "/wifi/users/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.DELETE, + "/wifi/users/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** * enum for parameter result */ @Serializable - enum class ResultGetWifiAuthLogs( - val value: kotlin.String, - ) { + enum class ResultGetWifiAuthLogs(val value: kotlin.String) { + @SerialName(value = "true") `true`("true"), - + @SerialName(value = "false") - `false`("false"), + `false`("false"); + + override fun toString(): kotlin.String = value } /** - * + * * List WiFi auth logs. * @param limit (optional, default to 10000) * @param offset (optional, default to 0) @@ -260,16 +281,11 @@ open class WiFiApi : ApiClient { * @return GetWifiAuthLogs200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getWifiAuthLogs( - limit: kotlin.Int? = 10000, - offset: kotlin.Int? = 0, - search: kotlin.String? = null, - failureReason: kotlin.String? = null, - result: ResultGetWifiAuthLogs? = null, - ): HttpResponse { + open suspend fun getWifiAuthLogs(limit: kotlin.Int? = 10000, offset: kotlin.Int? = 0, search: kotlin.String? = null, failureReason: kotlin.String? = null, result: ResultGetWifiAuthLogs? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -280,24 +296,24 @@ open class WiFiApi : ApiClient { result?.apply { localVariableQuery["result"] = listOf("${ result.value }") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/auth-logs", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/auth-logs", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List WiFi devices and global MAC bans. * @param limit (optional, default to 10000) * @param offset (optional, default to 0) @@ -306,15 +322,11 @@ open class WiFiApi : ApiClient { * @return GetWifiDevices200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getWifiDevices( - limit: kotlin.Int? = 10000, - offset: kotlin.Int? = 0, - search: kotlin.String? = null, - wifiUserId: kotlin.String? = null, - ): HttpResponse { + open suspend fun getWifiDevices(limit: kotlin.Int? = 10000, offset: kotlin.Int? = 0, search: kotlin.String? = null, wifiUserId: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -324,241 +336,248 @@ open class WiFiApi : ApiClient { wifiUserId?.apply { localVariableQuery["wifiUserId"] = listOf("$wifiUserId") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/devices", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/devices", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List authorized WiFi NAS devices. * @return GetWifiNas200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getWifiNas(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/nas", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/nas", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List WiFi role speed-profile mappings. * @return GetWifiRoleSpeedProfiles200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getWifiRoleSpeedProfiles(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/role-speed-profiles", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/role-speed-profiles", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get the authenticated user's WiFi account and devices. * @return GetWifiSelf200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getWifiSelf(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/self", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/self", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Download the CA certificate for the authenticated user's WiFi network. * @return kotlin.String */ @Suppress("UNCHECKED_CAST") open suspend fun getWifiSelfCertificate(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/self/certificate", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/self/certificate", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List UniFi WiFi speed profiles. * @return GetWifiSpeedProfiles200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getWifiSpeedProfiles(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/speed-profiles", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/speed-profiles", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get WiFi account, device, active-device, and auth statistics. * @return GetWifiStatsOverview200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getWifiStatsOverview(): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/stats/overview", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/stats/overview", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Get the WiFi module status and configured SSID. * @return GetWifiStatus200Response */ @Suppress("UNCHECKED_CAST") open suspend fun getWifiStatus(): HttpResponse { + val localVariableAuthNames = listOf() - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/status", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/status", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * List WiFi user accounts. * @param limit (optional, default to 10000) * @param offset (optional, default to 0) @@ -566,14 +585,11 @@ open class WiFiApi : ApiClient { * @return GetWifiUsers200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun getWifiUsers( - limit: kotlin.Int? = 10000, - offset: kotlin.Int? = 0, - search: kotlin.String? = null, - ): HttpResponse { + open suspend fun getWifiUsers(limit: kotlin.Int? = 10000, offset: kotlin.Int? = 0, search: kotlin.String? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") - val localVariableBody = + val localVariableBody = io.ktor.client.utils.EmptyContent val localVariableQuery = mutableMapOf>() @@ -582,30 +598,31 @@ open class WiFiApi : ApiClient { search?.apply { localVariableQuery["search"] = listOf("$search") } val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.GET, - "/wifi/users", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.GET, + "/wifi/users", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return request( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + /** - * + * * Create a WiFi device or global MAC ban. - * @param postWifiDevicesRequest + * @param postWifiDevicesRequest * @return PostWifiDevices201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postWifiDevices(postWifiDevicesRequest: PostWifiDevicesRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postWifiDevicesRequest @@ -613,30 +630,32 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/wifi/devices", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/wifi/devices", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Register a WiFi NAS device. - * @param postWifiNasRequest + * @param postWifiNasRequest * @return PostWifiNas201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postWifiNas(postWifiNasRequest: PostWifiNasRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postWifiNasRequest @@ -644,32 +663,32 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/wifi/nas", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/wifi/nas", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Authorize a WiFi client for FreeRADIUS. - * @param postWifiRadiusAuthorizeRequest + * @param postWifiRadiusAuthorizeRequest * @return PostWifiRadiusAuthorize200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postWifiRadiusAuthorize( - postWifiRadiusAuthorizeRequest: PostWifiRadiusAuthorizeRequest, - ): HttpResponse { + open suspend fun postWifiRadiusAuthorize(postWifiRadiusAuthorizeRequest: PostWifiRadiusAuthorizeRequest): HttpResponse { + val localVariableAuthNames = listOf() val localVariableBody = postWifiRadiusAuthorizeRequest @@ -677,32 +696,32 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/wifi/radius/authorize", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = false, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/wifi/radius/authorize", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = false, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a WiFi role speed-profile mapping. - * @param postWifiRoleSpeedProfilesRequest + * @param postWifiRoleSpeedProfilesRequest * @return PostWifiRoleSpeedProfiles201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postWifiRoleSpeedProfiles( - postWifiRoleSpeedProfilesRequest: PostWifiRoleSpeedProfilesRequest, - ): HttpResponse { + open suspend fun postWifiRoleSpeedProfiles(postWifiRoleSpeedProfilesRequest: PostWifiRoleSpeedProfilesRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postWifiRoleSpeedProfilesRequest @@ -710,30 +729,32 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/wifi/role-speed-profiles", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/wifi/role-speed-profiles", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a new WiFi account for the authenticated user. - * @param postWifiSelfRequest + * @param postWifiSelfRequest * @return PostWifiSelf201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postWifiSelf(postWifiSelfRequest: PostWifiSelfRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postWifiSelfRequest @@ -741,32 +762,32 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/wifi/self", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/wifi/self", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a UniFi WiFi speed profile. - * @param postWifiSpeedProfilesRequest + * @param postWifiSpeedProfilesRequest * @return PostWifiSpeedProfiles201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun postWifiSpeedProfiles( - postWifiSpeedProfilesRequest: PostWifiSpeedProfilesRequest, - ): HttpResponse { + open suspend fun postWifiSpeedProfiles(postWifiSpeedProfilesRequest: PostWifiSpeedProfilesRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postWifiSpeedProfilesRequest @@ -774,30 +795,32 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/wifi/speed-profiles", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/wifi/speed-profiles", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Create a WiFi user account. - * @param postWifiUsersRequest + * @param postWifiUsersRequest * @return PostWifiUsers201Response */ @Suppress("UNCHECKED_CAST") open suspend fun postWifiUsers(postWifiUsersRequest: PostWifiUsersRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = postWifiUsersRequest @@ -805,34 +828,33 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.POST, - "/wifi/users", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.POST, + "/wifi/users", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a WiFi device or global MAC ban. - * @param id + * @param id * @param putWifiDevicesByIdRequest (optional) * @return PostWifiDevices201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putWifiDevicesById( - id: kotlin.String, - putWifiDevicesByIdRequest: PutWifiDevicesByIdRequest? = null, - ): HttpResponse { + open suspend fun putWifiDevicesById(id: kotlin.String, putWifiDevicesByIdRequest: PutWifiDevicesByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putWifiDevicesByIdRequest @@ -840,34 +862,33 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/wifi/devices/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/wifi/devices/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a WiFi NAS device. - * @param id + * @param id * @param putWifiNasByIdRequest (optional) * @return PostWifiNas201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putWifiNasById( - id: kotlin.String, - putWifiNasByIdRequest: PutWifiNasByIdRequest? = null, - ): HttpResponse { + open suspend fun putWifiNasById(id: kotlin.String, putWifiNasByIdRequest: PutWifiNasByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putWifiNasByIdRequest @@ -875,34 +896,33 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/wifi/nas/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/wifi/nas/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a WiFi role speed-profile mapping. - * @param id + * @param id * @param putWifiRoleSpeedProfilesByIdRequest (optional) * @return PostWifiRoleSpeedProfiles201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putWifiRoleSpeedProfilesById( - id: kotlin.String, - putWifiRoleSpeedProfilesByIdRequest: PutWifiRoleSpeedProfilesByIdRequest? = null, - ): HttpResponse { + open suspend fun putWifiRoleSpeedProfilesById(id: kotlin.String, putWifiRoleSpeedProfilesByIdRequest: PutWifiRoleSpeedProfilesByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putWifiRoleSpeedProfilesByIdRequest @@ -910,34 +930,33 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/wifi/role-speed-profiles/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/wifi/role-speed-profiles/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Rename one of the authenticated user's WiFi devices. - * @param id - * @param putWifiSelfDevicesByIdRequest + * @param id + * @param putWifiSelfDevicesByIdRequest * @return PostWifiSelf201ResponseDevicesInner */ @Suppress("UNCHECKED_CAST") - open suspend fun putWifiSelfDevicesById( - id: kotlin.String, - putWifiSelfDevicesByIdRequest: PutWifiSelfDevicesByIdRequest, - ): HttpResponse { + open suspend fun putWifiSelfDevicesById(id: kotlin.String, putWifiSelfDevicesByIdRequest: PutWifiSelfDevicesByIdRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putWifiSelfDevicesByIdRequest @@ -945,32 +964,32 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/wifi/self/devices/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/wifi/self/devices/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Change the authenticated user's WiFi account password. - * @param putWifiSelfPasswordRequest + * @param putWifiSelfPasswordRequest * @return PutWifiSelfPassword200Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putWifiSelfPassword( - putWifiSelfPasswordRequest: PutWifiSelfPasswordRequest, - ): HttpResponse { + open suspend fun putWifiSelfPassword(putWifiSelfPasswordRequest: PutWifiSelfPasswordRequest): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putWifiSelfPasswordRequest @@ -978,34 +997,33 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/wifi/self/password", - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/wifi/self/password", + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a UniFi WiFi speed profile. - * @param id + * @param id * @param putWifiSpeedProfilesByIdRequest (optional) * @return PostWifiSpeedProfiles201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putWifiSpeedProfilesById( - id: kotlin.String, - putWifiSpeedProfilesByIdRequest: PutWifiSpeedProfilesByIdRequest? = null, - ): HttpResponse { + open suspend fun putWifiSpeedProfilesById(id: kotlin.String, putWifiSpeedProfilesByIdRequest: PutWifiSpeedProfilesByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putWifiSpeedProfilesByIdRequest @@ -1013,34 +1031,33 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/wifi/speed-profiles/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/wifi/speed-profiles/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + /** - * + * * Update a WiFi user account. - * @param id + * @param id * @param putWifiUsersByIdRequest (optional) * @return PostWifiUsers201Response */ @Suppress("UNCHECKED_CAST") - open suspend fun putWifiUsersById( - id: kotlin.String, - putWifiUsersByIdRequest: PutWifiUsersByIdRequest? = null, - ): HttpResponse { + open suspend fun putWifiUsersById(id: kotlin.String, putWifiUsersByIdRequest: PutWifiUsersByIdRequest? = null): HttpResponse { + val localVariableAuthNames = listOf("sessionAuth") val localVariableBody = putWifiUsersByIdRequest @@ -1048,19 +1065,21 @@ open class WiFiApi : ApiClient { val localVariableQuery = mutableMapOf>() val localVariableHeaders = mutableMapOf() - val localVariableConfig = - RequestConfig( - RequestMethod.PUT, - "/wifi/users/{id}".replace("{" + "id" + "}", "$id"), - query = localVariableQuery, - headers = localVariableHeaders, - requiresAuthentication = true, - ) + val localVariableConfig = RequestConfig( + RequestMethod.PUT, + "/wifi/users/{id}".replace("{" + "id" + "}", "$id"), + query = localVariableQuery, + headers = localVariableHeaders, + requiresAuthentication = true, + ) return jsonRequest( localVariableConfig, localVariableBody, - localVariableAuthNames, + localVariableAuthNames ).wrap() } + + + } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/ApiAbstractions.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/ApiAbstractions.kt index ac6a966..5e5f985 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/ApiAbstractions.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/ApiAbstractions.kt @@ -1,30 +1,23 @@ package hu.petrik.filcapp.api.infrastructure -typealias MultiValueMap = MutableMap> +typealias MultiValueMap = MutableMap> -fun collectionDelimiter(collectionFormat: String): String = - when (collectionFormat) { - "csv" -> "," - "tsv" -> "\t" - "pipe" -> "|" - "space" -> " " - else -> "" - } +fun collectionDelimiter(collectionFormat: String): String = when(collectionFormat) { + "csv" -> "," + "tsv" -> "\t" + "pipes" -> "|" + "ssv" -> " " + else -> "" +} val defaultMultiValueConverter: (item: Any?) -> String = { item -> "$item" } -fun toMultiValue( - items: Array, - collectionFormat: String, - map: (item: T) -> String = defaultMultiValueConverter, -): List = toMultiValue(items.asIterable(), collectionFormat, map) +fun toMultiValue(items: Array, collectionFormat: String, map: (item: T) -> String = defaultMultiValueConverter): List + = toMultiValue(items.asIterable(), collectionFormat, map) -fun toMultiValue( - items: Iterable, - collectionFormat: String, - map: (item: T) -> String = defaultMultiValueConverter, -): List = - when (collectionFormat) { +fun toMultiValue(items: Iterable, collectionFormat: String, map: (item: T) -> String = defaultMultiValueConverter): List { + return when(collectionFormat) { "multi" -> items.map(map) else -> listOf(items.joinToString(separator = collectionDelimiter(collectionFormat), transform = map)) } +} diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/ApiClient.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/ApiClient.kt index b6fd3f6..17b80e7 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/ApiClient.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/ApiClient.kt @@ -1,7 +1,5 @@ package hu.petrik.filcapp.api.infrastructure -import hu.petrik.filcapp.api.auth.* -import hu.petrik.filcapp.config.MergenEnvironment import io.ktor.client.HttpClient import io.ktor.client.HttpClientConfig import io.ktor.client.engine.HttpClientEngine @@ -12,17 +10,20 @@ import io.ktor.client.request.forms.MultiPartFormDataContent import io.ktor.client.request.header import io.ktor.client.request.parameter import io.ktor.client.statement.HttpResponse -import io.ktor.http.* import io.ktor.http.ContentType +import io.ktor.serialization.kotlinx.json.json +import io.ktor.http.* import io.ktor.http.content.PartData import io.ktor.http.contentType -import io.ktor.serialization.kotlinx.json.json -import kotlinx.serialization.json.Json import kotlin.Unit +import kotlinx.serialization.json.Json + +import hu.petrik.filcapp.api.auth.* open class ApiClient( - private val baseUrl: String, + private val baseUrl: String ) { + private lateinit var client: HttpClient constructor( @@ -43,22 +44,23 @@ open class ApiClient( constructor( baseUrl: String, - httpClient: HttpClient, - ) : this(baseUrl = baseUrl) { + httpClient: HttpClient + ): this(baseUrl = baseUrl) { this.client = httpClient } private val authentications: kotlin.collections.Map by lazy { - mapOf("sessionAuth" to ApiKeyAuth("cookie", "filc.session_token")) + mapOf( + "sessionAuth" to ApiKeyAuth("query", "filc.session_token")) } companion object { - const val BASE_URL: String = MergenEnvironment.API_BASE_URL - val JSON_DEFAULT: Json = - Json { - ignoreUnknownKeys = true - isLenient = true - } + const val BASE_URL: String = "https://filc.petrik.hu/api" + val JSON_DEFAULT: Json = Json { + ignoreUnknownKeys = true + prettyPrint = true + isLenient = true + } protected val UNSAFE_HEADERS: List = listOf(HttpHeaders.ContentType) } @@ -68,8 +70,7 @@ open class ApiClient( * @param username Username */ fun setUsername(username: String) { - val auth = - authentications?.values?.firstOrNull { it is HttpBasicAuth } as HttpBasicAuth? + val auth = authentications?.values?.firstOrNull { it is HttpBasicAuth } as HttpBasicAuth? ?: throw Exception("No HTTP basic authentication configured") auth.username = username } @@ -80,8 +81,7 @@ open class ApiClient( * @param password Password */ fun setPassword(password: String) { - val auth = - authentications?.values?.firstOrNull { it is HttpBasicAuth } as HttpBasicAuth? + val auth = authentications?.values?.firstOrNull { it is HttpBasicAuth } as HttpBasicAuth? ?: throw Exception("No HTTP basic authentication configured") auth.password = password } @@ -92,12 +92,8 @@ open class ApiClient( * @param apiKey API key * @param paramName The name of the API key parameter, or null or set the first key. */ - fun setApiKey( - apiKey: String, - paramName: String? = null, - ) { - val auth = - authentications?.values?.firstOrNull { it is ApiKeyAuth && (paramName == null || paramName == it.paramName) } as ApiKeyAuth? + fun setApiKey(apiKey: String, paramName: String? = null) { + val auth = authentications?.values?.firstOrNull { it is ApiKeyAuth && (paramName == null || paramName == it.paramName)} as ApiKeyAuth? ?: throw Exception("No API key authentication configured") auth.apiKey = apiKey } @@ -108,12 +104,8 @@ open class ApiClient( * @param apiKeyPrefix API key prefix * @param paramName The name of the API key parameter, or null or set the first key. */ - fun setApiKeyPrefix( - apiKeyPrefix: String, - paramName: String? = null, - ) { - val auth = - authentications?.values?.firstOrNull { it is ApiKeyAuth && (paramName == null || paramName == it.paramName) } as ApiKeyAuth? + fun setApiKeyPrefix(apiKeyPrefix: String, paramName: String? = null) { + val auth = authentications?.values?.firstOrNull { it is ApiKeyAuth && (paramName == null || paramName == it.paramName) } as ApiKeyAuth? ?: throw Exception("No API key authentication configured") auth.apiKeyPrefix = apiKeyPrefix } @@ -124,8 +116,7 @@ open class ApiClient( * @param accessToken Access token */ fun setAccessToken(accessToken: String) { - val auth = - authentications?.values?.firstOrNull { it is OAuth } as OAuth? + val auth = authentications?.values?.firstOrNull { it is OAuth } as OAuth? ?: throw Exception("No OAuth2 authentication configured") auth.accessToken = accessToken } @@ -136,35 +127,22 @@ open class ApiClient( * @param bearerToken The bearer token. */ fun setBearerToken(bearerToken: String) { - val auth = - authentications?.values?.firstOrNull { it is HttpBearerAuth } as HttpBearerAuth? + val auth = authentications?.values?.firstOrNull { it is HttpBearerAuth } as HttpBearerAuth? ?: throw Exception("No Bearer authentication configured") auth.bearerToken = bearerToken } - protected suspend fun multipartFormRequest( - requestConfig: RequestConfig, - body: kotlin.collections.List?, - authNames: kotlin.collections.List, - ): HttpResponse = request(requestConfig, MultiPartFormDataContent(body ?: listOf()), authNames) - - protected suspend fun urlEncodedFormRequest( - requestConfig: RequestConfig, - body: Parameters?, - authNames: kotlin.collections.List, - ): HttpResponse = request(requestConfig, FormDataContent(body ?: Parameters.Empty), authNames) - - protected suspend fun jsonRequest( - requestConfig: RequestConfig, - body: Any? = null, - authNames: kotlin.collections.List, - ): HttpResponse = request(requestConfig, body, authNames) - - protected suspend fun request( - requestConfig: RequestConfig, - body: Any? = null, - authNames: kotlin.collections.List, - ): HttpResponse { + protected suspend fun multipartFormRequest(requestConfig: RequestConfig, body: kotlin.collections.List?, authNames: kotlin.collections.List): HttpResponse { + return request(requestConfig, MultiPartFormDataContent(body ?: listOf()), authNames) + } + + protected suspend fun urlEncodedFormRequest(requestConfig: RequestConfig, body: Parameters?, authNames: kotlin.collections.List): HttpResponse { + return request(requestConfig, FormDataContent(body ?: Parameters.Empty), authNames) + } + + protected suspend fun jsonRequest(requestConfig: RequestConfig, body: Any? = null, authNames: kotlin.collections.List): HttpResponse = request(requestConfig, body, authNames) + + protected suspend fun request(requestConfig: RequestConfig, body: Any? = null, authNames: kotlin.collections.List): HttpResponse { requestConfig.updateForAuth(authNames) val headers = requestConfig.headers @@ -180,38 +158,34 @@ open class ApiClient( } this.method = requestConfig.method.httpMethod headers.filter { header -> !UNSAFE_HEADERS.contains(header.key) }.forEach { header -> this.header(header.key, header.value) } - if (requestConfig.method in listOf(RequestMethod.PUT, RequestMethod.POST, RequestMethod.PATCH)) { - val contentType = ( - requestConfig.headers[HttpHeaders.ContentType]?.let { ContentType.parse(it) } - ?: ContentType.Application.Json - ) + if (requestConfig.method in listOf(RequestMethod.PUT, RequestMethod.POST, RequestMethod.PATCH, RequestMethod.DELETE)) { + val contentType = (requestConfig.headers[HttpHeaders.ContentType]?.let { ContentType.parse(it) } + ?: ContentType.Application.Json) this.contentType(contentType) this.setBody(body) } } } - private fun RequestConfig.updateForAuth(authNames: kotlin.collections.List) { + private fun RequestConfig.updateForAuth(authNames: kotlin.collections.List) { for (authName in authNames) { val auth = authentications?.get(authName) ?: throw Exception("Authentication undefined: $authName") auth.apply(query, headers) } } - private fun URLBuilder.appendPath(components: kotlin.collections.List): URLBuilder = - apply { - encodedPath = encodedPath.trimEnd('/') + components.joinToString("/", prefix = "/") { it.encodeURLQueryComponent() } - } + private fun URLBuilder.appendPath(components: kotlin.collections.List): URLBuilder = apply { + encodedPath = encodedPath.trimEnd('/') + components.joinToString("/", prefix = "/") { it.encodeURLQueryComponent() } + } private val RequestMethod.httpMethod: HttpMethod - get() = - when (this) { - RequestMethod.DELETE -> HttpMethod.Delete - RequestMethod.GET -> HttpMethod.Get - RequestMethod.HEAD -> HttpMethod.Head - RequestMethod.PATCH -> HttpMethod.Patch - RequestMethod.PUT -> HttpMethod.Put - RequestMethod.POST -> HttpMethod.Post - RequestMethod.OPTIONS -> HttpMethod.Options - } + get() = when (this) { + RequestMethod.DELETE -> HttpMethod.Delete + RequestMethod.GET -> HttpMethod.Get + RequestMethod.HEAD -> HttpMethod.Head + RequestMethod.PATCH -> HttpMethod.Patch + RequestMethod.PUT -> HttpMethod.Put + RequestMethod.POST -> HttpMethod.Post + RequestMethod.OPTIONS -> HttpMethod.Options + } } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/Base64ByteArray.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/Base64ByteArray.kt index 7f8f43d..af72361 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/Base64ByteArray.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/Base64ByteArray.kt @@ -3,20 +3,14 @@ package hu.petrik.filcapp.api.infrastructure import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* +import kotlin.io.encoding.Base64 @Serializable(Base64ByteArray.Companion::class) -class Base64ByteArray( - val value: ByteArray, -) { +class Base64ByteArray(val value: ByteArray) { companion object : KSerializer { override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("Base64ByteArray", PrimitiveKind.STRING) - - override fun serialize( - encoder: Encoder, - value: Base64ByteArray, - ): Unit = encoder.encodeString(value.value.encodeBase64()) - - override fun deserialize(decoder: Decoder): Base64ByteArray = Base64ByteArray(decoder.decodeString().decodeBase64Bytes()) + override fun serialize(encoder: Encoder, value: Base64ByteArray): Unit = encoder.encodeString(Base64.encode(value.value)) + override fun deserialize(decoder: Decoder): Base64ByteArray = Base64ByteArray(Base64.decode(decoder.decodeString())) } override fun equals(other: Any?): Boolean { @@ -26,7 +20,11 @@ class Base64ByteArray( return value.contentEquals(other.value) } - override fun hashCode(): Int = value.contentHashCode() + override fun hashCode(): Int { + return value.contentHashCode() + } - override fun toString(): String = "Base64ByteArray(${hex(value)})" + override fun toString(): String { + return "Base64ByteArray(${value.toHexString()})" + } } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/HttpResponse.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/HttpResponse.kt index d929cdb..1e598be 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/HttpResponse.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/HttpResponse.kt @@ -5,16 +5,11 @@ import io.ktor.http.isSuccess import io.ktor.util.reflect.TypeInfo import io.ktor.util.reflect.typeInfo -open class HttpResponse( - val response: io.ktor.client.statement.HttpResponse, - val provider: BodyProvider, -) { +open class HttpResponse(val response: io.ktor.client.statement.HttpResponse, val provider: BodyProvider) { val status: Int = response.status.value val success: Boolean = response.status.isSuccess() val headers: Map> = response.headers.mapEntries() - suspend fun body(): T = provider.body(response) - suspend fun typedBody(type: TypeInfo): V = provider.typedBody(response, type) companion object { @@ -28,39 +23,29 @@ open class HttpResponse( interface BodyProvider { suspend fun body(response: io.ktor.client.statement.HttpResponse): T - - suspend fun typedBody( - response: io.ktor.client.statement.HttpResponse, - type: TypeInfo, - ): V + suspend fun typedBody(response: io.ktor.client.statement.HttpResponse, type: TypeInfo): V } -class TypedBodyProvider( - private val type: TypeInfo, -) : BodyProvider { +class TypedBodyProvider(private val type: TypeInfo) : BodyProvider { @Suppress("UNCHECKED_CAST") - override suspend fun body(response: io.ktor.client.statement.HttpResponse): T = response.call.body(type) as T + override suspend fun body(response: io.ktor.client.statement.HttpResponse): T = + response.call.body(type) as T @Suppress("UNCHECKED_CAST") - override suspend fun typedBody( - response: io.ktor.client.statement.HttpResponse, - type: TypeInfo, - ): V = response.call.body(type) as V + override suspend fun typedBody(response: io.ktor.client.statement.HttpResponse, type: TypeInfo): V = + response.call.body(type) as V } -class MappedBodyProvider( - private val provider: BodyProvider, - private val block: S.() -> T, -) : BodyProvider { - override suspend fun body(response: io.ktor.client.statement.HttpResponse): T = block(provider.body(response)) +class MappedBodyProvider(private val provider: BodyProvider, private val block: S.() -> T) : BodyProvider { + override suspend fun body(response: io.ktor.client.statement.HttpResponse): T = + block(provider.body(response)) - override suspend fun typedBody( - response: io.ktor.client.statement.HttpResponse, - type: TypeInfo, - ): V = provider.typedBody(response, type) + override suspend fun typedBody(response: io.ktor.client.statement.HttpResponse, type: TypeInfo): V = + provider.typedBody(response, type) } inline fun io.ktor.client.statement.HttpResponse.wrap(): HttpResponse = - HttpResponse(this, TypedBodyProvider(typeInfo())) + HttpResponse(this, TypedBodyProvider(typeInfo())) -fun HttpResponse.map(block: T.() -> V): HttpResponse = HttpResponse(response, MappedBodyProvider(provider, block)) +fun HttpResponse.map(block: T.() -> V): HttpResponse = + HttpResponse(response, MappedBodyProvider(provider, block)) diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/OctetByteArray.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/OctetByteArray.kt index 53bfd6a..614675d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/OctetByteArray.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/OctetByteArray.kt @@ -5,18 +5,11 @@ import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* @Serializable(OctetByteArray.Companion::class) -class OctetByteArray( - val value: ByteArray, -) { +class OctetByteArray(val value: ByteArray) { companion object : KSerializer { override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("OctetByteArray", PrimitiveKind.STRING) - - override fun serialize( - encoder: Encoder, - value: OctetByteArray, - ): Unit = encoder.encodeString(hex(value.value)) - - override fun deserialize(decoder: Decoder): OctetByteArray = OctetByteArray(hex(decoder.decodeString())) + override fun serialize(encoder: Encoder, value: OctetByteArray): Unit = encoder.encodeString(value.value.toHexString()) + override fun deserialize(decoder: Decoder): OctetByteArray = OctetByteArray(decoder.decodeString().hexToByteArray()) } override fun equals(other: Any?): Boolean { @@ -26,7 +19,11 @@ class OctetByteArray( return value.contentEquals(other.value) } - override fun hashCode(): Int = value.contentHashCode() + override fun hashCode(): Int { + return value.contentHashCode() + } - override fun toString(): String = "OctetByteArray(${hex(value)})" + override fun toString(): String { + return "OctetByteArray(${value.toHexString()})" + } } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/PartConfig.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/PartConfig.kt index 130ebeb..124c021 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/PartConfig.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/PartConfig.kt @@ -4,8 +4,16 @@ package hu.petrik.filcapp.api.infrastructure * Defines a config object for a given part of a multi-part request. * NOTE: Headers is a Map because rfc2616 defines * multi-valued headers as csv-only. + * + * @property headers The headers for this part + * @property body The body content for this part + * @property serializer Optional custom serializer for JSON content. When provided, this will be + * used instead of the default serialization for parts with application/json + * content-type. This allows capturing type information at the call site to + * avoid issues with type erasure in kotlinx.serialization. */ data class PartConfig( val headers: MutableMap = mutableMapOf(), val body: T? = null, + val serializer: ((Any?) -> String)? = null ) diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/RequestConfig.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/RequestConfig.kt index 6cd6500..c5d34d0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/RequestConfig.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/RequestConfig.kt @@ -15,5 +15,5 @@ data class RequestConfig( val params: MutableMap = mutableMapOf(), val query: MutableMap> = mutableMapOf(), val requiresAuthentication: Boolean, - val body: T? = null, + val body: T? = null ) diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/RequestMethod.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/RequestMethod.kt index a9c3cd9..9cff07e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/RequestMethod.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/infrastructure/RequestMethod.kt @@ -4,11 +4,5 @@ package hu.petrik.filcapp.api.infrastructure * Provides enumerated HTTP verbs */ enum class RequestMethod { - GET, - DELETE, - HEAD, - OPTIONS, - PATCH, - POST, - PUT, + GET, DELETE, HEAD, OPTIONS, PATCH, POST, PUT } diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteAdminApiKeysByKeyId200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteAdminApiKeysByKeyId200Response.kt index a2ac0e0..3dc5c9a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteAdminApiKeysByKeyId200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteAdminApiKeysByKeyId200Response.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id */ @Serializable -data class DeleteAdminApiKeysByKeyId200Response( - @SerialName(value = "id") @Required val id: kotlin.String?, -) + +data class DeleteAdminApiKeysByKeyId200Response ( + + @SerialName(value = "id") @Required val id: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteAdminApiKeysByKeyId400Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteAdminApiKeysByKeyId400Response.kt index 388af08..9b43a4b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteAdminApiKeysByKeyId400Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteAdminApiKeysByKeyId400Response.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param code * @param message * @param status */ @Serializable -data class DeleteAdminApiKeysByKeyId400Response( + +data class DeleteAdminApiKeysByKeyId400Response ( + @SerialName(value = "code") @Required val code: kotlin.String, + @SerialName(value = "message") @Required val message: kotlin.String?, - @SerialName(value = "status") @Required val status: kotlin.Int, -) + + @SerialName(value = "status") @Required val status: kotlin.Int + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteNavigatorBuildingsById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteNavigatorBuildingsById200Response.kt index c906e43..65a7bac 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteNavigatorBuildingsById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/DeleteNavigatorBuildingsById200Response.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id */ @Serializable -data class DeleteNavigatorBuildingsById200Response( - @SerialName(value = "id") @Required val id: kotlin.String?, -) + +data class DeleteNavigatorBuildingsById200Response ( + + @SerialName(value = "id") @Required val id: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetAdminApiKeys200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetAdminApiKeys200Response.kt index 019b500..acf1d31 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetAdminApiKeys200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetAdminApiKeys200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetAdminApiKeys200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetAdminApiKeys200Response( + +data class GetAdminApiKeys200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetAdminApiKeys200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetAdminApiKeys200ResponseItemsInner.kt index 41c94f1..759cafe 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetAdminApiKeys200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetAdminApiKeys200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param enabled * @param expiresAt @@ -37,18 +44,37 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetAdminApiKeys200ResponseItemsInner( + +data class GetAdminApiKeys200ResponseItemsInner ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean, + @SerialName(value = "expiresAt") @Required val expiresAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "lastRequest") @Required val lastRequest: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "ownerEmail") @Required val ownerEmail: kotlin.String, + @SerialName(value = "ownerName") @Required val ownerName: kotlin.String, + @SerialName(value = "prefix") @Required val prefix: kotlin.String?, + @SerialName(value = "referenceId") @Required val referenceId: kotlin.String, + @SerialName(value = "requestCount") @Required val requestCount: kotlin.Double, + @SerialName(value = "start") @Required val start: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200Response.kt index 135e91f..92ea30e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetBugReport200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetBugReport200Response( + +data class GetBugReport200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInner.kt index f55d6df..45f0fbc 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInner.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetBugReport200ResponseItemsInnerMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param description * @param id @@ -35,15 +42,31 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetBugReport200ResponseItemsInner( + +data class GetBugReport200ResponseItemsInner ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "description") @Required val description: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "metadata") @Required val metadata: GetBugReport200ResponseItemsInnerMetadata?, + @SerialName(value = "page") @Required val page: kotlin.String?, + @SerialName(value = "reporterEmail") @Required val reporterEmail: kotlin.String?, + @SerialName(value = "reporterId") @Required val reporterId: kotlin.String?, + @SerialName(value = "status") @Required val status: kotlin.String?, + @SerialName(value = "subject") @Required val subject: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadata.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadata.kt index 625aab3..33996dd 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadata.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadata.kt @@ -8,22 +8,36 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetBugReport200ResponseItemsInnerMetadataAnyOfInner import hu.petrik.filcapp.api.model.GetBugReport200ResponseItemsInnerMetadataAnyOfValue + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * */ @Serializable -class GetBugReport200ResponseItemsInnerMetadata + +class GetBugReport200ResponseItemsInnerMetadata ( + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadataAnyOfInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadataAnyOfInner.kt index e1a1460..bcf1495 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadataAnyOfInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadataAnyOfInner.kt @@ -8,21 +8,34 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.JsonElement /** - * - * */ @Serializable -class GetBugReport200ResponseItemsInnerMetadataAnyOfInner + +class GetBugReport200ResponseItemsInnerMetadataAnyOfInner ( + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadataAnyOfValue.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadataAnyOfValue.kt index e5661c0..d0cdc3f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadataAnyOfValue.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetBugReport200ResponseItemsInnerMetadataAnyOfValue.kt @@ -8,21 +8,34 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.JsonElement /** - * - * */ @Serializable -class GetBugReport200ResponseItemsInnerMetadataAnyOfValue + +class GetBugReport200ResponseItemsInnerMetadataAnyOfValue ( + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetCohort200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetCohort200Response.kt index e2cd4df..4f84fdb 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetCohort200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetCohort200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetCohort200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetCohort200Response( + +data class GetCohort200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetCohort200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetCohort200ResponseItemsInner.kt index e45aa12..60a5982 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetCohort200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetCohort200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param classroomIds * @param id * @param name @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param timetableId */ @Serializable -data class GetCohort200ResponseItemsInner( - @SerialName(value = "classroomIds") @Required val classroomIds: kotlin.collections.List?, + +data class GetCohort200ResponseItemsInner ( + + @SerialName(value = "classroomIds") @Required val classroomIds: kotlin.collections.List?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "short") @Required val short: kotlin.String?, + @SerialName(value = "teacherId") @Required val teacherId: kotlin.String?, - @SerialName(value = "timetableId") @Required val timetableId: kotlin.String?, -) + + @SerialName(value = "timetableId") @Required val timetableId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200Response.kt index 1da7aea..7829635 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200Response.kt @@ -8,24 +8,38 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDashboardStats200ResponseStats + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param stats */ @Serializable -data class GetDashboardStats200Response( - @SerialName(value = "stats") @Required val stats: GetDashboardStats200ResponseStats, -) + +data class GetDashboardStats200Response ( + + @SerialName(value = "stats") @Required val stats: GetDashboardStats200ResponseStats + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200ResponseStats.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200ResponseStats.kt index cb32a35..9b7bca3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200ResponseStats.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200ResponseStats.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDashboardStats200ResponseStatsChartDataInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param chartData * @param chartTotalMovedLessons * @param chartTotalSubstitutions @@ -33,13 +40,27 @@ import kotlinx.serialization.encoding.* * @param totalUsers */ @Serializable -data class GetDashboardStats200ResponseStats( + +data class GetDashboardStats200ResponseStats ( + @SerialName(value = "chartData") @Required val chartData: kotlin.collections.List, + @SerialName(value = "chartTotalMovedLessons") @Required val chartTotalMovedLessons: kotlin.Int?, + @SerialName(value = "chartTotalSubstitutions") @Required val chartTotalSubstitutions: kotlin.Int?, + @SerialName(value = "totalCohorts") @Required val totalCohorts: kotlin.Int?, + @SerialName(value = "totalMovedLessons") @Required val totalMovedLessons: kotlin.Int?, + @SerialName(value = "totalRoles") @Required val totalRoles: kotlin.Int?, + @SerialName(value = "totalSubstitutions") @Required val totalSubstitutions: kotlin.Int?, - @SerialName(value = "totalUsers") @Required val totalUsers: kotlin.Int?, -) + + @SerialName(value = "totalUsers") @Required val totalUsers: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200ResponseStatsChartDataInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200ResponseStatsChartDataInner.kt index eaf52f1..d31fba6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200ResponseStatsChartDataInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDashboardStats200ResponseStatsChartDataInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param date * @param movedLessons * @param substitutions */ @Serializable -data class GetDashboardStats200ResponseStatsChartDataInner( + +data class GetDashboardStats200ResponseStatsChartDataInner ( + @SerialName(value = "date") @Required val date: kotlin.String?, + @SerialName(value = "movedLessons") @Required val movedLessons: kotlin.Int, - @SerialName(value = "substitutions") @Required val substitutions: kotlin.Int?, -) + + @SerialName(value = "substitutions") @Required val substitutions: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200Response.kt index 09c21f9..7a6190b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockCards200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetDoorlockCards200Response( + +data class GetDoorlockCards200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInner.kt index fab8666..594484d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInner.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockCards200ResponseItemsInnerAuthorizedDevicesInner import hu.petrik.filcapp.api.model.GetDoorlockCards200ResponseItemsInnerOwner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorizedDevices * @param cardData * @param createdAt @@ -36,16 +43,31 @@ import kotlinx.serialization.encoding.* * @param owner */ @Serializable -data class GetDoorlockCards200ResponseItemsInner( - @SerialName(value = "authorizedDevices") @Required val authorizedDevices: - kotlin.collections.List, + +data class GetDoorlockCards200ResponseItemsInner ( + + @SerialName(value = "authorizedDevices") @Required val authorizedDevices: kotlin.collections.List, + @SerialName(value = "cardData") @Required val cardData: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean, + @SerialName(value = "frozen") @Required val frozen: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "userId") @Required val userId: kotlin.String?, - @SerialName(value = "owner") val owner: GetDoorlockCards200ResponseItemsInnerOwner? = null, -) + + @SerialName(value = "owner") val owner: GetDoorlockCards200ResponseItemsInnerOwner? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInnerAuthorizedDevicesInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInnerAuthorizedDevicesInner.kt index 736c9ce..96afe60 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInnerAuthorizedDevicesInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInnerAuthorizedDevicesInner.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param name */ @Serializable -data class GetDoorlockCards200ResponseItemsInnerAuthorizedDevicesInner( + +data class GetDoorlockCards200ResponseItemsInnerAuthorizedDevicesInner ( + @SerialName(value = "id") @Required val id: kotlin.String?, - @SerialName(value = "name") @Required val name: kotlin.String?, -) + + @SerialName(value = "name") @Required val name: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInnerOwner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInnerOwner.kt index d96c8fa..5e862b7 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInnerOwner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCards200ResponseItemsInnerOwner.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param id * @param name * @param nickname */ @Serializable -data class GetDoorlockCards200ResponseItemsInnerOwner( + +data class GetDoorlockCards200ResponseItemsInnerOwner ( + @SerialName(value = "email") @Required val email: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, - @SerialName(value = "nickname") @Required val nickname: kotlin.String?, -) + + @SerialName(value = "nickname") @Required val nickname: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCardsUsers200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCardsUsers200Response.kt index 1f71969..e7e7e59 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCardsUsers200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCardsUsers200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockCardsUsers200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetDoorlockCardsUsers200Response( + +data class GetDoorlockCardsUsers200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCardsUsers200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCardsUsers200ResponseItemsInner.kt index 014efe0..55e178d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCardsUsers200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockCardsUsers200ResponseItemsInner.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param id * @param name * @param nickname */ @Serializable -data class GetDoorlockCardsUsers200ResponseItemsInner( + +data class GetDoorlockCardsUsers200ResponseItemsInner ( + @SerialName(value = "email") @Required val email: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "nickname") @Required val nickname: kotlin.String?, -) + + @SerialName(value = "nickname") @Required val nickname: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevices200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevices200Response.kt index efe0d73..3c450bb 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevices200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevices200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockDevices200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetDoorlockDevices200Response( + +data class GetDoorlockDevices200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevices200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevices200ResponseItemsInner.kt index 2181aa4..273c62b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevices200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevices200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param apiToken * @param createdAt * @param id @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetDoorlockDevices200ResponseItemsInner( + +data class GetDoorlockDevices200ResponseItemsInner ( + @SerialName(value = "apiToken") @Required val apiToken: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "lastResetReason") @Required val lastResetReason: kotlin.String?, + @SerialName(value = "location") @Required val location: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200Response.kt index 49d8906..aaf3036 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200Response.kt @@ -8,24 +8,38 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockDevicesByIdStats200ResponseStatsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param stats */ @Serializable -data class GetDoorlockDevicesByIdStats200Response( - @SerialName(value = "stats") @Required val stats: kotlin.collections.List, -) + +data class GetDoorlockDevicesByIdStats200Response ( + + @SerialName(value = "stats") @Required val stats: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInner.kt index b630910..578694e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInner.kt @@ -8,28 +8,44 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMeta + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param deviceMeta * @param id * @param timestamp */ @Serializable -data class GetDoorlockDevicesByIdStats200ResponseStatsInner( + +data class GetDoorlockDevicesByIdStats200ResponseStatsInner ( + @SerialName(value = "deviceMeta") @Required val deviceMeta: GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMeta, + @SerialName(value = "id") @Required val id: kotlin.Int?, - @SerialName(value = "timestamp") @Required val timestamp: kotlin.String?, -) + + @SerialName(value = "timestamp") @Required val timestamp: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMeta.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMeta.kt index 68f368b..79cb673 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMeta.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMeta.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug import hu.petrik.filcapp.api.model.GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaStorage + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param debug * @param fwVersion * @param ramFree @@ -31,10 +38,21 @@ import kotlinx.serialization.encoding.* * @param uptime */ @Serializable -data class GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMeta( + +data class GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMeta ( + @SerialName(value = "debug") @Required val debug: GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug, + @SerialName(value = "fwVersion") @Required val fwVersion: kotlin.String?, + @SerialName(value = "ramFree") @Required val ramFree: kotlin.Double?, + @SerialName(value = "storage") @Required val storage: GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaStorage, - @SerialName(value = "uptime") @Required val uptime: kotlin.Double?, -) + + @SerialName(value = "uptime") @Required val uptime: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug.kt index 62c07b8..166e0f4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug.kt @@ -8,51 +8,55 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebugErrors + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param deviceState * @param errors * @param lastResetReason */ @Serializable -data class GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug( - @SerialName(value = "deviceState") @Required val deviceState: - GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug.DeviceState, + +data class GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug ( + + @SerialName(value = "deviceState") @Required val deviceState: GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebug.DeviceState, + @SerialName(value = "errors") @Required val errors: GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebugErrors, - @SerialName(value = "lastResetReason") @Required val lastResetReason: kotlin.String?, + + @SerialName(value = "lastResetReason") @Required val lastResetReason: kotlin.String? + ) { + /** - * - * * Values: booting,error,idle,updating */ @Serializable - enum class DeviceState( - val value: kotlin.String, - ) { - @SerialName(value = "booting") - booting("booting"), - - @SerialName(value = "error") - error("error"), - - @SerialName(value = "idle") - idle("idle"), - - @SerialName(value = "updating") - updating("updating"), + enum class DeviceState(val value: kotlin.String) { + @SerialName(value = "booting") booting("booting"), + @SerialName(value = "error") error("error"), + @SerialName(value = "idle") idle("idle"), + @SerialName(value = "updating") updating("updating"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebugErrors.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebugErrors.kt index bc68d2e..ccfb279 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebugErrors.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebugErrors.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param db * @param nfc * @param ota @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param wifi */ @Serializable -data class GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebugErrors( + +data class GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaDebugErrors ( + @SerialName(value = "db") @Required val db: kotlin.Boolean, + @SerialName(value = "nfc") @Required val nfc: kotlin.Boolean, + @SerialName(value = "ota") @Required val ota: kotlin.Boolean, + @SerialName(value = "sd") @Required val sd: kotlin.Boolean, - @SerialName(value = "wifi") @Required val wifi: kotlin.Boolean, -) + + @SerialName(value = "wifi") @Required val wifi: kotlin.Boolean + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaStorage.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaStorage.kt index c4b8067..07fe944 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaStorage.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaStorage.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param total * @param used */ @Serializable -data class GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaStorage( + +data class GetDoorlockDevicesByIdStats200ResponseStatsInnerDeviceMetaStorage ( + @SerialName(value = "total") @Required val total: kotlin.Double?, - @SerialName(value = "used") @Required val used: kotlin.Double?, -) + + @SerialName(value = "used") @Required val used: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200Response.kt index 6de4d2b..78c90c9 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockLogs200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetDoorlockLogs200Response( + +data class GetDoorlockLogs200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200ResponseItemsInner.kt index bb4c661..3bf6b8d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200ResponseItemsInner.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockLogs200ResponseItemsInnerCard import hu.petrik.filcapp.api.model.PostDoorlockCards201ResponseOwner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buttonPressed * @param cardData * @param cardId @@ -37,16 +44,33 @@ import kotlinx.serialization.encoding.* * @param owner */ @Serializable -data class GetDoorlockLogs200ResponseItemsInner( + +data class GetDoorlockLogs200ResponseItemsInner ( + @SerialName(value = "buttonPressed") @Required val buttonPressed: kotlin.Boolean, + @SerialName(value = "cardData") @Required val cardData: kotlin.String?, + @SerialName(value = "cardId") @Required val cardId: kotlin.String?, + @SerialName(value = "deviceId") @Required val deviceId: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.Int?, + @SerialName(value = "result") @Required val result: kotlin.Boolean, + @SerialName(value = "timestamp") @Required val timestamp: kotlin.String?, + @SerialName(value = "userId") @Required val userId: kotlin.String?, + @SerialName(value = "card") val card: GetDoorlockLogs200ResponseItemsInnerCard? = null, + @SerialName(value = "device") val device: GetDoorlockLogs200ResponseItemsInnerCard? = null, - @SerialName(value = "owner") val owner: PostDoorlockCards201ResponseOwner? = null, -) + + @SerialName(value = "owner") val owner: PostDoorlockCards201ResponseOwner? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200ResponseItemsInnerCard.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200ResponseItemsInnerCard.kt index 199d8de..dc8d79f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200ResponseItemsInnerCard.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockLogs200ResponseItemsInnerCard.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param name */ @Serializable -data class GetDoorlockLogs200ResponseItemsInnerCard( + +data class GetDoorlockLogs200ResponseItemsInnerCard ( + @SerialName(value = "id") @Required val id: kotlin.String, - @SerialName(value = "name") @Required val name: kotlin.String, -) + + @SerialName(value = "name") @Required val name: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200Response.kt index bf28656..b1316a3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200Response.kt @@ -8,24 +8,38 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockStatsOverview200ResponseStats + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param stats */ @Serializable -data class GetDoorlockStatsOverview200Response( - @SerialName(value = "stats") @Required val stats: GetDoorlockStatsOverview200ResponseStats, -) + +data class GetDoorlockStatsOverview200Response ( + + @SerialName(value = "stats") @Required val stats: GetDoorlockStatsOverview200ResponseStats + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStats.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStats.kt index 8675325..210b25b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStats.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStats.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockStatsOverview200ResponseStatsDoorOpenSeriesInner import hu.petrik.filcapp.api.model.GetDoorlockStatsOverview200ResponseStatsTopUsersInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param doorOpenSeries * @param topUsers * @param totalCards @@ -31,11 +38,21 @@ import kotlinx.serialization.encoding.* * @param totalSuccessfulOpens */ @Serializable -data class GetDoorlockStatsOverview200ResponseStats( - @SerialName(value = "doorOpenSeries") @Required val doorOpenSeries: - kotlin.collections.List, + +data class GetDoorlockStatsOverview200ResponseStats ( + + @SerialName(value = "doorOpenSeries") @Required val doorOpenSeries: kotlin.collections.List, + @SerialName(value = "topUsers") @Required val topUsers: kotlin.collections.List, + @SerialName(value = "totalCards") @Required val totalCards: kotlin.Int?, + @SerialName(value = "totalDevices") @Required val totalDevices: kotlin.Int?, - @SerialName(value = "totalSuccessfulOpens") @Required val totalSuccessfulOpens: kotlin.Int?, -) + + @SerialName(value = "totalSuccessfulOpens") @Required val totalSuccessfulOpens: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStatsDoorOpenSeriesInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStatsDoorOpenSeriesInner.kt index 51b07c2..cad728a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStatsDoorOpenSeriesInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStatsDoorOpenSeriesInner.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param count * @param date */ @Serializable -data class GetDoorlockStatsOverview200ResponseStatsDoorOpenSeriesInner( + +data class GetDoorlockStatsOverview200ResponseStatsDoorOpenSeriesInner ( + @SerialName(value = "count") @Required val count: kotlin.Int?, - @SerialName(value = "date") @Required val date: kotlin.String?, -) + + @SerialName(value = "date") @Required val date: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStatsTopUsersInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStatsTopUsersInner.kt index d383290..435fd17 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStatsTopUsersInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetDoorlockStatsOverview200ResponseStatsTopUsersInner.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param count * @param id * @param name * @param nickname */ @Serializable -data class GetDoorlockStatsOverview200ResponseStatsTopUsersInner( + +data class GetDoorlockStatsOverview200ResponseStatsTopUsersInner ( + @SerialName(value = "count") @Required val count: kotlin.Int?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, - @SerialName(value = "nickname") @Required val nickname: kotlin.String?, -) + + @SerialName(value = "nickname") @Required val nickname: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetHealth200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetHealth200Response.kt index 210b607..28023e0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetHealth200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetHealth200Response.kt @@ -8,26 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.JsonElement /** - * - * * @param database * @param status */ @Serializable -data class GetHealth200Response( - @SerialName(value = "database") @Required val database: JsonElement?, - @SerialName(value = "status") @Required val status: JsonElement?, -) + +data class GetHealth200Response ( + + @SerialName(value = "database") @Required val database: kotlinx.serialization.json.JsonElement?, + + @SerialName(value = "status") @Required val status: kotlinx.serialization.json.JsonElement? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKiosk200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKiosk200Response.kt index 6ddcce2..116bb83 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKiosk200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKiosk200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetKiosk200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetKiosk200Response( + +data class GetKiosk200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKiosk200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKiosk200ResponseItemsInner.kt index 1eaf202..40d1aac 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKiosk200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKiosk200ResponseItemsInner.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param appVersion * @param config * @param createdAt @@ -36,16 +43,33 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetKiosk200ResponseItemsInner( + +data class GetKiosk200ResponseItemsInner ( + @SerialName(value = "appVersion") @Required val appVersion: kotlin.String?, + @SerialName(value = "config") @Required val config: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "kind") @Required val kind: kotlin.String?, + @SerialName(value = "lastSeenAt") @Required val lastSeenAt: kotlin.String?, + @SerialName(value = "lastSeenIp") @Required val lastSeenIp: kotlin.String?, + @SerialName(value = "machineId") @Required val machineId: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskNews200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskNews200Response.kt index 9c84a1c..ee62d6b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskNews200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskNews200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetKioskNews200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetKioskNews200Response( + +data class GetKioskNews200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskNews200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskNews200ResponseItemsInner.kt index 6ccbd0e..ae37a11 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskNews200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskNews200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param body * @param highlighted * @param id @@ -32,13 +39,27 @@ import kotlinx.serialization.encoding.* * @param validUntil */ @Serializable -data class GetKioskNews200ResponseItemsInner( + +data class GetKioskNews200ResponseItemsInner ( + @SerialName(value = "body") @Required val body: kotlin.String?, + @SerialName(value = "highlighted") @Required val highlighted: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "imageVersion") @Required val imageVersion: kotlin.String?, - @SerialName(value = "kioskIds") @Required val kioskIds: kotlin.collections.List, + + @SerialName(value = "kioskIds") @Required val kioskIds: kotlin.collections.List, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, - @SerialName(value = "validUntil") @Required val validUntil: kotlin.String?, -) + + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskPetrikNews200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskPetrikNews200Response.kt index 44f323d..9a551ee 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskPetrikNews200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskPetrikNews200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetKioskPetrikNews200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetKioskPetrikNews200Response( + +data class GetKioskPetrikNews200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskPetrikNews200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskPetrikNews200ResponseItemsInner.kt index bcce40d..22b183d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskPetrikNews200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskPetrikNews200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param body * @param imageUrl * @param publishedAt @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param url */ @Serializable -data class GetKioskPetrikNews200ResponseItemsInner( + +data class GetKioskPetrikNews200ResponseItemsInner ( + @SerialName(value = "body") @Required val body: kotlin.String?, + @SerialName(value = "imageUrl") @Required val imageUrl: kotlin.String?, + @SerialName(value = "publishedAt") @Required val publishedAt: kotlin.String?, + @SerialName(value = "title") @Required val title: kotlin.String?, - @SerialName(value = "url") @Required val url: kotlin.String?, -) + + @SerialName(value = "url") @Required val url: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskWeather200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskWeather200Response.kt index 97667bb..ba1ee0e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskWeather200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetKioskWeather200Response.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param icon * @param precipMm * @param tempC * @param windKph */ @Serializable -data class GetKioskWeather200Response( + +data class GetKioskWeather200Response ( + @SerialName(value = "icon") @Required val icon: kotlin.String?, + @SerialName(value = "precipMm") @Required val precipMm: kotlin.Double?, + @SerialName(value = "tempC") @Required val tempC: kotlin.Double?, - @SerialName(value = "windKph") @Required val windKph: kotlin.Double?, -) + + @SerialName(value = "windKph") @Required val windKph: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorBuildings200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorBuildings200Response.kt index edc54cf..9186e6c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorBuildings200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorBuildings200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNavigatorBuildings200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNavigatorBuildings200Response( + +data class GetNavigatorBuildings200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorBuildings200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorBuildings200ResponseItemsInner.kt index 05099b7..f292051 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorBuildings200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorBuildings200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param description * @param id * @param mapped @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class GetNavigatorBuildings200ResponseItemsInner( + +data class GetNavigatorBuildings200ResponseItemsInner ( + @SerialName(value = "description") @Required val description: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "mapped") @Required val mapped: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double?, - @SerialName(value = "y") @Required val y: kotlin.Double?, -) + + @SerialName(value = "y") @Required val y: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassroomTypes200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassroomTypes200Response.kt index db26730..d36c7ea 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassroomTypes200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassroomTypes200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNavigatorClassroomTypes200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNavigatorClassroomTypes200Response( + +data class GetNavigatorClassroomTypes200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassroomTypes200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassroomTypes200ResponseItemsInner.kt index e660996..f4de6ff 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassroomTypes200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassroomTypes200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param colorhex * @param createdAt * @param id @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetNavigatorClassroomTypes200ResponseItemsInner( + +data class GetNavigatorClassroomTypes200ResponseItemsInner ( + @SerialName(value = "colorhex") @Required val colorhex: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassrooms200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassrooms200Response.kt index 73a1c7d..29692ac 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassrooms200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassrooms200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNavigatorClassrooms200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNavigatorClassrooms200Response( + +data class GetNavigatorClassrooms200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassrooms200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassrooms200ResponseItemsInner.kt index 89b9c5a..61f3cb4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassrooms200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorClassrooms200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param capacity * @param description @@ -39,20 +46,41 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class GetNavigatorClassrooms200ResponseItemsInner( + +data class GetNavigatorClassrooms200ResponseItemsInner ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String?, + @SerialName(value = "capacity") @Required val capacity: kotlin.Int?, + @SerialName(value = "description") @Required val description: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "mapped") @Required val mapped: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "rotation") @Required val rotation: kotlin.Double?, + @SerialName(value = "short") @Required val short: kotlin.String?, + @SerialName(value = "size_x") @Required val sizeX: kotlin.Double?, + @SerialName(value = "size_y") @Required val sizeY: kotlin.Double?, + @SerialName(value = "size_z") @Required val sizeZ: kotlin.Double?, + @SerialName(value = "storey") @Required val storey: kotlin.Int?, + @SerialName(value = "type_id") @Required val typeId: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double?, - @SerialName(value = "y") @Required val y: kotlin.Double?, -) + + @SerialName(value = "y") @Required val y: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorCorridors200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorCorridors200Response.kt index deb3592..54d552c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorCorridors200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorCorridors200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNavigatorCorridors200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNavigatorCorridors200Response( + +data class GetNavigatorCorridors200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorCorridors200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorCorridors200ResponseItemsInner.kt index 20e0317..a8f0050 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorCorridors200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorCorridors200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param barrierFree * @param buildingId * @param createdAt @@ -37,18 +44,37 @@ import kotlinx.serialization.encoding.* * @param y2 */ @Serializable -data class GetNavigatorCorridors200ResponseItemsInner( + +data class GetNavigatorCorridors200ResponseItemsInner ( + @SerialName(value = "barrier_free") @Required val barrierFree: kotlin.Boolean, + @SerialName(value = "building_id") @Required val buildingId: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "is_outdoor") @Required val isOutdoor: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "storey") @Required val storey: kotlin.Int?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "width") @Required val width: kotlin.Double?, + @SerialName(value = "x1") @Required val x1: kotlin.Double?, + @SerialName(value = "x2") @Required val x2: kotlin.Double?, + @SerialName(value = "y1") @Required val y1: kotlin.Double?, - @SerialName(value = "y2") @Required val y2: kotlin.Double?, -) + + @SerialName(value = "y2") @Required val y2: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200Response.kt index d9dacf8..8e3b8a4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200Response.kt @@ -8,9 +8,17 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model @@ -21,13 +29,12 @@ import hu.petrik.filcapp.api.model.PostNavigatorBuildings201Response import hu.petrik.filcapp.api.model.PostNavigatorClassroomTypes201Response import hu.petrik.filcapp.api.model.PostNavigatorCorridors201Response import hu.petrik.filcapp.api.model.PutNavigatorClassroomsById200Response + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildings * @param classroomTypes * @param classrooms @@ -36,11 +43,23 @@ import kotlinx.serialization.encoding.* * @param stairs */ @Serializable -data class GetNavigatorGraph200Response( + +data class GetNavigatorGraph200Response ( + @SerialName(value = "buildings") @Required val buildings: kotlin.collections.List, + @SerialName(value = "classroom_types") @Required val classroomTypes: kotlin.collections.List, + @SerialName(value = "classrooms") @Required val classrooms: kotlin.collections.List, + @SerialName(value = "corridors") @Required val corridors: kotlin.collections.List, + @SerialName(value = "lifts") @Required val lifts: kotlin.collections.List, - @SerialName(value = "stairs") @Required val stairs: kotlin.collections.List, -) + + @SerialName(value = "stairs") @Required val stairs: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200ResponseLiftsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200ResponseLiftsInner.kt index 850643f..837fb68 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200ResponseLiftsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200ResponseLiftsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param createdAt * @param id @@ -33,14 +40,29 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class GetNavigatorGraph200ResponseLiftsInner( + +data class GetNavigatorGraph200ResponseLiftsInner ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "max_storey") @Required val maxStorey: kotlin.Int?, + @SerialName(value = "min_storey") @Required val minStorey: kotlin.Int?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double?, - @SerialName(value = "y") @Required val y: kotlin.Double?, -) + + @SerialName(value = "y") @Required val y: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200ResponseStairsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200ResponseStairsInner.kt index cd77fe2..b618fbb 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200ResponseStairsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorGraph200ResponseStairsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param createdAt * @param id @@ -34,15 +41,31 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class GetNavigatorGraph200ResponseStairsInner( + +data class GetNavigatorGraph200ResponseStairsInner ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "max_storey") @Required val maxStorey: kotlin.Int?, + @SerialName(value = "min_storey") @Required val minStorey: kotlin.Int?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "rotation") @Required val rotation: kotlin.Double?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double?, - @SerialName(value = "y") @Required val y: kotlin.Double?, -) + + @SerialName(value = "y") @Required val y: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorLifts200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorLifts200Response.kt index 211487b..9eacf60 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorLifts200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorLifts200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNavigatorLifts200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNavigatorLifts200Response( + +data class GetNavigatorLifts200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorLifts200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorLifts200ResponseItemsInner.kt index 32991b9..ec50259 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorLifts200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorLifts200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param createdAt * @param id @@ -33,14 +40,29 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class GetNavigatorLifts200ResponseItemsInner( + +data class GetNavigatorLifts200ResponseItemsInner ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "max_storey") @Required val maxStorey: kotlin.Int, + @SerialName(value = "min_storey") @Required val minStorey: kotlin.Int, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "x") @Required val x: kotlin.Double, - @SerialName(value = "y") @Required val y: kotlin.Double, -) + + @SerialName(value = "y") @Required val y: kotlin.Double + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorStairs200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorStairs200Response.kt index 5852270..f5a44c6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorStairs200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorStairs200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNavigatorStairs200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNavigatorStairs200Response( + +data class GetNavigatorStairs200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorStairs200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorStairs200ResponseItemsInner.kt index f0bb98f..2e834bd 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorStairs200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorStairs200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param createdAt * @param id @@ -34,15 +41,31 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class GetNavigatorStairs200ResponseItemsInner( + +data class GetNavigatorStairs200ResponseItemsInner ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "max_storey") @Required val maxStorey: kotlin.Int, + @SerialName(value = "min_storey") @Required val minStorey: kotlin.Int, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "rotation") @Required val rotation: kotlin.Double, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "x") @Required val x: kotlin.Double, - @SerialName(value = "y") @Required val y: kotlin.Double, -) + + @SerialName(value = "y") @Required val y: kotlin.Double + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslations200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslations200Response.kt index 40c09d6..6d6a912 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslations200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslations200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNavigatorTranslations200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNavigatorTranslations200Response( + +data class GetNavigatorTranslations200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslations200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslations200ResponseItemsInner.kt index b50fa94..51690b4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslations200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslations200ResponseItemsInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param langKey * @param text * @param textKey */ @Serializable -data class GetNavigatorTranslations200ResponseItemsInner( + +data class GetNavigatorTranslations200ResponseItemsInner ( + @SerialName(value = "lang_key") @Required val langKey: kotlin.String?, + @SerialName(value = "text") @Required val text: kotlin.String?, - @SerialName(value = "text_key") @Required val textKey: kotlin.String?, -) + + @SerialName(value = "text_key") @Required val textKey: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslationsAvailable200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslationsAvailable200Response.kt index 5e14d73..5120a6a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslationsAvailable200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNavigatorTranslationsAvailable200Response.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNavigatorTranslationsAvailable200Response( + +data class GetNavigatorTranslationsAvailable200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200Response.kt index e1be6df..f607fb1 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsAnnouncements200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNewsAnnouncements200Response( + +data class GetNewsAnnouncements200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200ResponseItemsInner.kt index 8fd1d4b..a1e5e0d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200ResponseItemsInner.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsAnnouncements200ResponseItemsInnerAuthor import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -43,22 +50,45 @@ import kotlinx.serialization.encoding.* * @param author */ @Serializable -data class GetNewsAnnouncements200ResponseItemsInner( + +data class GetNewsAnnouncements200ResponseItemsInner ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String?, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "highlighted") @Required val highlighted: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "imageByteSize") @Required val imageByteSize: kotlin.Double?, + @SerialName(value = "imageContentType") @Required val imageContentType: kotlin.String?, + @SerialName(value = "imageKey") @Required val imageKey: kotlin.String?, + @SerialName(value = "imageUpdatedAt") @Required val imageUpdatedAt: kotlin.String?, + @SerialName(value = "kioskOnly") @Required val kioskOnly: kotlin.Boolean, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String?, + @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List, + @SerialName(value = "kioskIds") @Required val kioskIds: kotlin.collections.List, - @SerialName(value = "author") val author: GetNewsAnnouncements200ResponseItemsInnerAuthor? = null, -) + + @SerialName(value = "author") val author: GetNewsAnnouncements200ResponseItemsInnerAuthor? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200ResponseItemsInnerAuthor.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200ResponseItemsInnerAuthor.kt index df63314..dd36b43 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200ResponseItemsInnerAuthor.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncements200ResponseItemsInnerAuthor.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param image * @param name */ @Serializable -data class GetNewsAnnouncements200ResponseItemsInnerAuthor( + +data class GetNewsAnnouncements200ResponseItemsInnerAuthor ( + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "image") @Required val image: kotlin.String?, - @SerialName(value = "name") @Required val name: kotlin.String?, -) + + @SerialName(value = "name") @Required val name: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncementsById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncementsById200Response.kt index 1193e3d..1c4f8de 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncementsById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncementsById200Response.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsAnnouncementsById200ResponseAuthor import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -43,22 +50,45 @@ import kotlinx.serialization.encoding.* * @param author */ @Serializable -data class GetNewsAnnouncementsById200Response( + +data class GetNewsAnnouncementsById200Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "highlighted") @Required val highlighted: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "imageByteSize") @Required val imageByteSize: kotlin.Double?, + @SerialName(value = "imageContentType") @Required val imageContentType: kotlin.String?, + @SerialName(value = "imageKey") @Required val imageKey: kotlin.String?, + @SerialName(value = "imageUpdatedAt") @Required val imageUpdatedAt: kotlin.String?, + @SerialName(value = "kioskOnly") @Required val kioskOnly: kotlin.Boolean, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String, + @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List, + @SerialName(value = "kioskIds") @Required val kioskIds: kotlin.collections.List, - @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null, -) + + @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncementsById200ResponseAuthor.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncementsById200ResponseAuthor.kt index 794ce32..a4423d9 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncementsById200ResponseAuthor.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsAnnouncementsById200ResponseAuthor.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param image * @param name */ @Serializable -data class GetNewsAnnouncementsById200ResponseAuthor( + +data class GetNewsAnnouncementsById200ResponseAuthor ( + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "image") @Required val image: kotlin.String?, - @SerialName(value = "name") @Required val name: kotlin.String, -) + + @SerialName(value = "name") @Required val name: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogs200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogs200Response.kt index 7619d75..595dfd8 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogs200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogs200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsBlogs200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNewsBlogs200Response( + +data class GetNewsBlogs200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogs200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogs200ResponseItemsInner.kt index 1be231f..b6ac36d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogs200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogs200ResponseItemsInner.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsAnnouncementsById200ResponseAuthor import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -36,15 +43,31 @@ import kotlinx.serialization.encoding.* * @param author */ @Serializable -data class GetNewsBlogs200ResponseItemsInner( + +data class GetNewsBlogs200ResponseItemsInner ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String?, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "publishedAt") @Required val publishedAt: kotlin.String?, + @SerialName(value = "slug") @Required val slug: kotlin.String?, + @SerialName(value = "status") @Required val status: kotlin.String?, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, - @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null, -) + + @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogsBySlug200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogsBySlug200Response.kt index 140500c..a1c656f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogsBySlug200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsBlogsBySlug200Response.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsAnnouncementsById200ResponseAuthor import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -36,15 +43,31 @@ import kotlinx.serialization.encoding.* * @param author */ @Serializable -data class GetNewsBlogsBySlug200Response( + +data class GetNewsBlogsBySlug200Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "publishedAt") @Required val publishedAt: kotlin.String?, + @SerialName(value = "slug") @Required val slug: kotlin.String, + @SerialName(value = "status") @Required val status: kotlin.String, + @SerialName(value = "title") @Required val title: kotlin.String, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, - @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null, -) + + @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessages200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessages200Response.kt index 8406519..a60b2c0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessages200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessages200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsSystemMessages200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNewsSystemMessages200Response( + +data class GetNewsSystemMessages200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessages200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessages200ResponseItemsInner.kt index e740a21..a898594 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessages200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessages200ResponseItemsInner.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsAnnouncementsById200ResponseAuthor import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -36,15 +43,31 @@ import kotlinx.serialization.encoding.* * @param author */ @Serializable -data class GetNewsSystemMessages200ResponseItemsInner( + +data class GetNewsSystemMessages200ResponseItemsInner ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String?, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String?, + @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List, - @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null, -) + + @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessagesById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessagesById200Response.kt index 1b4eea8..7851792 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessagesById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNewsSystemMessagesById200Response.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNewsAnnouncementsById200ResponseAuthor import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -36,15 +43,31 @@ import kotlinx.serialization.encoding.* * @param author */ @Serializable -data class GetNewsSystemMessagesById200Response( + +data class GetNewsSystemMessagesById200Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "title") @Required val title: kotlin.String, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String, + @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List, - @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null, -) + + @SerialName(value = "author") val author: GetNewsAnnouncementsById200ResponseAuthor? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotifications200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotifications200Response.kt index 0b5c69e..7c1f376 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotifications200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotifications200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNotifications200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetNotifications200Response( + +data class GetNotifications200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotifications200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotifications200ResponseItemsInner.kt index 98a2614..cf39780 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotifications200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotifications200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param content * @param createdAt * @param id @@ -32,13 +39,27 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class GetNotifications200ResponseItemsInner( + +data class GetNotifications200ResponseItemsInner ( + @SerialName(value = "content") @Required val content: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, - @SerialName(value = "metadata") @Required val metadata: kotlin.collections.Map?, + + @SerialName(value = "metadata") @Required val metadata: kotlin.collections.Map?, + @SerialName(value = "read") @Required val read: kotlin.Boolean, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "type") @Required val type: kotlin.String?, - @SerialName(value = "userId") @Required val userId: kotlin.String?, -) + + @SerialName(value = "userId") @Required val userId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsSettings200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsSettings200Response.kt index 9b19573..d308fa6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsSettings200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsSettings200Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetNotificationsSettings200ResponseNotificationPreferences + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param id * @param language @@ -35,16 +42,31 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class GetNotificationsSettings200Response( + +data class GetNotificationsSettings200Response ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "language") @Required val language: kotlin.String?, - @SerialName(value = "notificationPreferences") @Required val notificationPreferences: - GetNotificationsSettings200ResponseNotificationPreferences, + + @SerialName(value = "notificationPreferences") @Required val notificationPreferences: GetNotificationsSettings200ResponseNotificationPreferences, + @SerialName(value = "theme") @Required val theme: kotlin.String?, - @SerialName(value = "timetableClassColors") @Required val timetableClassColors: kotlin.collections.Map, + + @SerialName(value = "timetableClassColors") @Required val timetableClassColors: kotlin.collections.Map, + @SerialName(value = "timetableGroupDisplay") @Required val timetableGroupDisplay: kotlin.String?, + @SerialName(value = "timetableView") @Required val timetableView: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, - @SerialName(value = "userId") @Required val userId: kotlin.String?, -) + + @SerialName(value = "userId") @Required val userId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsSettings200ResponseNotificationPreferences.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsSettings200ResponseNotificationPreferences.kt index 5a3e90f..9e4a17e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsSettings200ResponseNotificationPreferences.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsSettings200ResponseNotificationPreferences.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param announcement * @param blogPost * @param channelsEnabled @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param systemMessage */ @Serializable -data class GetNotificationsSettings200ResponseNotificationPreferences( + +data class GetNotificationsSettings200ResponseNotificationPreferences ( + @SerialName(value = "announcement") @Required val announcement: kotlin.Boolean, + @SerialName(value = "blogPost") @Required val blogPost: kotlin.Boolean, + @SerialName(value = "channelsEnabled") @Required val channelsEnabled: kotlin.Boolean, + @SerialName(value = "doorlockCardUsed") @Required val doorlockCardUsed: kotlin.Boolean, + @SerialName(value = "movedLesson") @Required val movedLesson: kotlin.Boolean, + @SerialName(value = "substitution") @Required val substitution: kotlin.Boolean, - @SerialName(value = "systemMessage") @Required val systemMessage: kotlin.Boolean, -) + + @SerialName(value = "systemMessage") @Required val systemMessage: kotlin.Boolean + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsUnreadCount200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsUnreadCount200Response.kt index 5451859..077873f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsUnreadCount200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetNotificationsUnreadCount200Response.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param count */ @Serializable -data class GetNotificationsUnreadCount200Response( - @SerialName(value = "count") @Required val count: kotlin.Double?, -) + +data class GetNotificationsUnreadCount200Response ( + + @SerialName(value = "count") @Required val count: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetPing200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetPing200Response.kt index bbbba24..f72d050 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetPing200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetPing200Response.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param message */ @Serializable -data class GetPing200Response( - @SerialName(value = "message") @Required val message: kotlin.String?, -) + +data class GetPing200Response ( + + @SerialName(value = "message") @Required val message: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetPingUptime200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetPingUptime200Response.kt index 5e9e0b3..92f1662 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetPingUptime200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetPingUptime200Response.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param pretty * @param uptimeMs */ @Serializable -data class GetPingUptime200Response( + +data class GetPingUptime200Response ( + @SerialName(value = "pretty") @Required val pretty: kotlin.String?, - @SerialName(value = "uptime_ms") @Required val uptimeMs: kotlin.Double?, -) + + @SerialName(value = "uptime_ms") @Required val uptimeMs: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetRoles200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetRoles200Response.kt index b2471b9..76455f3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetRoles200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetRoles200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetRoles200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetRoles200Response( + +data class GetRoles200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetRoles200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetRoles200ResponseItemsInner.kt index ccb8303..90940d4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetRoles200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetRoles200ResponseItemsInner.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param can * @param name */ @Serializable -data class GetRoles200ResponseItemsInner( + +data class GetRoles200ResponseItemsInner ( + @SerialName(value = "can") @Required val can: kotlin.collections.List, - @SerialName(value = "name") @Required val name: kotlin.String?, -) + + @SerialName(value = "name") @Required val name: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableGroupsGetForCohortByCohortId200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableGroupsGetForCohortByCohortId200Response.kt index d13db9e..abcae6a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableGroupsGetForCohortByCohortId200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableGroupsGetForCohortByCohortId200Response.kt @@ -8,27 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableGroupsGetForCohortByCohortId200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableGroupsGetForCohortByCohortId200Response( - @SerialName(value = "items") @Required val items: - kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + +data class GetTimetableGroupsGetForCohortByCohortId200Response ( + + @SerialName(value = "items") @Required val items: kotlin.collections.List, + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableGroupsGetForCohortByCohortId200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableGroupsGetForCohortByCohortId200ResponseItemsInner.kt index a7e601d..36d922e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableGroupsGetForCohortByCohortId200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableGroupsGetForCohortByCohortId200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param divisionLabel * @param divisionTag * @param entireClass @@ -32,13 +39,27 @@ import kotlinx.serialization.encoding.* * @param teacherId */ @Serializable -data class GetTimetableGroupsGetForCohortByCohortId200ResponseItemsInner( + +data class GetTimetableGroupsGetForCohortByCohortId200ResponseItemsInner ( + @SerialName(value = "divisionLabel") @Required val divisionLabel: kotlin.String?, + @SerialName(value = "divisionTag") @Required val divisionTag: kotlin.String?, + @SerialName(value = "entireClass") @Required val entireClass: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "selected") @Required val selected: kotlin.Boolean, + @SerialName(value = "studentCount") @Required val studentCount: kotlin.Double?, - @SerialName(value = "teacherId") @Required val teacherId: kotlin.String?, -) + + @SerialName(value = "teacherId") @Required val teacherId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200Response.kt index 4e9dbf9..caaaa2f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200Response.kt @@ -8,27 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200Response( - @SerialName(value = "items") @Required val items: - kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + +data class GetTimetableLessonsGetForCohortByCohortId200Response ( + + @SerialName(value = "items") @Required val items: kotlin.collections.List, + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInner.kt index e6725d0..05906ea 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInner.kt @@ -8,9 +8,17 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model @@ -22,13 +30,12 @@ import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForCohortByCohortId200R import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param classrooms * @param cohorts * @param groups @@ -44,23 +51,37 @@ import kotlinx.serialization.encoding.* * @param day */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInner( - @SerialName(value = "classrooms") @Required val classrooms: - kotlin.collections.List, - @SerialName(value = "cohorts") @Required val cohorts: - kotlin.collections.List, - @SerialName(value = "groups") @Required val groups: - kotlin.collections.List, + +data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInner ( + + @SerialName(value = "classrooms") @Required val classrooms: kotlin.collections.List, + + @SerialName(value = "cohorts") @Required val cohorts: kotlin.collections.List, + + @SerialName(value = "groups") @Required val groups: kotlin.collections.List, + @SerialName(value = "groupsIds") @Required val groupsIds: kotlin.collections.List, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "period") @Required val period: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod?, + @SerialName(value = "periodsPerWeek") @Required val periodsPerWeek: kotlin.Double?, + @SerialName(value = "subject") @Required val subject: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject?, - @SerialName(value = "teachers") @Required val teachers: - kotlin.collections.List, + + @SerialName(value = "teachers") @Required val teachers: kotlin.collections.List, + @SerialName(value = "termDefinitionId") @Required val termDefinitionId: kotlin.String?, - @SerialName(value = "weekDefinition") @Required val weekDefinition: - GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition?, + + @SerialName(value = "weekDefinition") @Required val weekDefinition: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition?, + @SerialName(value = "weeksDefinitionId") @Required val weeksDefinitionId: kotlin.String?, - @SerialName(value = "day") val day: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerDay? = null, -) + + @SerialName(value = "day") val day: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerDay? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerClassroomsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerClassroomsInner.kt index 953c504..597a3fc 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerClassroomsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerClassroomsInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param name * @param short */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerClassroomsInner( + +data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerClassroomsInner ( + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, - @SerialName(value = "short") @Required val short: kotlin.String?, -) + + @SerialName(value = "short") @Required val short: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerCohortsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerCohortsInner.kt index 9e185b7..78be352 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerCohortsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerCohortsInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param name * @param short */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerCohortsInner( + +data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerCohortsInner ( + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "short") @Required val short: kotlin.String, -) + + @SerialName(value = "short") @Required val short: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerDay.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerDay.kt index 9d2bb05..f6423ca 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerDay.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerDay.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param days * @param id @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerDay( + +data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerDay ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "days") @Required val days: kotlin.collections.List?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "short") @Required val short: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerGroupsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerGroupsInner.kt index 1ab53c9..c55bb82 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerGroupsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerGroupsInner.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param divisionTag * @param entireClass * @param id * @param name */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerGroupsInner( + +data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerGroupsInner ( + @SerialName(value = "divisionTag") @Required val divisionTag: kotlin.String?, + @SerialName(value = "entireClass") @Required val entireClass: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, - @SerialName(value = "name") @Required val name: kotlin.String?, -) + + @SerialName(value = "name") @Required val name: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod.kt index aa2c18c..b207211 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param endTime * @param id * @param period * @param startTime */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod( + +data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod ( + @SerialName(value = "endTime") @Required val endTime: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "period") @Required val period: kotlin.Double, - @SerialName(value = "startTime") @Required val startTime: kotlin.String, -) + + @SerialName(value = "startTime") @Required val startTime: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject.kt index f58e1a4..dfa0e02 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param name * @param short */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject( + +data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject ( + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "short") @Required val short: kotlin.String, -) + + @SerialName(value = "short") @Required val short: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition.kt index fefd55b..0743ffb 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param name * @param short * @param weeks */ @Serializable -data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition( + +data class GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerWeekDefinition ( + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "short") @Required val short: kotlin.String?, - @SerialName(value = "weeks") @Required val weeks: kotlin.collections.List, -) + + @SerialName(value = "weeks") @Required val weeks: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200Response.kt index c4f5716..3dcf4bf 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200Response.kt @@ -8,9 +8,17 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model @@ -21,13 +29,12 @@ import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForCohortByCohortId200R import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForIdByLessonId200ResponseDay import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForIdByLessonId200ResponseGroupsInner import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param classrooms * @param cohorts * @param groups @@ -44,23 +51,39 @@ import kotlinx.serialization.encoding.* * @param day */ @Serializable -data class GetTimetableLessonsGetForIdByLessonId200Response( - @SerialName(value = "classrooms") @Required val classrooms: - kotlin.collections.List, - @SerialName(value = "cohorts") @Required val cohorts: - kotlin.collections.List, - @SerialName(value = "groups") @Required val groups: - kotlin.collections.List, + +data class GetTimetableLessonsGetForIdByLessonId200Response ( + + @SerialName(value = "classrooms") @Required val classrooms: kotlin.collections.List, + + @SerialName(value = "cohorts") @Required val cohorts: kotlin.collections.List, + + @SerialName(value = "groups") @Required val groups: kotlin.collections.List, + @SerialName(value = "groupsIds") @Required val groupsIds: kotlin.collections.List, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "period") @Required val period: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod?, + @SerialName(value = "periodsPerWeek") @Required val periodsPerWeek: kotlin.Double?, + @SerialName(value = "subject") @Required val subject: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject?, - @SerialName(value = "teachers") @Required val teachers: - kotlin.collections.List, + + @SerialName(value = "teachers") @Required val teachers: kotlin.collections.List, + @SerialName(value = "termDefinitionId") @Required val termDefinitionId: kotlin.String?, + @SerialName(value = "weekDefinition") @Required val weekDefinition: GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition?, + @SerialName(value = "weeksDefinitionId") @Required val weeksDefinitionId: kotlin.String?, + @SerialName(value = "substitutionCohortName") @Required val substitutionCohortName: kotlin.String?, - @SerialName(value = "day") val day: GetTimetableLessonsGetForIdByLessonId200ResponseDay? = null, -) + + @SerialName(value = "day") val day: GetTimetableLessonsGetForIdByLessonId200ResponseDay? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseDay.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseDay.kt index 9640ef6..5ec881b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseDay.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseDay.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param days * @param id @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetTimetableLessonsGetForIdByLessonId200ResponseDay( + +data class GetTimetableLessonsGetForIdByLessonId200ResponseDay ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "days") @Required val days: kotlin.collections.List?, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "short") @Required val short: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseGroupsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseGroupsInner.kt index 0459691..bc80fd2 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseGroupsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseGroupsInner.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param divisionTag * @param entireClass * @param id * @param name */ @Serializable -data class GetTimetableLessonsGetForIdByLessonId200ResponseGroupsInner( + +data class GetTimetableLessonsGetForIdByLessonId200ResponseGroupsInner ( + @SerialName(value = "divisionTag") @Required val divisionTag: kotlin.String?, + @SerialName(value = "entireClass") @Required val entireClass: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String, - @SerialName(value = "name") @Required val name: kotlin.String, -) + + @SerialName(value = "name") @Required val name: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition.kt index f33fae3..603dda4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param name * @param short * @param weeks */ @Serializable -data class GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition( + +data class GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition ( + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "short") @Required val short: kotlin.String, - @SerialName(value = "weeks") @Required val weeks: kotlin.collections.List, -) + + @SerialName(value = "weeks") @Required val weeks: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200Response.kt index 1e062a1..6ddbfda 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableMovedLessons200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableMovedLessons200Response( + +data class GetTimetableMovedLessons200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInner.kt index 923d83a..f548a42 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInner.kt @@ -8,9 +8,17 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model @@ -20,13 +28,12 @@ import hu.petrik.filcapp.api.model.GetTimetableMovedLessons200ResponseItemsInner import hu.petrik.filcapp.api.model.GetTimetableMovedLessons200ResponseItemsInnerPeriod import hu.petrik.filcapp.api.model.PostNavigatorClassrooms201Response import hu.petrik.filcapp.api.model.PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param classroom * @param dayDefinition * @param lessons @@ -34,11 +41,21 @@ import kotlinx.serialization.encoding.* * @param period */ @Serializable -data class GetTimetableMovedLessons200ResponseItemsInner( + +data class GetTimetableMovedLessons200ResponseItemsInner ( + @SerialName(value = "classroom") @Required val classroom: PostNavigatorClassrooms201Response?, + @SerialName(value = "dayDefinition") @Required val dayDefinition: GetTimetableLessonsGetForIdByLessonId200ResponseDay?, - @SerialName(value = "lessons") @Required val lessons: - kotlin.collections.List, + + @SerialName(value = "lessons") @Required val lessons: kotlin.collections.List, + @SerialName(value = "movedLesson") @Required val movedLesson: GetTimetableMovedLessons200ResponseItemsInnerMovedLesson, - @SerialName(value = "period") @Required val period: GetTimetableMovedLessons200ResponseItemsInnerPeriod?, -) + + @SerialName(value = "period") @Required val period: GetTimetableMovedLessons200ResponseItemsInnerPeriod? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInnerMovedLesson.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInnerMovedLesson.kt index 502e090..dee406a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInnerMovedLesson.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInnerMovedLesson.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param comment * @param date * @param id @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param startingPeriod */ @Serializable -data class GetTimetableMovedLessons200ResponseItemsInnerMovedLesson( + +data class GetTimetableMovedLessons200ResponseItemsInnerMovedLesson ( + @SerialName(value = "comment") @Required val comment: kotlin.String?, + @SerialName(value = "date") @Required val date: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "room") @Required val room: kotlin.String?, + @SerialName(value = "startingDay") @Required val startingDay: kotlin.String?, - @SerialName(value = "startingPeriod") @Required val startingPeriod: kotlin.String?, -) + + @SerialName(value = "startingPeriod") @Required val startingPeriod: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInnerPeriod.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInnerPeriod.kt index 5eb8a9a..f63cf5e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInnerPeriod.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableMovedLessons200ResponseItemsInnerPeriod.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param endTime * @param id @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetTimetableMovedLessons200ResponseItemsInnerPeriod( + +data class GetTimetableMovedLessons200ResponseItemsInnerPeriod ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "endTime") @Required val endTime: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "period") @Required val period: kotlin.Int?, + @SerialName(value = "startTime") @Required val startTime: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetablePeriodsGetAll200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetablePeriodsGetAll200Response.kt index 43b1d16..4784055 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetablePeriodsGetAll200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetablePeriodsGetAll200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetablePeriodsGetAll200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetablePeriodsGetAll200Response( + +data class GetTimetablePeriodsGetAll200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetablePeriodsGetAll200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetablePeriodsGetAll200ResponseItemsInner.kt index e6c7004..170019d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetablePeriodsGetAll200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetablePeriodsGetAll200ResponseItemsInner.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param endTime * @param id * @param period * @param startTime */ @Serializable -data class GetTimetablePeriodsGetAll200ResponseItemsInner( + +data class GetTimetablePeriodsGetAll200ResponseItemsInner ( + @SerialName(value = "endTime") @Required val endTime: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "period") @Required val period: kotlin.Double?, - @SerialName(value = "startTime") @Required val startTime: kotlin.String?, -) + + @SerialName(value = "startTime") @Required val startTime: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubjects200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubjects200Response.kt index a9f6396..8e9da48 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubjects200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubjects200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableSubjects200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableSubjects200Response( + +data class GetTimetableSubjects200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubjects200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubjects200ResponseItemsInner.kt index 1145bd4..e97efd1 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubjects200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubjects200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param id * @param name @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetTimetableSubjects200ResponseItemsInner( + +data class GetTimetableSubjects200ResponseItemsInner ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "short") @Required val short: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200Response.kt index 06c79bf..0eca60f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableSubstitutions200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableSubstitutions200Response( + +data class GetTimetableSubstitutions200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInner.kt index 7170bc5..967fcdc 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInner.kt @@ -8,9 +8,17 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model @@ -18,21 +26,28 @@ package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableSubstitutions200ResponseItemsInnerSubstitution import hu.petrik.filcapp.api.model.GetTimetableSubstitutions200ResponseItemsInnerTeacher import hu.petrik.filcapp.api.model.PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param lessons * @param substitution * @param teacher */ @Serializable -data class GetTimetableSubstitutions200ResponseItemsInner( - @SerialName(value = "lessons") @Required val lessons: - kotlin.collections.List, + +data class GetTimetableSubstitutions200ResponseItemsInner ( + + @SerialName(value = "lessons") @Required val lessons: kotlin.collections.List, + @SerialName(value = "substitution") @Required val substitution: GetTimetableSubstitutions200ResponseItemsInnerSubstitution, - @SerialName(value = "teacher") @Required val teacher: GetTimetableSubstitutions200ResponseItemsInnerTeacher?, -) + + @SerialName(value = "teacher") @Required val teacher: GetTimetableSubstitutions200ResponseItemsInnerTeacher? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInnerSubstitution.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInnerSubstitution.kt index 3e61fc6..282c536 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInnerSubstitution.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInnerSubstitution.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param comment * @param date * @param id * @param substituter */ @Serializable -data class GetTimetableSubstitutions200ResponseItemsInnerSubstitution( + +data class GetTimetableSubstitutions200ResponseItemsInnerSubstitution ( + @SerialName(value = "comment") @Required val comment: kotlin.String?, + @SerialName(value = "date") @Required val date: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, - @SerialName(value = "substituter") @Required val substituter: kotlin.String?, -) + + @SerialName(value = "substituter") @Required val substituter: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInnerTeacher.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInnerTeacher.kt index 008e5af..1e1fa92 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInnerTeacher.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutions200ResponseItemsInnerTeacher.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param firstName * @param gender @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class GetTimetableSubstitutions200ResponseItemsInnerTeacher( + +data class GetTimetableSubstitutions200ResponseItemsInnerTeacher ( + @SerialName(value = "email") @Required val email: kotlin.String?, + @SerialName(value = "firstName") @Required val firstName: kotlin.String?, + @SerialName(value = "gender") @Required val gender: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "lastName") @Required val lastName: kotlin.String?, + @SerialName(value = "short") @Required val short: kotlin.String?, - @SerialName(value = "userId") @Required val userId: kotlin.String?, -) + + @SerialName(value = "userId") @Required val userId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsCohortByCohortId200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsCohortByCohortId200Response.kt index 3ad0200..d34c19d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsCohortByCohortId200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsCohortByCohortId200Response.kt @@ -8,27 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableSubstitutionsRelevant200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cohortId * @param substitutions */ @Serializable -data class GetTimetableSubstitutionsCohortByCohortId200Response( + +data class GetTimetableSubstitutionsCohortByCohortId200Response ( + @SerialName(value = "cohortId") @Required val cohortId: kotlin.String?, - @SerialName(value = "substitutions") @Required val substitutions: - kotlin.collections.List, -) + + @SerialName(value = "substitutions") @Required val substitutions: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200Response.kt index bd989d5..6b58c10 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableSubstitutionsRelevant200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableSubstitutionsRelevant200Response( + +data class GetTimetableSubstitutionsRelevant200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200ResponseItemsInner.kt index 42963c8..c6eef9b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200ResponseItemsInner.kt @@ -8,29 +8,45 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher import hu.petrik.filcapp.api.model.PostTimetableSubstitutions200Response + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param lessons * @param substitution * @param teacher */ @Serializable -data class GetTimetableSubstitutionsRelevant200ResponseItemsInner( + +data class GetTimetableSubstitutionsRelevant200ResponseItemsInner ( + @SerialName(value = "lessons") @Required val lessons: kotlin.collections.List, + @SerialName(value = "substitution") @Required val substitution: PostTimetableSubstitutions200Response, - @SerialName(value = "teacher") @Required val teacher: GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher?, -) + + @SerialName(value = "teacher") @Required val teacher: GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher.kt index fa86604..829ab5c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param firstName * @param gender @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher( + +data class GetTimetableSubstitutionsRelevant200ResponseItemsInnerTeacher ( + @SerialName(value = "email") @Required val email: kotlin.String?, + @SerialName(value = "firstName") @Required val firstName: kotlin.String, + @SerialName(value = "gender") @Required val gender: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "lastName") @Required val lastName: kotlin.String, + @SerialName(value = "short") @Required val short: kotlin.String, - @SerialName(value = "userId") @Required val userId: kotlin.String?, -) + + @SerialName(value = "userId") @Required val userId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200Response.kt index c9c2a2b..8e6bdd5 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableTeachers200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableTeachers200Response( + +data class GetTimetableTeachers200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200ResponseItemsInner.kt index 368c8da..3ad5302 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200ResponseItemsInner.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableTeachers200ResponseItemsInnerUser + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param firstName * @param id @@ -32,12 +39,25 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class GetTimetableTeachers200ResponseItemsInner( + +data class GetTimetableTeachers200ResponseItemsInner ( + @SerialName(value = "email") @Required val email: kotlin.String?, + @SerialName(value = "firstName") @Required val firstName: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "lastName") @Required val lastName: kotlin.String?, + @SerialName(value = "short") @Required val short: kotlin.String?, + @SerialName(value = "user") @Required val user: GetTimetableTeachers200ResponseItemsInnerUser?, - @SerialName(value = "userId") @Required val userId: kotlin.String?, -) + + @SerialName(value = "userId") @Required val userId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200ResponseItemsInnerUser.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200ResponseItemsInnerUser.kt index eb1fa37..a5253ea 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200ResponseItemsInnerUser.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachers200ResponseItemsInnerUser.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param id * @param name */ @Serializable -data class GetTimetableTeachers200ResponseItemsInnerUser( + +data class GetTimetableTeachers200ResponseItemsInnerUser ( + @SerialName(value = "email") @Required val email: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, - @SerialName(value = "name") @Required val name: kotlin.String?, -) + + @SerialName(value = "name") @Required val name: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersGetAll200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersGetAll200Response.kt index 0a6eac4..7ab3b49 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersGetAll200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersGetAll200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableTeachersGetAll200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableTeachersGetAll200Response( + +data class GetTimetableTeachersGetAll200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersGetAll200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersGetAll200ResponseItemsInner.kt index d1093aa..f1261c3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersGetAll200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersGetAll200ResponseItemsInner.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param firstName * @param id * @param lastName * @param short */ @Serializable -data class GetTimetableTeachersGetAll200ResponseItemsInner( + +data class GetTimetableTeachersGetAll200ResponseItemsInner ( + @SerialName(value = "firstName") @Required val firstName: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "lastName") @Required val lastName: kotlin.String?, - @SerialName(value = "short") @Required val short: kotlin.String?, -) + + @SerialName(value = "short") @Required val short: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersMe200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersMe200Response.kt index d190fc2..b96808e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersMe200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTeachersMe200Response.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param firstName * @param id * @param lastName * @param short */ @Serializable -data class GetTimetableTeachersMe200Response( + +data class GetTimetableTeachersMe200Response ( + @SerialName(value = "firstName") @Required val firstName: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "lastName") @Required val lastName: kotlin.String, - @SerialName(value = "short") @Required val short: kotlin.String, -) + + @SerialName(value = "short") @Required val short: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetables200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetables200Response.kt index 0decbe6..2f76ec1 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetables200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetables200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableTimetables200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetTimetableTimetables200Response( + +data class GetTimetableTimetables200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetables200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetables200ResponseItemsInner.kt index 5cd964d..5617427 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetables200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetables200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param id * @param name @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param validTo */ @Serializable -data class GetTimetableTimetables200ResponseItemsInner( + +data class GetTimetableTimetables200ResponseItemsInner ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, - @SerialName(value = "validTo") @Required val validTo: kotlin.String?, -) + + @SerialName(value = "validTo") @Required val validTo: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200Response.kt index d4ad0d9..2df9c5c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200Response.kt @@ -8,9 +8,17 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model @@ -18,23 +26,31 @@ package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetDoorlockLogs200ResponseItemsInnerCard import hu.petrik.filcapp.api.model.GetTimetableTimetablesByIdPreviewDelete200ResponseCohortsInner import hu.petrik.filcapp.api.model.GetTimetableTimetablesByIdPreviewDelete200ResponseTotals + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cohorts * @param isCurrentTimetable * @param targetTimetable * @param totals */ @Serializable -data class GetTimetableTimetablesByIdPreviewDelete200Response( - @SerialName(value = "cohorts") @Required val cohorts: - kotlin.collections.List, + +data class GetTimetableTimetablesByIdPreviewDelete200Response ( + + @SerialName(value = "cohorts") @Required val cohorts: kotlin.collections.List, + @SerialName(value = "isCurrentTimetable") @Required val isCurrentTimetable: kotlin.Boolean, + @SerialName(value = "targetTimetable") @Required val targetTimetable: GetDoorlockLogs200ResponseItemsInnerCard?, - @SerialName(value = "totals") @Required val totals: GetTimetableTimetablesByIdPreviewDelete200ResponseTotals, -) + + @SerialName(value = "totals") @Required val totals: GetTimetableTimetablesByIdPreviewDelete200ResponseTotals + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200ResponseCohortsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200ResponseCohortsInner.kt index e9295af..1eac4a3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200ResponseCohortsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200ResponseCohortsInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param becomesOrphaned * @param id * @param name */ @Serializable -data class GetTimetableTimetablesByIdPreviewDelete200ResponseCohortsInner( + +data class GetTimetableTimetablesByIdPreviewDelete200ResponseCohortsInner ( + @SerialName(value = "becomesOrphaned") @Required val becomesOrphaned: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, - @SerialName(value = "name") @Required val name: kotlin.String?, -) + + @SerialName(value = "name") @Required val name: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200ResponseTotals.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200ResponseTotals.kt index cf4ed15..61c866b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200ResponseTotals.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetTimetableTimetablesByIdPreviewDelete200ResponseTotals.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param danglingUsersCleaned * @param lessonsDeleted * @param movedLessonsDeleted @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param survivingCohorts */ @Serializable -data class GetTimetableTimetablesByIdPreviewDelete200ResponseTotals( + +data class GetTimetableTimetablesByIdPreviewDelete200ResponseTotals ( + @SerialName(value = "danglingUsersCleaned") @Required val danglingUsersCleaned: kotlin.Double?, + @SerialName(value = "lessonsDeleted") @Required val lessonsDeleted: kotlin.Double?, + @SerialName(value = "movedLessonsDeleted") @Required val movedLessonsDeleted: kotlin.Double?, + @SerialName(value = "orphanedCohorts") @Required val orphanedCohorts: kotlin.Double?, + @SerialName(value = "substitutionsDeleted") @Required val substitutionsDeleted: kotlin.Double?, - @SerialName(value = "survivingCohorts") @Required val survivingCohorts: kotlin.Double?, -) + + @SerialName(value = "survivingCohorts") @Required val survivingCohorts: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetUsers200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetUsers200Response.kt index 8697051..b0b2d3b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetUsers200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetUsers200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetUsers200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetUsers200Response( + +data class GetUsers200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetUsers200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetUsers200ResponseItemsInner.kt index dcfbe76..28c6d7b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetUsers200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetUsers200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cohortId * @param createdAt * @param email @@ -36,17 +43,35 @@ import kotlinx.serialization.encoding.* * @param permissions */ @Serializable -data class GetUsers200ResponseItemsInner( + +data class GetUsers200ResponseItemsInner ( + @SerialName(value = "cohortId") @Required val cohortId: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "email") @Required val email: kotlin.String?, + @SerialName(value = "emailVerified") @Required val emailVerified: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "image") @Required val image: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "nickname") @Required val nickname: kotlin.String?, + @SerialName(value = "roles") @Required val roles: kotlin.collections.List, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "displayName") @Required val displayName: kotlin.String?, - @SerialName(value = "permissions") @Required val permissions: kotlin.collections.List, -) + + @SerialName(value = "permissions") @Required val permissions: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiAuthLogs200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiAuthLogs200Response.kt index cd0af22..ffe3dcb 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiAuthLogs200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiAuthLogs200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiAuthLogs200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetWifiAuthLogs200Response( + +data class GetWifiAuthLogs200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiAuthLogs200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiAuthLogs200ResponseItemsInner.kt index 3903ebd..9dfd21d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiAuthLogs200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiAuthLogs200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param deviceNickname * @param deviceReportedHostname * @param failureReason @@ -37,18 +44,37 @@ import kotlinx.serialization.encoding.* * @param wifiUserId */ @Serializable -data class GetWifiAuthLogs200ResponseItemsInner( + +data class GetWifiAuthLogs200ResponseItemsInner ( + @SerialName(value = "deviceNickname") @Required val deviceNickname: kotlin.String?, + @SerialName(value = "deviceReportedHostname") @Required val deviceReportedHostname: kotlin.String?, + @SerialName(value = "failureReason") @Required val failureReason: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.Double?, + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String?, + @SerialName(value = "nasComment") @Required val nasComment: kotlin.String?, + @SerialName(value = "nasIpAddress") @Required val nasIpAddress: kotlin.String?, + @SerialName(value = "nasMacAddress") @Required val nasMacAddress: kotlin.String?, + @SerialName(value = "result") @Required val result: kotlin.Boolean, + @SerialName(value = "timestamp") @Required val timestamp: kotlin.String?, + @SerialName(value = "userComment") @Required val userComment: kotlin.String?, + @SerialName(value = "username") @Required val username: kotlin.String?, - @SerialName(value = "wifiUserId") @Required val wifiUserId: kotlin.String?, -) + + @SerialName(value = "wifiUserId") @Required val wifiUserId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiDevices200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiDevices200Response.kt index a456275..29a895f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiDevices200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiDevices200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiDevices200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetWifiDevices200Response( + +data class GetWifiDevices200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiDevices200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiDevices200ResponseItemsInner.kt index e128305..b8f39eb 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiDevices200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiDevices200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param adminNotes * @param banned * @param createdAt @@ -34,15 +41,31 @@ import kotlinx.serialization.encoding.* * @param wifiUserId */ @Serializable -data class GetWifiDevices200ResponseItemsInner( + +data class GetWifiDevices200ResponseItemsInner ( + @SerialName(value = "adminNotes") @Required val adminNotes: kotlin.String?, + @SerialName(value = "banned") @Required val banned: kotlin.Boolean, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "lastActiveAt") @Required val lastActiveAt: kotlin.String?, + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String, + @SerialName(value = "nickname") @Required val nickname: kotlin.String?, + @SerialName(value = "reportedHostname") @Required val reportedHostname: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, - @SerialName(value = "wifiUserId") @Required val wifiUserId: kotlin.String?, -) + + @SerialName(value = "wifiUserId") @Required val wifiUserId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiNas200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiNas200Response.kt index 018edf4..495492d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiNas200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiNas200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiNas200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetWifiNas200Response( + +data class GetWifiNas200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiNas200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiNas200ResponseItemsInner.kt index 4aa2a7a..3167231 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiNas200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiNas200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param comment * @param createdAt * @param id @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class GetWifiNas200ResponseItemsInner( + +data class GetWifiNas200ResponseItemsInner ( + @SerialName(value = "comment") @Required val comment: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "ipAddress") @Required val ipAddress: kotlin.String?, + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiRoleSpeedProfiles200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiRoleSpeedProfiles200Response.kt index 5ce62f9..8090074 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiRoleSpeedProfiles200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiRoleSpeedProfiles200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiRoleSpeedProfiles200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetWifiRoleSpeedProfiles200Response( + +data class GetWifiRoleSpeedProfiles200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiRoleSpeedProfiles200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiRoleSpeedProfiles200ResponseItemsInner.kt index 2af9685..de7a044 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiRoleSpeedProfiles200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiRoleSpeedProfiles200ResponseItemsInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param priority * @param roleName * @param speedProfileId */ @Serializable -data class GetWifiRoleSpeedProfiles200ResponseItemsInner( + +data class GetWifiRoleSpeedProfiles200ResponseItemsInner ( + @SerialName(value = "priority") @Required val priority: kotlin.Int?, + @SerialName(value = "roleName") @Required val roleName: kotlin.String?, - @SerialName(value = "speedProfileId") @Required val speedProfileId: kotlin.String?, -) + + @SerialName(value = "speedProfileId") @Required val speedProfileId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200Response.kt index 71fea35..582f716 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200Response.kt @@ -8,31 +8,48 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiSelf200ResponseDevicesInner import hu.petrik.filcapp.api.model.GetWifiSelf200ResponseSpeedLimit + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param banned * @param devices * @param speedLimit * @param username */ @Serializable -data class GetWifiSelf200Response( + +data class GetWifiSelf200Response ( + @SerialName(value = "banned") @Required val banned: kotlin.Boolean, + @SerialName(value = "devices") @Required val devices: kotlin.collections.List, + @SerialName(value = "speedLimit") @Required val speedLimit: GetWifiSelf200ResponseSpeedLimit, - @SerialName(value = "username") @Required val username: kotlin.String?, -) + + @SerialName(value = "username") @Required val username: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200ResponseDevicesInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200ResponseDevicesInner.kt index 4087ab9..55fafdc 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200ResponseDevicesInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200ResponseDevicesInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param banned * @param id * @param lastActiveAt @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param reportedHostname */ @Serializable -data class GetWifiSelf200ResponseDevicesInner( + +data class GetWifiSelf200ResponseDevicesInner ( + @SerialName(value = "banned") @Required val banned: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "lastActiveAt") @Required val lastActiveAt: kotlin.String?, + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String?, + @SerialName(value = "nickname") @Required val nickname: kotlin.String?, - @SerialName(value = "reportedHostname") @Required val reportedHostname: kotlin.String?, -) + + @SerialName(value = "reportedHostname") @Required val reportedHostname: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200ResponseSpeedLimit.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200ResponseSpeedLimit.kt index 6385ce7..f1dff86 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200ResponseSpeedLimit.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSelf200ResponseSpeedLimit.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param downloadSpeedMbps * @param roleName * @param source @@ -29,29 +36,31 @@ import kotlinx.serialization.encoding.* * @param uploadSpeedMbps */ @Serializable -data class GetWifiSelf200ResponseSpeedLimit( + +data class GetWifiSelf200ResponseSpeedLimit ( + @SerialName(value = "downloadSpeedMbps") @Required val downloadSpeedMbps: kotlin.Int?, + @SerialName(value = "roleName") @Required val roleName: kotlin.String?, + @SerialName(value = "source") @Required val source: GetWifiSelf200ResponseSpeedLimit.Source, + @SerialName(value = "speedProfileId") @Required val speedProfileId: kotlin.String?, - @SerialName(value = "uploadSpeedMbps") @Required val uploadSpeedMbps: kotlin.Int?, + + @SerialName(value = "uploadSpeedMbps") @Required val uploadSpeedMbps: kotlin.Int? + ) { + /** - * - * * Values: `override`,role,wlan_default */ @Serializable - enum class Source( - val value: kotlin.String, - ) { - @SerialName(value = "override") - `override`("override"), - - @SerialName(value = "role") - role("role"), - - @SerialName(value = "wlan_default") - wlan_default("wlan_default"), + enum class Source(val value: kotlin.String) { + @SerialName(value = "override") `override`("override"), + @SerialName(value = "role") role("role"), + @SerialName(value = "wlan_default") wlan_default("wlan_default"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSpeedProfiles200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSpeedProfiles200Response.kt index 6c68803..33f2548 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSpeedProfiles200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSpeedProfiles200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiSpeedProfiles200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetWifiSpeedProfiles200Response( + +data class GetWifiSpeedProfiles200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSpeedProfiles200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSpeedProfiles200ResponseItemsInner.kt index d8de420..b66e7e1 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSpeedProfiles200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiSpeedProfiles200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param downloadSpeedMbps * @param id * @param isWlanDefault @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param uploadSpeedMbps */ @Serializable -data class GetWifiSpeedProfiles200ResponseItemsInner( + +data class GetWifiSpeedProfiles200ResponseItemsInner ( + @SerialName(value = "downloadSpeedMbps") @Required val downloadSpeedMbps: kotlin.Int?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "isWlanDefault") @Required val isWlanDefault: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String?, - @SerialName(value = "uploadSpeedMbps") @Required val uploadSpeedMbps: kotlin.Int?, -) + + @SerialName(value = "uploadSpeedMbps") @Required val uploadSpeedMbps: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200Response.kt index 111e0eb..82e5837 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200Response.kt @@ -8,24 +8,38 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiStatsOverview200ResponseStats + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param stats */ @Serializable -data class GetWifiStatsOverview200Response( - @SerialName(value = "stats") @Required val stats: GetWifiStatsOverview200ResponseStats, -) + +data class GetWifiStatsOverview200Response ( + + @SerialName(value = "stats") @Required val stats: GetWifiStatsOverview200ResponseStats + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200ResponseStats.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200ResponseStats.kt index 1a380f0..ce22097 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200ResponseStats.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200ResponseStats.kt @@ -8,31 +8,47 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiStatsOverview200ResponseStatsAuthSeriesInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param activeDevices * @param authSeries * @param totalDevices * @param totalUsers */ @Serializable -data class GetWifiStatsOverview200ResponseStats( + +data class GetWifiStatsOverview200ResponseStats ( + @SerialName(value = "activeDevices") @Required val activeDevices: kotlin.Int?, - @SerialName(value = "authSeries") @Required val authSeries: - kotlin.collections.List, + + @SerialName(value = "authSeries") @Required val authSeries: kotlin.collections.List, + @SerialName(value = "totalDevices") @Required val totalDevices: kotlin.Int?, - @SerialName(value = "totalUsers") @Required val totalUsers: kotlin.Int?, -) + + @SerialName(value = "totalUsers") @Required val totalUsers: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200ResponseStatsAuthSeriesInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200ResponseStatsAuthSeriesInner.kt index b235b5c..693522a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200ResponseStatsAuthSeriesInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatsOverview200ResponseStatsAuthSeriesInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param accepted * @param date * @param rejected */ @Serializable -data class GetWifiStatsOverview200ResponseStatsAuthSeriesInner( + +data class GetWifiStatsOverview200ResponseStatsAuthSeriesInner ( + @SerialName(value = "accepted") @Required val accepted: kotlin.Int?, + @SerialName(value = "date") @Required val date: kotlin.String?, - @SerialName(value = "rejected") @Required val rejected: kotlin.Int?, -) + + @SerialName(value = "rejected") @Required val rejected: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatus200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatus200Response.kt index b112a4e..72b9219 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatus200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiStatus200Response.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param enabled * @param ssid */ @Serializable -data class GetWifiStatus200Response( + +data class GetWifiStatus200Response ( + @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean, - @SerialName(value = "ssid") @Required val ssid: kotlin.String?, -) + + @SerialName(value = "ssid") @Required val ssid: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiUsers200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiUsers200Response.kt index 7e838f3..989dcfa 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiUsers200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiUsers200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiUsers200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class GetWifiUsers200Response( + +data class GetWifiUsers200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiUsers200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiUsers200ResponseItemsInner.kt index 575b9b4..e307baa 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiUsers200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/GetWifiUsers200ResponseItemsInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param allowedMacAddresses * @param banned * @param comment @@ -36,17 +43,35 @@ import kotlinx.serialization.encoding.* * @param username */ @Serializable -data class GetWifiUsers200ResponseItemsInner( + +data class GetWifiUsers200ResponseItemsInner ( + @SerialName(value = "allowedMacAddresses") @Required val allowedMacAddresses: kotlin.collections.List?, + @SerialName(value = "banned") @Required val banned: kotlin.Boolean, + @SerialName(value = "comment") @Required val comment: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "createdBy") @Required val createdBy: kotlin.String?, + @SerialName(value = "creatorName") @Required val creatorName: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "lastActiveAt") @Required val lastActiveAt: kotlin.String?, + @SerialName(value = "speedProfileId") @Required val speedProfileId: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "userId") @Required val userId: kotlin.String?, - @SerialName(value = "username") @Required val username: kotlin.String?, -) + + @SerialName(value = "username") @Required val username: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyId200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyId200Response.kt index fa88a81..b402504 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyId200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyId200Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param enabled * @param expiresAt @@ -37,18 +44,37 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PatchAdminApiKeysByKeyId200Response( + +data class PatchAdminApiKeysByKeyId200Response ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean, + @SerialName(value = "expiresAt") @Required val expiresAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "lastRequest") @Required val lastRequest: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "ownerEmail") @Required val ownerEmail: kotlin.String?, + @SerialName(value = "ownerName") @Required val ownerName: kotlin.String?, + @SerialName(value = "prefix") @Required val prefix: kotlin.String?, + @SerialName(value = "referenceId") @Required val referenceId: kotlin.String?, + @SerialName(value = "requestCount") @Required val requestCount: kotlin.Double, + @SerialName(value = "start") @Required val start: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyId400Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyId400Response.kt index 81267d4..1e97c28 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyId400Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyId400Response.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param code * @param message * @param status */ @Serializable -data class PatchAdminApiKeysByKeyId400Response( + +data class PatchAdminApiKeysByKeyId400Response ( + @SerialName(value = "code") @Required val code: kotlin.String, + @SerialName(value = "message") @Required val message: kotlin.String, - @SerialName(value = "status") @Required val status: kotlin.Int, -) + + @SerialName(value = "status") @Required val status: kotlin.Int + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyIdRequest.kt index 744bc29..666c4b4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchAdminApiKeysByKeyIdRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param enabled */ @Serializable -data class PatchAdminApiKeysByKeyIdRequest( - @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean, -) + +data class PatchAdminApiKeysByKeyIdRequest ( + + @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatus200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatus200Response.kt index 55e27dd..157d9d8 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatus200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatus200Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param description * @param id @@ -35,15 +42,31 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PatchBugReportByIdStatus200Response( + +data class PatchBugReportByIdStatus200Response ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "description") @Required val description: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "metadata") @Required val metadata: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "page") @Required val page: kotlin.String?, + @SerialName(value = "reporterEmail") @Required val reporterEmail: kotlin.String?, + @SerialName(value = "reporterId") @Required val reporterId: kotlin.String?, + @SerialName(value = "status") @Required val status: kotlin.String, + @SerialName(value = "subject") @Required val subject: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatus200ResponseMetadata.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatus200ResponseMetadata.kt index 3412855..58d09d7 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatus200ResponseMetadata.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatus200ResponseMetadata.kt @@ -8,21 +8,35 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetBugReport200ResponseItemsInnerMetadataAnyOfValue + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * */ @Serializable -class PatchBugReportByIdStatus200ResponseMetadata + +class PatchBugReportByIdStatus200ResponseMetadata ( + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatusRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatusRequest.kt index 8f77eb3..989a3cc 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatusRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchBugReportByIdStatusRequest.kt @@ -8,45 +8,48 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param status */ @Serializable -data class PatchBugReportByIdStatusRequest( - @SerialName(value = "status") @Required val status: PatchBugReportByIdStatusRequest.Status, + +data class PatchBugReportByIdStatusRequest ( + + @SerialName(value = "status") @Required val status: PatchBugReportByIdStatusRequest.Status + ) { + /** - * - * * Values: `open`,in_progress,resolved,closed */ @Serializable - enum class Status( - val value: kotlin.String, - ) { - @SerialName(value = "open") - `open`("open"), - - @SerialName(value = "in_progress") - in_progress("in_progress"), - - @SerialName(value = "resolved") - resolved("resolved"), - - @SerialName(value = "closed") - closed("closed"), + enum class Status(val value: kotlin.String) { + @SerialName(value = "open") `open`("open"), + @SerialName(value = "in_progress") in_progress("in_progress"), + @SerialName(value = "resolved") resolved("resolved"), + @SerialName(value = "closed") closed("closed"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsById200Response.kt index eaa4e58..feb19d2 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsById200Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -41,21 +48,43 @@ import kotlinx.serialization.encoding.* * @param kioskIds */ @Serializable -data class PatchNewsAnnouncementsById200Response( + +data class PatchNewsAnnouncementsById200Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "highlighted") @Required val highlighted: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "imageByteSize") @Required val imageByteSize: kotlin.Double?, + @SerialName(value = "imageContentType") @Required val imageContentType: kotlin.String?, + @SerialName(value = "imageKey") @Required val imageKey: kotlin.String?, + @SerialName(value = "imageUpdatedAt") @Required val imageUpdatedAt: kotlin.String?, + @SerialName(value = "kioskOnly") @Required val kioskOnly: kotlin.Boolean, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String, + @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List, - @SerialName(value = "kioskIds") @Required val kioskIds: kotlin.collections.List, -) + + @SerialName(value = "kioskIds") @Required val kioskIds: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsByIdRequest.kt index fa502ae..01a017c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsByIdRequest.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchNewsAnnouncementsByIdRequestContentInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cohortIds * @param content * @param highlighted @@ -33,13 +40,27 @@ import kotlinx.serialization.encoding.* * @param validUntil */ @Serializable -data class PatchNewsAnnouncementsByIdRequest( + +data class PatchNewsAnnouncementsByIdRequest ( + @SerialName(value = "cohortIds") val cohortIds: kotlin.collections.List? = null, + @SerialName(value = "content") val content: kotlin.collections.List? = null, + @SerialName(value = "highlighted") val highlighted: kotlin.Boolean? = null, + @SerialName(value = "kioskIds") val kioskIds: kotlin.collections.List? = null, + @SerialName(value = "kioskOnly") val kioskOnly: kotlin.Boolean? = null, + @SerialName(value = "title") val title: kotlin.String? = null, + @SerialName(value = "validFrom") val validFrom: kotlin.String? = null, - @SerialName(value = "validUntil") val validUntil: kotlin.String? = null, -) + + @SerialName(value = "validUntil") val validUntil: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsByIdRequestContentInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsByIdRequestContentInner.kt index d2d3311..bf58a51 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsByIdRequestContentInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsAnnouncementsByIdRequestContentInner.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskRequestConfig + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param content * @param type */ @Serializable -data class PatchNewsAnnouncementsByIdRequestContentInner( + +data class PatchNewsAnnouncementsByIdRequestContentInner ( + @SerialName(value = "content") @Required val content: PostKioskRequestConfig?, - @SerialName(value = "type") @Required val type: kotlin.String, -) + + @SerialName(value = "type") @Required val type: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsBlogsById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsBlogsById200Response.kt index a4e2bf8..d2642a7 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsBlogsById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsBlogsById200Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -34,14 +41,29 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PatchNewsBlogsById200Response( + +data class PatchNewsBlogsById200Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "publishedAt") @Required val publishedAt: kotlin.String?, + @SerialName(value = "slug") @Required val slug: kotlin.String, + @SerialName(value = "status") @Required val status: kotlin.String, + @SerialName(value = "title") @Required val title: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsBlogsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsBlogsByIdRequest.kt index bdd802e..79a5ebb 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsBlogsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsBlogsByIdRequest.kt @@ -8,28 +8,44 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchNewsAnnouncementsByIdRequestContentInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param content * @param slug * @param title */ @Serializable -data class PatchNewsBlogsByIdRequest( + +data class PatchNewsBlogsByIdRequest ( + @SerialName(value = "content") val content: kotlin.collections.List? = null, + @SerialName(value = "slug") val slug: kotlin.String? = null, - @SerialName(value = "title") val title: kotlin.String? = null, -) + + @SerialName(value = "title") val title: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsSystemMessagesById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsSystemMessagesById200Response.kt index d4ccdf2..212b7ce 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsSystemMessagesById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsSystemMessagesById200Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -34,14 +41,29 @@ import kotlinx.serialization.encoding.* * @param cohortIds */ @Serializable -data class PatchNewsSystemMessagesById200Response( + +data class PatchNewsSystemMessagesById200Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "title") @Required val title: kotlin.String, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String, - @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List, -) + + @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsSystemMessagesByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsSystemMessagesByIdRequest.kt index 4c8c384..27a22b9 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsSystemMessagesByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNewsSystemMessagesByIdRequest.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchNewsAnnouncementsByIdRequestContentInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cohortIds * @param content * @param title @@ -30,10 +37,21 @@ import kotlinx.serialization.encoding.* * @param validUntil */ @Serializable -data class PatchNewsSystemMessagesByIdRequest( + +data class PatchNewsSystemMessagesByIdRequest ( + @SerialName(value = "cohortIds") val cohortIds: kotlin.collections.List? = null, + @SerialName(value = "content") val content: kotlin.collections.List? = null, + @SerialName(value = "title") val title: kotlin.String? = null, + @SerialName(value = "validFrom") val validFrom: kotlin.String? = null, - @SerialName(value = "validUntil") val validUntil: kotlin.String? = null, -) + + @SerialName(value = "validUntil") val validUntil: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNotificationsSettingsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNotificationsSettingsRequest.kt index f2ce5c4..0b2849e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNotificationsSettingsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNotificationsSettingsRequest.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchNotificationsSettingsRequestNotificationPreferences + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param language * @param notificationPreferences * @param theme @@ -31,29 +38,32 @@ import kotlinx.serialization.encoding.* * @param timetableView */ @Serializable -data class PatchNotificationsSettingsRequest( + +data class PatchNotificationsSettingsRequest ( + @SerialName(value = "language") val language: kotlin.String? = null, - @SerialName( - value = "notificationPreferences", - ) val notificationPreferences: PatchNotificationsSettingsRequestNotificationPreferences? = null, + + @SerialName(value = "notificationPreferences") val notificationPreferences: PatchNotificationsSettingsRequestNotificationPreferences? = null, + @SerialName(value = "theme") val theme: kotlin.String? = null, + @SerialName(value = "timetableClassColors") val timetableClassColors: kotlin.collections.Map? = null, + @SerialName(value = "timetableGroupDisplay") val timetableGroupDisplay: PatchNotificationsSettingsRequest.TimetableGroupDisplay? = null, - @SerialName(value = "timetableView") val timetableView: kotlin.String? = null, + + @SerialName(value = "timetableView") val timetableView: kotlin.String? = null + ) { + /** - * - * * Values: highlight,hide */ @Serializable - enum class TimetableGroupDisplay( - val value: kotlin.String, - ) { - @SerialName(value = "highlight") - highlight("highlight"), - - @SerialName(value = "hide") - hide("hide"), + enum class TimetableGroupDisplay(val value: kotlin.String) { + @SerialName(value = "highlight") highlight("highlight"), + @SerialName(value = "hide") hide("hide"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNotificationsSettingsRequestNotificationPreferences.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNotificationsSettingsRequestNotificationPreferences.kt index 6374531..fe05bb2 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNotificationsSettingsRequestNotificationPreferences.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchNotificationsSettingsRequestNotificationPreferences.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param announcement * @param blogPost * @param channelsEnabled @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param systemMessage */ @Serializable -data class PatchNotificationsSettingsRequestNotificationPreferences( + +data class PatchNotificationsSettingsRequestNotificationPreferences ( + @SerialName(value = "announcement") val announcement: kotlin.Boolean? = null, + @SerialName(value = "blogPost") val blogPost: kotlin.Boolean? = null, + @SerialName(value = "channelsEnabled") val channelsEnabled: kotlin.Boolean? = null, + @SerialName(value = "doorlockCardUsed") val doorlockCardUsed: kotlin.Boolean? = null, + @SerialName(value = "movedLesson") val movedLesson: kotlin.Boolean? = null, + @SerialName(value = "substitution") val substitution: kotlin.Boolean? = null, - @SerialName(value = "systemMessage") val systemMessage: kotlin.Boolean? = null, -) + + @SerialName(value = "systemMessage") val systemMessage: kotlin.Boolean? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchRolesByNameRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchRolesByNameRequest.kt index c209aa2..fe60f2c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchRolesByNameRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchRolesByNameRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param permissions */ @Serializable -data class PatchRolesByNameRequest( - @SerialName(value = "permissions") @Required val permissions: kotlin.collections.List, -) + +data class PatchRolesByNameRequest ( + + @SerialName(value = "permissions") @Required val permissions: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersById200Response.kt index 4c79b58..a97cec0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersById200Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchTimetableTeachersById200ResponseUser + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param firstName * @param id @@ -32,12 +39,25 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class PatchTimetableTeachersById200Response( + +data class PatchTimetableTeachersById200Response ( + @SerialName(value = "email") @Required val email: kotlin.String?, + @SerialName(value = "firstName") @Required val firstName: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "lastName") @Required val lastName: kotlin.String, + @SerialName(value = "short") @Required val short: kotlin.String, + @SerialName(value = "user") @Required val user: PatchTimetableTeachersById200ResponseUser?, - @SerialName(value = "userId") @Required val userId: kotlin.String?, -) + + @SerialName(value = "userId") @Required val userId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersById200ResponseUser.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersById200ResponseUser.kt index 40f8506..c0ecc11 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersById200ResponseUser.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersById200ResponseUser.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param id * @param name */ @Serializable -data class PatchTimetableTeachersById200ResponseUser( + +data class PatchTimetableTeachersById200ResponseUser ( + @SerialName(value = "email") @Required val email: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, - @SerialName(value = "name") @Required val name: kotlin.String, -) + + @SerialName(value = "name") @Required val name: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersByIdRequest.kt index 30db2a0..7214b7e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTeachersByIdRequest.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param userId */ @Serializable -data class PatchTimetableTeachersByIdRequest( + +data class PatchTimetableTeachersByIdRequest ( + @SerialName(value = "email") val email: kotlin.String? = null, - @SerialName(value = "userId") val userId: kotlin.String? = null, -) + + @SerialName(value = "userId") val userId: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTimetablesById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTimetablesById200Response.kt index c92dd81..ca13659 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTimetablesById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTimetablesById200Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param id * @param name @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param validTo */ @Serializable -data class PatchTimetableTimetablesById200Response( + +data class PatchTimetableTimetablesById200Response ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, - @SerialName(value = "validTo") @Required val validTo: kotlin.String?, -) + + @SerialName(value = "validTo") @Required val validTo: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTimetablesByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTimetablesByIdRequest.kt index ced4205..cac0c01 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTimetablesByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchTimetableTimetablesByIdRequest.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param name * @param validFrom * @param validTo */ @Serializable -data class PatchTimetableTimetablesByIdRequest( + +data class PatchTimetableTimetablesByIdRequest ( + @SerialName(value = "name") val name: kotlin.String? = null, + @SerialName(value = "validFrom") val validFrom: kotlin.String? = null, - @SerialName(value = "validTo") val validTo: kotlin.String? = null, -) + + @SerialName(value = "validTo") val validTo: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchUsersById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchUsersById200Response.kt index 79ad537..5358c38 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchUsersById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchUsersById200Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cohortId * @param createdAt * @param email @@ -36,17 +43,35 @@ import kotlinx.serialization.encoding.* * @param permissions */ @Serializable -data class PatchUsersById200Response( + +data class PatchUsersById200Response ( + @SerialName(value = "cohortId") @Required val cohortId: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "email") @Required val email: kotlin.String, + @SerialName(value = "emailVerified") @Required val emailVerified: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "image") @Required val image: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "nickname") @Required val nickname: kotlin.String?, + @SerialName(value = "roles") @Required val roles: kotlin.collections.List, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "displayName") @Required val displayName: kotlin.String, - @SerialName(value = "permissions") @Required val permissions: kotlin.collections.List, -) + + @SerialName(value = "permissions") @Required val permissions: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchUsersByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchUsersByIdRequest.kt index fe72916..17704a3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchUsersByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PatchUsersByIdRequest.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cohortId * @param nickname * @param roles */ @Serializable -data class PatchUsersByIdRequest( + +data class PatchUsersByIdRequest ( + @SerialName(value = "cohortId") val cohortId: kotlin.String? = null, + @SerialName(value = "nickname") val nickname: kotlin.String? = null, - @SerialName(value = "roles") val roles: kotlin.collections.List? = null, -) + + @SerialName(value = "roles") val roles: kotlin.collections.List? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReport201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReport201Response.kt index 93b5db6..4917de6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReport201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReport201Response.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id */ @Serializable -data class PostBugReport201Response( - @SerialName(value = "id") @Required val id: kotlin.String, -) + +data class PostBugReport201Response ( + + @SerialName(value = "id") @Required val id: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequest.kt index afded31..4fe5026 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequest.kt @@ -8,30 +8,47 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostBugReportRequestMetadataValue + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param description * @param subject * @param metadata * @param page */ @Serializable -data class PostBugReportRequest( + +data class PostBugReportRequest ( + @SerialName(value = "description") @Required val description: kotlin.String, + @SerialName(value = "subject") @Required val subject: kotlin.String, - @SerialName(value = "metadata") val metadata: kotlin.collections.Map? = null, - @SerialName(value = "page") val page: kotlin.String? = null, -) + + @SerialName(value = "metadata") val metadata: kotlin.collections.Map? = null, + + @SerialName(value = "page") val page: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValue.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValue.kt index 0ec6d8d..0a40e71 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValue.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValue.kt @@ -8,22 +8,36 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostBugReportRequestMetadataValueAnyOfInner import hu.petrik.filcapp.api.model.PostBugReportRequestMetadataValueAnyOfValue + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * */ @Serializable -class PostBugReportRequestMetadataValue + +class PostBugReportRequestMetadataValue ( + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValueAnyOfInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValueAnyOfInner.kt index 0d0a563..0e0ff45 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValueAnyOfInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValueAnyOfInner.kt @@ -8,20 +8,34 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * */ @Serializable -class PostBugReportRequestMetadataValueAnyOfInner + +class PostBugReportRequestMetadataValueAnyOfInner ( + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValueAnyOfValue.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValueAnyOfValue.kt index 1880187..398bdcc 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValueAnyOfValue.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostBugReportRequestMetadataValueAnyOfValue.kt @@ -8,20 +8,34 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * */ @Serializable -class PostBugReportRequestMetadataValueAnyOfValue + +class PostBugReportRequestMetadataValueAnyOfValue ( + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201Response.kt index 6721912..a4a6c3d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201Response.kt @@ -8,22 +8,29 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostDoorlockCards201ResponseAuthorizedDevicesInner import hu.petrik.filcapp.api.model.PostDoorlockCards201ResponseOwner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorizedDevices * @param cardData * @param createdAt @@ -36,16 +43,31 @@ import kotlinx.serialization.encoding.* * @param owner */ @Serializable -data class PostDoorlockCards201Response( - @SerialName(value = "authorizedDevices") @Required val authorizedDevices: - kotlin.collections.List, + +data class PostDoorlockCards201Response ( + + @SerialName(value = "authorizedDevices") @Required val authorizedDevices: kotlin.collections.List, + @SerialName(value = "cardData") @Required val cardData: kotlin.String, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean, + @SerialName(value = "frozen") @Required val frozen: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "userId") @Required val userId: kotlin.String?, - @SerialName(value = "owner") val owner: PostDoorlockCards201ResponseOwner? = null, -) + + @SerialName(value = "owner") val owner: PostDoorlockCards201ResponseOwner? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201ResponseAuthorizedDevicesInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201ResponseAuthorizedDevicesInner.kt index 8293bc5..ae67afd 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201ResponseAuthorizedDevicesInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201ResponseAuthorizedDevicesInner.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param name */ @Serializable -data class PostDoorlockCards201ResponseAuthorizedDevicesInner( + +data class PostDoorlockCards201ResponseAuthorizedDevicesInner ( + @SerialName(value = "id") @Required val id: kotlin.String, - @SerialName(value = "name") @Required val name: kotlin.String, -) + + @SerialName(value = "name") @Required val name: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201ResponseOwner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201ResponseOwner.kt index 58fa792..260f7be 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201ResponseOwner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCards201ResponseOwner.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param id * @param name * @param nickname */ @Serializable -data class PostDoorlockCards201ResponseOwner( + +data class PostDoorlockCards201ResponseOwner ( + @SerialName(value = "email") @Required val email: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "nickname") @Required val nickname: kotlin.String?, -) + + @SerialName(value = "nickname") @Required val nickname: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCardsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCardsRequest.kt index 9375555..ba6d5fd 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCardsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockCardsRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param name * @param cardData * @param userId @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param frozen */ @Serializable -data class PostDoorlockCardsRequest( + +data class PostDoorlockCardsRequest ( + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "cardData") @Required val cardData: kotlin.String?, + @SerialName(value = "userId") @Required val userId: kotlin.String?, - @SerialName(value = "authorizedDeviceIds") val authorizedDeviceIds: kotlin.collections.List? = arrayListOf(), + + @SerialName(value = "authorizedDeviceIds") val authorizedDeviceIds: kotlin.collections.List? = arrayListOf(), + @SerialName(value = "enabled") val enabled: kotlin.Boolean? = true, - @SerialName(value = "frozen") val frozen: kotlin.Boolean? = false, -) + + @SerialName(value = "frozen") val frozen: kotlin.Boolean? = false + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevices201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevices201Response.kt index 07f3f91..3e0c20c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevices201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevices201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param apiToken * @param createdAt * @param id @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PostDoorlockDevices201Response( + +data class PostDoorlockDevices201Response ( + @SerialName(value = "apiToken") @Required val apiToken: kotlin.String, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "lastResetReason") @Required val lastResetReason: kotlin.String?, + @SerialName(value = "location") @Required val location: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesByIdUpdate200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesByIdUpdate200Response.kt index 7a1b2b9..de4bb13 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesByIdUpdate200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesByIdUpdate200Response.kt @@ -8,24 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.JsonElement /** - * - * * @param ok */ @Serializable -data class PostDoorlockDevicesByIdUpdate200Response( - @SerialName(value = "ok") @Required val ok: JsonElement?, -) + +data class PostDoorlockDevicesByIdUpdate200Response ( + + @SerialName(value = "ok") @Required val ok: kotlinx.serialization.json.JsonElement? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesByIdUpdateRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesByIdUpdateRequest.kt index d28771f..75a13ff 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesByIdUpdateRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesByIdUpdateRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param url */ @Serializable -data class PostDoorlockDevicesByIdUpdateRequest( - @SerialName(value = "url") @Required val url: kotlin.String, -) + +data class PostDoorlockDevicesByIdUpdateRequest ( + + @SerialName(value = "url") @Required val url: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesRequest.kt index 43acda1..a06636a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesRequest.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param apiToken * @param name * @param lastResetReason * @param location */ @Serializable -data class PostDoorlockDevicesRequest( + +data class PostDoorlockDevicesRequest ( + @SerialName(value = "apiToken") @Required val apiToken: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "lastResetReason") val lastResetReason: kotlin.String? = null, - @SerialName(value = "location") val location: kotlin.String? = null, -) + + @SerialName(value = "location") val location: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesUpdate200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesUpdate200Response.kt index c9a35b1..814d3b1 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesUpdate200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockDevicesUpdate200Response.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param count */ @Serializable -data class PostDoorlockDevicesUpdate200Response( - @SerialName(value = "count") @Required val count: kotlin.Int?, -) + +data class PostDoorlockDevicesUpdate200Response ( + + @SerialName(value = "count") @Required val count: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockSelfCardsByIdActivate200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockSelfCardsByIdActivate200Response.kt index 0442c08..888b9f5 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockSelfCardsByIdActivate200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockSelfCardsByIdActivate200Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buttonPressed * @param cardData * @param cardId @@ -32,13 +39,27 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class PostDoorlockSelfCardsByIdActivate200Response( + +data class PostDoorlockSelfCardsByIdActivate200Response ( + @SerialName(value = "buttonPressed") @Required val buttonPressed: kotlin.Boolean, + @SerialName(value = "cardData") @Required val cardData: kotlin.String?, + @SerialName(value = "cardId") @Required val cardId: kotlin.String?, + @SerialName(value = "deviceId") @Required val deviceId: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.Int?, + @SerialName(value = "result") @Required val result: kotlin.Boolean, + @SerialName(value = "timestamp") @Required val timestamp: kotlin.String?, - @SerialName(value = "userId") @Required val userId: kotlin.String?, -) + + @SerialName(value = "userId") @Required val userId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockSelfCardsByIdActivateRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockSelfCardsByIdActivateRequest.kt index e9559f4..15d3037 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockSelfCardsByIdActivateRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostDoorlockSelfCardsByIdActivateRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param deviceId */ @Serializable -data class PostDoorlockSelfCardsByIdActivateRequest( - @SerialName(value = "deviceId") val deviceId: kotlin.String? = null, -) + +data class PostDoorlockSelfCardsByIdActivateRequest ( + + @SerialName(value = "deviceId") val deviceId: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKiosk201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKiosk201Response.kt index 4ef9b56..2c0e02f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKiosk201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKiosk201Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param appVersion * @param config * @param createdAt @@ -36,16 +43,33 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PostKiosk201Response( + +data class PostKiosk201Response ( + @SerialName(value = "appVersion") @Required val appVersion: kotlin.String?, + @SerialName(value = "config") @Required val config: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "enabled") @Required val enabled: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "kind") @Required val kind: kotlin.String, + @SerialName(value = "lastSeenAt") @Required val lastSeenAt: kotlin.String?, + @SerialName(value = "lastSeenIp") @Required val lastSeenIp: kotlin.String?, + @SerialName(value = "machineId") @Required val machineId: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDepartures200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDepartures200Response.kt index a008905..c2e5c0e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDepartures200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDepartures200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskDepartures200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class PostKioskDepartures200Response( - @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + +data class PostKioskDepartures200Response ( + + @SerialName(value = "items") @Required val items: kotlin.collections.List, + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDepartures200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDepartures200ResponseItemsInner.kt index 986f655..f64a3aa 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDepartures200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDepartures200ResponseItemsInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param label * @param predictedDepartureTime * @param routeShortDesc */ @Serializable -data class PostKioskDepartures200ResponseItemsInner( + +data class PostKioskDepartures200ResponseItemsInner ( + @SerialName(value = "label") @Required val label: kotlin.String?, + @SerialName(value = "predictedDepartureTime") @Required val predictedDepartureTime: kotlin.Double?, - @SerialName(value = "routeShortDesc") @Required val routeShortDesc: kotlin.String?, -) + + @SerialName(value = "routeShortDesc") @Required val routeShortDesc: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequest.kt index 0e88707..26dbb4d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequest.kt @@ -8,24 +8,38 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskDeparturesRequestGroupsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param groups */ @Serializable -data class PostKioskDeparturesRequest( - @SerialName(value = "groups") @Required val groups: kotlin.collections.List, -) + +data class PostKioskDeparturesRequest ( + + @SerialName(value = "groups") @Required val groups: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequestGroupsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequestGroupsInner.kt index e4abf4b..bbed068 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequestGroupsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequestGroupsInner.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskDeparturesRequestGroupsInnerStopsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param label * @param stops */ @Serializable -data class PostKioskDeparturesRequestGroupsInner( + +data class PostKioskDeparturesRequestGroupsInner ( + @SerialName(value = "label") @Required val label: kotlin.String?, - @SerialName(value = "stops") @Required val stops: kotlin.collections.List, -) + + @SerialName(value = "stops") @Required val stops: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequestGroupsInnerStopsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequestGroupsInnerStopsInner.kt index c5dd0ef..b917da7 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequestGroupsInnerStopsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskDeparturesRequestGroupsInnerStopsInner.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param stopId * @param routeFilter */ @Serializable -data class PostKioskDeparturesRequestGroupsInnerStopsInner( + +data class PostKioskDeparturesRequestGroupsInnerStopsInner ( + @SerialName(value = "stopId") @Required val stopId: kotlin.String?, - @SerialName(value = "routeFilter") val routeFilter: kotlin.String? = null, -) + + @SerialName(value = "routeFilter") val routeFilter: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200Response.kt index 56daa71..ee91839 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200Response.kt @@ -8,9 +8,17 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model @@ -19,21 +27,28 @@ import hu.petrik.filcapp.api.model.PostKioskHeartbeat200ResponseAnyOf import hu.petrik.filcapp.api.model.PostKioskHeartbeat200ResponseAnyOf1 import hu.petrik.filcapp.api.model.PostKioskHeartbeat200ResponseAnyOf2 import hu.petrik.filcapp.api.model.PostKioskHeartbeat200ResponseAnyOf2Kiosk + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.JsonElement /** - * - * * @param registered * @param enabled * @param kiosk */ @Serializable -data class PostKioskHeartbeat200Response( - @SerialName(value = "registered") @Required val registered: JsonElement?, - @SerialName(value = "enabled") @Required val enabled: JsonElement?, - @SerialName(value = "kiosk") @Required val kiosk: PostKioskHeartbeat200ResponseAnyOf2Kiosk, -) + +data class PostKioskHeartbeat200Response ( + + @SerialName(value = "registered") @Required val registered: kotlinx.serialization.json.JsonElement?, + + @SerialName(value = "enabled") @Required val enabled: kotlinx.serialization.json.JsonElement?, + + @SerialName(value = "kiosk") @Required val kiosk: PostKioskHeartbeat200ResponseAnyOf2Kiosk + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf.kt index 0c2bdb2..47ed3a3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf.kt @@ -8,24 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.JsonElement /** - * - * * @param registered */ @Serializable -data class PostKioskHeartbeat200ResponseAnyOf( - @SerialName(value = "registered") @Required val registered: JsonElement?, -) + +data class PostKioskHeartbeat200ResponseAnyOf ( + + @SerialName(value = "registered") @Required val registered: kotlinx.serialization.json.JsonElement? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf1.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf1.kt index 6d86e06..875a7f7 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf1.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf1.kt @@ -8,29 +8,44 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskHeartbeat200ResponseAnyOf1Kiosk + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.JsonElement /** - * - * * @param enabled * @param kiosk * @param registered */ @Serializable -data class PostKioskHeartbeat200ResponseAnyOf1( - @SerialName(value = "enabled") @Required val enabled: JsonElement?, + +data class PostKioskHeartbeat200ResponseAnyOf1 ( + + @SerialName(value = "enabled") @Required val enabled: kotlinx.serialization.json.JsonElement?, + @SerialName(value = "kiosk") @Required val kiosk: PostKioskHeartbeat200ResponseAnyOf1Kiosk, - @SerialName(value = "registered") @Required val registered: JsonElement?, -) + + @SerialName(value = "registered") @Required val registered: kotlinx.serialization.json.JsonElement? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf1Kiosk.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf1Kiosk.kt index a6cbb34..b212574 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf1Kiosk.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf1Kiosk.kt @@ -8,43 +8,52 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param kind * @param name */ @Serializable -data class PostKioskHeartbeat200ResponseAnyOf1Kiosk( + +data class PostKioskHeartbeat200ResponseAnyOf1Kiosk ( + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "kind") @Required val kind: PostKioskHeartbeat200ResponseAnyOf1Kiosk.Kind, - @SerialName(value = "name") @Required val name: kotlin.String?, + + @SerialName(value = "name") @Required val name: kotlin.String? + ) { + /** - * - * * Values: tv,navigator */ @Serializable - enum class Kind( - val value: kotlin.String, - ) { - @SerialName(value = "tv") - tv("tv"), - - @SerialName(value = "navigator") - navigator("navigator"), + enum class Kind(val value: kotlin.String) { + @SerialName(value = "tv") tv("tv"), + @SerialName(value = "navigator") navigator("navigator"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf2.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf2.kt index 3684de6..d291f5b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf2.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf2.kt @@ -8,29 +8,44 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskHeartbeat200ResponseAnyOf2Kiosk + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* -import kotlinx.serialization.json.JsonElement /** - * - * * @param enabled * @param kiosk * @param registered */ @Serializable -data class PostKioskHeartbeat200ResponseAnyOf2( - @SerialName(value = "enabled") @Required val enabled: JsonElement?, + +data class PostKioskHeartbeat200ResponseAnyOf2 ( + + @SerialName(value = "enabled") @Required val enabled: kotlinx.serialization.json.JsonElement?, + @SerialName(value = "kiosk") @Required val kiosk: PostKioskHeartbeat200ResponseAnyOf2Kiosk, - @SerialName(value = "registered") @Required val registered: JsonElement?, -) + + @SerialName(value = "registered") @Required val registered: kotlinx.serialization.json.JsonElement? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf2Kiosk.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf2Kiosk.kt index 55fa53f..eda94f5 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf2Kiosk.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeat200ResponseAnyOf2Kiosk.kt @@ -8,46 +8,56 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param id * @param kind * @param name * @param config */ @Serializable -data class PostKioskHeartbeat200ResponseAnyOf2Kiosk( + +data class PostKioskHeartbeat200ResponseAnyOf2Kiosk ( + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "kind") @Required val kind: PostKioskHeartbeat200ResponseAnyOf2Kiosk.Kind, + @SerialName(value = "name") @Required val name: kotlin.String?, - @SerialName(value = "config") @Required val config: PatchBugReportByIdStatus200ResponseMetadata?, + + @SerialName(value = "config") @Required val config: PatchBugReportByIdStatus200ResponseMetadata? + ) { + /** - * - * * Values: tv,navigator */ @Serializable - enum class Kind( - val value: kotlin.String, - ) { - @SerialName(value = "tv") - tv("tv"), - - @SerialName(value = "navigator") - navigator("navigator"), + enum class Kind(val value: kotlin.String) { + @SerialName(value = "tv") tv("tv"), + @SerialName(value = "navigator") navigator("navigator"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeatRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeatRequest.kt index 1de0632..20d564c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeatRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskHeartbeatRequest.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param appVersion * @param machineId */ @Serializable -data class PostKioskHeartbeatRequest( + +data class PostKioskHeartbeatRequest ( + @SerialName(value = "appVersion") @Required val appVersion: kotlin.String, - @SerialName(value = "machineId") @Required val machineId: kotlin.String, -) + + @SerialName(value = "machineId") @Required val machineId: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskRequest.kt index 1673501..8dd2880 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskRequest.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskRequestConfig + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param kind * @param machineId * @param name @@ -30,26 +37,30 @@ import kotlinx.serialization.encoding.* * @param enabled */ @Serializable -data class PostKioskRequest( + +data class PostKioskRequest ( + @SerialName(value = "kind") @Required val kind: PostKioskRequest.Kind, + @SerialName(value = "machineId") @Required val machineId: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "config") val config: PostKioskRequestConfig? = null, - @SerialName(value = "enabled") val enabled: kotlin.Boolean? = null, + + @SerialName(value = "enabled") val enabled: kotlin.Boolean? = null + ) { + /** - * - * * Values: tv,navigator */ @Serializable - enum class Kind( - val value: kotlin.String, - ) { - @SerialName(value = "tv") - tv("tv"), - - @SerialName(value = "navigator") - navigator("navigator"), + enum class Kind(val value: kotlin.String) { + @SerialName(value = "tv") tv("tv"), + @SerialName(value = "navigator") navigator("navigator"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskRequestConfig.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskRequestConfig.kt index b9fb5d4..f99519d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskRequestConfig.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostKioskRequestConfig.kt @@ -8,21 +8,35 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostBugReportRequestMetadataValueAnyOfValue + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * */ @Serializable -class PostKioskRequestConfig + +class PostKioskRequestConfig ( + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorBuildings201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorBuildings201Response.kt index 78d605b..a845f89 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorBuildings201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorBuildings201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param description * @param id * @param mapped @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PostNavigatorBuildings201Response( + +data class PostNavigatorBuildings201Response ( + @SerialName(value = "description") @Required val description: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "mapped") @Required val mapped: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "x") @Required val x: kotlin.Double, - @SerialName(value = "y") @Required val y: kotlin.Double, -) + + @SerialName(value = "y") @Required val y: kotlin.Double + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorBuildingsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorBuildingsRequest.kt index 5db920a..44cdbb0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorBuildingsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorBuildingsRequest.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param description * @param name * @param x * @param y */ @Serializable -data class PostNavigatorBuildingsRequest( + +data class PostNavigatorBuildingsRequest ( + @SerialName(value = "description") @Required val description: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double?, - @SerialName(value = "y") @Required val y: kotlin.Double?, -) + + @SerialName(value = "y") @Required val y: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomTypes201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomTypes201Response.kt index 8173082..a659ce7 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomTypes201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomTypes201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param colorhex * @param createdAt * @param id @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PostNavigatorClassroomTypes201Response( + +data class PostNavigatorClassroomTypes201Response ( + @SerialName(value = "colorhex") @Required val colorhex: kotlin.String, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomTypesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomTypesRequest.kt index 61c9029..e5803c2 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomTypesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomTypesRequest.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param colorhex * @param name */ @Serializable -data class PostNavigatorClassroomTypesRequest( + +data class PostNavigatorClassroomTypesRequest ( + @SerialName(value = "colorhex") @Required val colorhex: kotlin.String, - @SerialName(value = "name") @Required val name: kotlin.String?, -) + + @SerialName(value = "name") @Required val name: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassrooms201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassrooms201Response.kt index 6bdb58c..6250303 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassrooms201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassrooms201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param capacity * @param description @@ -39,20 +46,41 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PostNavigatorClassrooms201Response( + +data class PostNavigatorClassrooms201Response ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String, + @SerialName(value = "capacity") @Required val capacity: kotlin.Int?, + @SerialName(value = "description") @Required val description: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "mapped") @Required val mapped: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "rotation") @Required val rotation: kotlin.Double, + @SerialName(value = "short") @Required val short: kotlin.String, + @SerialName(value = "size_x") @Required val sizeX: kotlin.Double, + @SerialName(value = "size_y") @Required val sizeY: kotlin.Double, + @SerialName(value = "size_z") @Required val sizeZ: kotlin.Double, + @SerialName(value = "storey") @Required val storey: kotlin.Int, + @SerialName(value = "type_id") @Required val typeId: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double, - @SerialName(value = "y") @Required val y: kotlin.Double, -) + + @SerialName(value = "y") @Required val y: kotlin.Double + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomsRequest.kt index 2c92881..6c12056 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorClassroomsRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param capacity * @param description @@ -37,18 +44,37 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PostNavigatorClassroomsRequest( + +data class PostNavigatorClassroomsRequest ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String?, + @SerialName(value = "capacity") @Required val capacity: kotlin.Int?, + @SerialName(value = "description") @Required val description: kotlin.String?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "rotation") @Required val rotation: kotlin.Double?, + @SerialName(value = "short") @Required val short: kotlin.String?, + @SerialName(value = "size_x") @Required val sizeX: kotlin.Double?, + @SerialName(value = "size_y") @Required val sizeY: kotlin.Double?, + @SerialName(value = "size_z") @Required val sizeZ: kotlin.Double?, + @SerialName(value = "storey") @Required val storey: kotlin.Int?, + @SerialName(value = "type_id") @Required val typeId: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double?, - @SerialName(value = "y") @Required val y: kotlin.Double?, -) + + @SerialName(value = "y") @Required val y: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorCorridors201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorCorridors201Response.kt index c4418e1..c78fad7 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorCorridors201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorCorridors201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param barrierFree * @param buildingId * @param createdAt @@ -37,18 +44,37 @@ import kotlinx.serialization.encoding.* * @param y2 */ @Serializable -data class PostNavigatorCorridors201Response( + +data class PostNavigatorCorridors201Response ( + @SerialName(value = "barrier_free") @Required val barrierFree: kotlin.Boolean, + @SerialName(value = "building_id") @Required val buildingId: kotlin.String, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "is_outdoor") @Required val isOutdoor: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "storey") @Required val storey: kotlin.Int, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "width") @Required val width: kotlin.Double, + @SerialName(value = "x1") @Required val x1: kotlin.Double, + @SerialName(value = "x2") @Required val x2: kotlin.Double, + @SerialName(value = "y1") @Required val y1: kotlin.Double, - @SerialName(value = "y2") @Required val y2: kotlin.Double, -) + + @SerialName(value = "y2") @Required val y2: kotlin.Double + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorCorridorsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorCorridorsRequest.kt index 085f6af..6046eed 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorCorridorsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorCorridorsRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param barrierFree * @param buildingId * @param isOutdoor @@ -34,15 +41,31 @@ import kotlinx.serialization.encoding.* * @param y2 */ @Serializable -data class PostNavigatorCorridorsRequest( + +data class PostNavigatorCorridorsRequest ( + @SerialName(value = "barrier_free") @Required val barrierFree: kotlin.Boolean, + @SerialName(value = "building_id") @Required val buildingId: kotlin.String?, + @SerialName(value = "is_outdoor") @Required val isOutdoor: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "storey") @Required val storey: kotlin.Int?, + @SerialName(value = "width") @Required val width: kotlin.Double?, + @SerialName(value = "x1") @Required val x1: kotlin.Double?, + @SerialName(value = "x2") @Required val x2: kotlin.Double?, + @SerialName(value = "y1") @Required val y1: kotlin.Double?, - @SerialName(value = "y2") @Required val y2: kotlin.Double?, -) + + @SerialName(value = "y2") @Required val y2: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorImport200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorImport200Response.kt index 936d0db..b8a884e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorImport200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorImport200Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildings * @param classrooms * @param classroomTypes @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param translations */ @Serializable -data class PostNavigatorImport200Response( + +data class PostNavigatorImport200Response ( + @SerialName(value = "buildings") @Required val buildings: kotlin.Int?, + @SerialName(value = "classrooms") @Required val classrooms: kotlin.Int?, + @SerialName(value = "classroomTypes") @Required val classroomTypes: kotlin.Int?, + @SerialName(value = "corridors") @Required val corridors: kotlin.Int?, + @SerialName(value = "lifts") @Required val lifts: kotlin.Int?, + @SerialName(value = "stairs") @Required val stairs: kotlin.Int?, - @SerialName(value = "translations") @Required val translations: kotlin.Int?, -) + + @SerialName(value = "translations") @Required val translations: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorImportRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorImportRequest.kt index 86f6c27..b9a19f3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorImportRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorImportRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param file */ @Serializable -data class PostNavigatorImportRequest( - @SerialName(value = "file") @Required val file: kotlin.String, -) + +data class PostNavigatorImportRequest ( + + @SerialName(value = "file") @Required val file: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorLiftsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorLiftsRequest.kt index e333b5f..44e26a9 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorLiftsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorLiftsRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param maxStorey * @param minStorey @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PostNavigatorLiftsRequest( + +data class PostNavigatorLiftsRequest ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String?, + @SerialName(value = "max_storey") @Required val maxStorey: kotlin.Int?, + @SerialName(value = "min_storey") @Required val minStorey: kotlin.Int?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double?, - @SerialName(value = "y") @Required val y: kotlin.Double?, -) + + @SerialName(value = "y") @Required val y: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorStairsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorStairsRequest.kt index 754011e..e822a14 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorStairsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorStairsRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param maxStorey * @param minStorey @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PostNavigatorStairsRequest( + +data class PostNavigatorStairsRequest ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String?, + @SerialName(value = "max_storey") @Required val maxStorey: kotlin.Int?, + @SerialName(value = "min_storey") @Required val minStorey: kotlin.Int?, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "rotation") @Required val rotation: kotlin.Double?, + @SerialName(value = "x") @Required val x: kotlin.Double?, - @SerialName(value = "y") @Required val y: kotlin.Double?, -) + + @SerialName(value = "y") @Required val y: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslations201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslations201Response.kt index 454c8b1..5fb3cf4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslations201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslations201Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostNavigatorTranslations201ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class PostNavigatorTranslations201Response( + +data class PostNavigatorTranslations201Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double, -) + + @SerialName(value = "total") @Required val total: kotlin.Double + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslations201ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslations201ResponseItemsInner.kt index 3cfde68..c77239f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslations201ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslations201ResponseItemsInner.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param langKey * @param text * @param textKey */ @Serializable -data class PostNavigatorTranslations201ResponseItemsInner( + +data class PostNavigatorTranslations201ResponseItemsInner ( + @SerialName(value = "lang_key") @Required val langKey: kotlin.String, + @SerialName(value = "text") @Required val text: kotlin.String, - @SerialName(value = "text_key") @Required val textKey: kotlin.String, -) + + @SerialName(value = "text_key") @Required val textKey: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslationsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslationsRequest.kt index 8a67d42..330da13 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslationsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNavigatorTranslationsRequest.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param textKey * @param translations */ @Serializable -data class PostNavigatorTranslationsRequest( + +data class PostNavigatorTranslationsRequest ( + @SerialName(value = "text_key") @Required val textKey: kotlin.String?, - @SerialName(value = "translations") @Required val translations: kotlin.collections.Map, -) + + @SerialName(value = "translations") @Required val translations: kotlin.collections.Map + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncements201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncements201Response.kt index 925b135..2341908 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncements201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncements201Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -41,21 +48,43 @@ import kotlinx.serialization.encoding.* * @param kioskIds */ @Serializable -data class PostNewsAnnouncements201Response( + +data class PostNewsAnnouncements201Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String?, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "highlighted") @Required val highlighted: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "imageByteSize") @Required val imageByteSize: kotlin.Double?, + @SerialName(value = "imageContentType") @Required val imageContentType: kotlin.String?, + @SerialName(value = "imageKey") @Required val imageKey: kotlin.String?, + @SerialName(value = "imageUpdatedAt") @Required val imageUpdatedAt: kotlin.String?, + @SerialName(value = "kioskOnly") @Required val kioskOnly: kotlin.Boolean, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String?, + @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List, - @SerialName(value = "kioskIds") @Required val kioskIds: kotlin.collections.List, -) + + @SerialName(value = "kioskIds") @Required val kioskIds: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncementsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncementsRequest.kt index 5219eb7..2652181 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncementsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncementsRequest.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostNewsAnnouncementsRequestContentInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param content * @param validFrom * @param validUntil @@ -33,13 +40,27 @@ import kotlinx.serialization.encoding.* * @param title */ @Serializable -data class PostNewsAnnouncementsRequest( + +data class PostNewsAnnouncementsRequest ( + @SerialName(value = "content") @Required val content: kotlin.collections.List, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String?, + @SerialName(value = "cohortIds") val cohortIds: kotlin.collections.List? = null, + @SerialName(value = "highlighted") val highlighted: kotlin.Boolean? = null, + @SerialName(value = "kioskIds") val kioskIds: kotlin.collections.List? = null, + @SerialName(value = "kioskOnly") val kioskOnly: kotlin.Boolean? = null, - @SerialName(value = "title") val title: kotlin.String? = null, -) + + @SerialName(value = "title") val title: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncementsRequestContentInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncementsRequestContentInner.kt index cd18e90..8d114ee 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncementsRequestContentInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsAnnouncementsRequestContentInner.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskRequestConfig + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param content * @param type */ @Serializable -data class PostNewsAnnouncementsRequestContentInner( + +data class PostNewsAnnouncementsRequestContentInner ( + @SerialName(value = "content") @Required val content: PostKioskRequestConfig?, - @SerialName(value = "type") @Required val type: kotlin.String?, -) + + @SerialName(value = "type") @Required val type: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsBlogs201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsBlogs201Response.kt index 94fe5fe..998ef2f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsBlogs201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsBlogs201Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -34,14 +41,29 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PostNewsBlogs201Response( + +data class PostNewsBlogs201Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String?, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "publishedAt") @Required val publishedAt: kotlin.String?, + @SerialName(value = "slug") @Required val slug: kotlin.String?, + @SerialName(value = "status") @Required val status: kotlin.String?, + @SerialName(value = "title") @Required val title: kotlin.String?, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsBlogsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsBlogsRequest.kt index bfc7d9c..ce21342 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsBlogsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsBlogsRequest.kt @@ -8,46 +8,56 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchNewsAnnouncementsByIdRequestContentInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param content * @param title * @param slug * @param status */ @Serializable -data class PostNewsBlogsRequest( + +data class PostNewsBlogsRequest ( + @SerialName(value = "content") @Required val content: kotlin.collections.List, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "slug") val slug: kotlin.String? = null, - @SerialName(value = "status") val status: PostNewsBlogsRequest.Status? = Status.draft, + + @SerialName(value = "status") val status: PostNewsBlogsRequest.Status? = Status.draft + ) { + /** - * - * * Values: draft,published */ @Serializable - enum class Status( - val value: kotlin.String, - ) { - @SerialName(value = "draft") - draft("draft"), - - @SerialName(value = "published") - published("published"), + enum class Status(val value: kotlin.String) { + @SerialName(value = "draft") draft("draft"), + @SerialName(value = "published") published("published"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsSystemMessages201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsSystemMessages201Response.kt index b6e3831..cb803d0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsSystemMessages201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsSystemMessages201Response.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchBugReportByIdStatus200ResponseMetadata + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param authorId * @param content * @param createdAt @@ -34,14 +41,29 @@ import kotlinx.serialization.encoding.* * @param cohortIds */ @Serializable -data class PostNewsSystemMessages201Response( + +data class PostNewsSystemMessages201Response ( + @SerialName(value = "authorId") @Required val authorId: kotlin.String?, + @SerialName(value = "content") @Required val content: PatchBugReportByIdStatus200ResponseMetadata?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String?, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String?, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String?, - @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List, -) + + @SerialName(value = "cohortIds") @Required val cohortIds: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsSystemMessagesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsSystemMessagesRequest.kt index 1c7e2c4..930d848 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsSystemMessagesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNewsSystemMessagesRequest.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PatchNewsAnnouncementsByIdRequestContentInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param content * @param title * @param validFrom @@ -30,10 +37,21 @@ import kotlinx.serialization.encoding.* * @param cohortIds */ @Serializable -data class PostNewsSystemMessagesRequest( + +data class PostNewsSystemMessagesRequest ( + @SerialName(value = "content") @Required val content: kotlin.collections.List, + @SerialName(value = "title") @Required val title: kotlin.String?, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String?, + @SerialName(value = "validUntil") @Required val validUntil: kotlin.String?, - @SerialName(value = "cohortIds") val cohortIds: kotlin.collections.List? = null, -) + + @SerialName(value = "cohortIds") val cohortIds: kotlin.collections.List? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsByIdRead200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsByIdRead200Response.kt index c03e303..9eb6cfd 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsByIdRead200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsByIdRead200Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param content * @param createdAt * @param id @@ -32,13 +39,27 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class PostNotificationsByIdRead200Response( + +data class PostNotificationsByIdRead200Response ( + @SerialName(value = "content") @Required val content: kotlin.String, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, - @SerialName(value = "metadata") @Required val metadata: kotlin.collections.Map?, + + @SerialName(value = "metadata") @Required val metadata: kotlin.collections.Map?, + @SerialName(value = "read") @Required val read: kotlin.Boolean, + @SerialName(value = "title") @Required val title: kotlin.String, + @SerialName(value = "type") @Required val type: kotlin.String, - @SerialName(value = "userId") @Required val userId: kotlin.String, -) + + @SerialName(value = "userId") @Required val userId: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsFcmTokensRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsFcmTokensRequest.kt index f01070e..78d63f1 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsFcmTokensRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsFcmTokensRequest.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param token * @param deviceInfo */ @Serializable -data class PostNotificationsFcmTokensRequest( + +data class PostNotificationsFcmTokensRequest ( + @SerialName(value = "token") @Required val token: kotlin.String?, - @SerialName(value = "deviceInfo") val deviceInfo: kotlin.String? = null, -) + + @SerialName(value = "deviceInfo") val deviceInfo: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestPreview200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestPreview200Response.kt index ac47972..570868a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestPreview200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestPreview200Response.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param html */ @Serializable -data class PostNotificationsTestPreview200Response( - @SerialName(value = "html") @Required val html: kotlin.String?, -) + +data class PostNotificationsTestPreview200Response ( + + @SerialName(value = "html") @Required val html: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestPreviewRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestPreviewRequest.kt index bb21c40..17b6cb8 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestPreviewRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestPreviewRequest.kt @@ -8,82 +8,71 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param type * @param content * @param language * @param subject */ @Serializable -data class PostNotificationsTestPreviewRequest( + +data class PostNotificationsTestPreviewRequest ( + @SerialName(value = "type") @Required val type: PostNotificationsTestPreviewRequest.Type, + @SerialName(value = "content") val content: kotlin.String? = null, + @SerialName(value = "language") val language: PostNotificationsTestPreviewRequest.Language? = null, - @SerialName(value = "subject") val subject: kotlin.String? = null, + + @SerialName(value = "subject") val subject: kotlin.String? = null + ) { + /** - * - * * Values: substitution,substitution_teacher,moved_lesson,announcement,system_message,blog_post,doorlock_card_used,cohort_reselection_required,test */ @Serializable - enum class Type( - val value: kotlin.String, - ) { - @SerialName(value = "substitution") - substitution("substitution"), - - @SerialName(value = "substitution_teacher") - substitution_teacher("substitution_teacher"), - - @SerialName(value = "moved_lesson") - moved_lesson("moved_lesson"), - - @SerialName(value = "announcement") - announcement("announcement"), - - @SerialName(value = "system_message") - system_message("system_message"), - - @SerialName(value = "blog_post") - blog_post("blog_post"), - - @SerialName(value = "doorlock_card_used") - doorlock_card_used("doorlock_card_used"), - - @SerialName(value = "cohort_reselection_required") - cohort_reselection_required("cohort_reselection_required"), - - @SerialName(value = "test") - test("test"), + enum class Type(val value: kotlin.String) { + @SerialName(value = "substitution") substitution("substitution"), + @SerialName(value = "substitution_teacher") substitution_teacher("substitution_teacher"), + @SerialName(value = "moved_lesson") moved_lesson("moved_lesson"), + @SerialName(value = "announcement") announcement("announcement"), + @SerialName(value = "system_message") system_message("system_message"), + @SerialName(value = "blog_post") blog_post("blog_post"), + @SerialName(value = "doorlock_card_used") doorlock_card_used("doorlock_card_used"), + @SerialName(value = "cohort_reselection_required") cohort_reselection_required("cohort_reselection_required"), + @SerialName(value = "test") test("test"); + override fun toString(): kotlin.String = value } - /** - * - * * Values: en,hu */ @Serializable - enum class Language( - val value: kotlin.String, - ) { - @SerialName(value = "en") - en("en"), - - @SerialName(value = "hu") - hu("hu"), + enum class Language(val value: kotlin.String) { + @SerialName(value = "en") en("en"), + @SerialName(value = "hu") hu("hu"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSend200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSend200Response.kt index 630e8e7..c9b9031 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSend200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSend200Response.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param inApp * @param push */ @Serializable -data class PostNotificationsTestSend200Response( + +data class PostNotificationsTestSend200Response ( + @SerialName(value = "email") @Required val email: kotlin.Boolean, + @SerialName(value = "inApp") @Required val inApp: kotlin.Boolean, - @SerialName(value = "push") @Required val push: kotlin.Boolean, -) + + @SerialName(value = "push") @Required val push: kotlin.Boolean + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSendRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSendRequest.kt index cb796b9..9b3d420 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSendRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSendRequest.kt @@ -8,21 +8,28 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostNotificationsTestSendRequestChannels + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param channels * @param type * @param content @@ -31,64 +38,48 @@ import kotlinx.serialization.encoding.* * @param subject */ @Serializable -data class PostNotificationsTestSendRequest( + +data class PostNotificationsTestSendRequest ( + @SerialName(value = "channels") @Required val channels: PostNotificationsTestSendRequestChannels, + @SerialName(value = "type") @Required val type: PostNotificationsTestSendRequest.Type, + @SerialName(value = "content") val content: kotlin.String? = null, + @SerialName(value = "email") val email: kotlin.String? = null, + @SerialName(value = "language") val language: PostNotificationsTestSendRequest.Language? = null, - @SerialName(value = "subject") val subject: kotlin.String? = null, + + @SerialName(value = "subject") val subject: kotlin.String? = null + ) { + /** - * - * * Values: substitution,substitution_teacher,moved_lesson,announcement,system_message,blog_post,doorlock_card_used,cohort_reselection_required,test */ @Serializable - enum class Type( - val value: kotlin.String, - ) { - @SerialName(value = "substitution") - substitution("substitution"), - - @SerialName(value = "substitution_teacher") - substitution_teacher("substitution_teacher"), - - @SerialName(value = "moved_lesson") - moved_lesson("moved_lesson"), - - @SerialName(value = "announcement") - announcement("announcement"), - - @SerialName(value = "system_message") - system_message("system_message"), - - @SerialName(value = "blog_post") - blog_post("blog_post"), - - @SerialName(value = "doorlock_card_used") - doorlock_card_used("doorlock_card_used"), - - @SerialName(value = "cohort_reselection_required") - cohort_reselection_required("cohort_reselection_required"), - - @SerialName(value = "test") - test("test"), + enum class Type(val value: kotlin.String) { + @SerialName(value = "substitution") substitution("substitution"), + @SerialName(value = "substitution_teacher") substitution_teacher("substitution_teacher"), + @SerialName(value = "moved_lesson") moved_lesson("moved_lesson"), + @SerialName(value = "announcement") announcement("announcement"), + @SerialName(value = "system_message") system_message("system_message"), + @SerialName(value = "blog_post") blog_post("blog_post"), + @SerialName(value = "doorlock_card_used") doorlock_card_used("doorlock_card_used"), + @SerialName(value = "cohort_reselection_required") cohort_reselection_required("cohort_reselection_required"), + @SerialName(value = "test") test("test"); + override fun toString(): kotlin.String = value } - /** - * - * * Values: en,hu */ @Serializable - enum class Language( - val value: kotlin.String, - ) { - @SerialName(value = "en") - en("en"), - - @SerialName(value = "hu") - hu("hu"), + enum class Language(val value: kotlin.String) { + @SerialName(value = "en") en("en"), + @SerialName(value = "hu") hu("hu"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSendRequestChannels.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSendRequestChannels.kt index 7c10863..8d88b71 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSendRequestChannels.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostNotificationsTestSendRequestChannels.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param email * @param inApp * @param push */ @Serializable -data class PostNotificationsTestSendRequestChannels( + +data class PostNotificationsTestSendRequestChannels ( + @SerialName(value = "email") val email: kotlin.Boolean? = false, + @SerialName(value = "inApp") val inApp: kotlin.Boolean? = false, - @SerialName(value = "push") val push: kotlin.Boolean? = false, -) + + @SerialName(value = "push") val push: kotlin.Boolean? = false + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostRoles201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostRoles201Response.kt index f16e106..bc4b4d6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostRoles201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostRoles201Response.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param can * @param name */ @Serializable -data class PostRoles201Response( + +data class PostRoles201Response ( + @SerialName(value = "can") @Required val can: kotlin.collections.List, - @SerialName(value = "name") @Required val name: kotlin.String, -) + + @SerialName(value = "name") @Required val name: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostRolesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostRolesRequest.kt index ba43063..36fdca3 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostRolesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostRolesRequest.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param name * @param permissions */ @Serializable -data class PostRolesRequest( + +data class PostRolesRequest ( + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "permissions") val permissions: kotlin.collections.List? = arrayListOf(), -) + + @SerialName(value = "permissions") val permissions: kotlin.collections.List? = arrayListOf() + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableGroupsSelect200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableGroupsSelect200Response.kt index f75602c..2f0ea40 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableGroupsSelect200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableGroupsSelect200Response.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param divisionTag * @param selectedGroupId */ @Serializable -data class PostTimetableGroupsSelect200Response( + +data class PostTimetableGroupsSelect200Response ( + @SerialName(value = "divisionTag") @Required val divisionTag: kotlin.String?, - @SerialName(value = "selectedGroupId") @Required val selectedGroupId: kotlin.String?, -) + + @SerialName(value = "selectedGroupId") @Required val selectedGroupId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableGroupsSelectRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableGroupsSelectRequest.kt index 1df4f10..99f754d 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableGroupsSelectRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableGroupsSelectRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param groupId */ @Serializable -data class PostTimetableGroupsSelectRequest( - @SerialName(value = "groupId") @Required val groupId: kotlin.String?, -) + +data class PostTimetableGroupsSelectRequest ( + + @SerialName(value = "groupId") @Required val groupId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableImportRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableImportRequest.kt index 21a63ba..94009de 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableImportRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableImportRequest.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param file * @param name * @param validFrom * @param validTo */ @Serializable -data class PostTimetableImportRequest( + +data class PostTimetableImportRequest ( + @SerialName(value = "file") @Required val file: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "validFrom") @Required val validFrom: kotlin.String, - @SerialName(value = "validTo") val validTo: kotlin.String? = null, -) + + @SerialName(value = "validTo") val validTo: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200Response.kt index 747a3f7..68546de 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200Response.kt @@ -8,26 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostTimetableLessonsGetForTeachers200ResponseItemsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param items * @param total */ @Serializable -data class PostTimetableLessonsGetForTeachers200Response( + +data class PostTimetableLessonsGetForTeachers200Response ( + @SerialName(value = "items") @Required val items: kotlin.collections.List, - @SerialName(value = "total") @Required val total: kotlin.Double?, -) + + @SerialName(value = "total") @Required val total: kotlin.Double? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInner.kt index 7e9ee6f..5ec1c90 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInner.kt @@ -8,27 +8,41 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param lessons * @param teacherId */ @Serializable -data class PostTimetableLessonsGetForTeachers200ResponseItemsInner( - @SerialName(value = "lessons") @Required val lessons: - kotlin.collections.List, - @SerialName(value = "teacherId") @Required val teacherId: kotlin.String?, -) + +data class PostTimetableLessonsGetForTeachers200ResponseItemsInner ( + + @SerialName(value = "lessons") @Required val lessons: kotlin.collections.List, + + @SerialName(value = "teacherId") @Required val teacherId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner.kt index 02b6973..3359e4e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner.kt @@ -8,9 +8,17 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model @@ -21,13 +29,12 @@ import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForCohortByCohortId200R import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForIdByLessonId200ResponseGroupsInner import hu.petrik.filcapp.api.model.GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition import hu.petrik.filcapp.api.model.PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param classrooms * @param cohorts * @param groups @@ -43,22 +50,37 @@ import kotlinx.serialization.encoding.* * @param day */ @Serializable -data class PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner( - @SerialName(value = "classrooms") @Required val classrooms: - kotlin.collections.List, - @SerialName(value = "cohorts") @Required val cohorts: - kotlin.collections.List, - @SerialName(value = "groups") @Required val groups: - kotlin.collections.List, + +data class PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner ( + + @SerialName(value = "classrooms") @Required val classrooms: kotlin.collections.List, + + @SerialName(value = "cohorts") @Required val cohorts: kotlin.collections.List, + + @SerialName(value = "groups") @Required val groups: kotlin.collections.List, + @SerialName(value = "groupsIds") @Required val groupsIds: kotlin.collections.List, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "period") @Required val period: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerPeriod?, + @SerialName(value = "periodsPerWeek") @Required val periodsPerWeek: kotlin.Double, + @SerialName(value = "subject") @Required val subject: GetTimetableLessonsGetForCohortByCohortId200ResponseItemsInnerSubject?, - @SerialName(value = "teachers") @Required val teachers: - kotlin.collections.List, + + @SerialName(value = "teachers") @Required val teachers: kotlin.collections.List, + @SerialName(value = "termDefinitionId") @Required val termDefinitionId: kotlin.String?, + @SerialName(value = "weekDefinition") @Required val weekDefinition: GetTimetableLessonsGetForIdByLessonId200ResponseWeekDefinition?, + @SerialName(value = "weeksDefinitionId") @Required val weeksDefinitionId: kotlin.String, - @SerialName(value = "day") val day: PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay? = null, -) + + @SerialName(value = "day") val day: PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay.kt index b51941d..bc35daf 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param createdAt * @param days * @param id @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay( + +data class PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInnerDay ( + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "days") @Required val days: kotlin.collections.List?, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "short") @Required val short: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachersRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachersRequest.kt index c441796..a38f4fb 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachersRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetForTeachersRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param teacherIds */ @Serializable -data class PostTimetableLessonsGetForTeachersRequest( - @SerialName(value = "teacherIds") @Required val teacherIds: kotlin.collections.List, -) + +data class PostTimetableLessonsGetForTeachersRequest ( + + @SerialName(value = "teacherIds") @Required val teacherIds: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidates200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidates200Response.kt index b5648bb..3d0b4ae 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidates200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidates200Response.kt @@ -8,32 +8,45 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostTimetableLessonsGetForTeachers200ResponseItemsInnerLessonsInner import hu.petrik.filcapp.api.model.PostTimetableLessonsGetSubstitutionCandidates200ResponseSubstituteCandidatesInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param availableLessons * @param parallelLessons * @param substituteCandidates */ @Serializable -data class PostTimetableLessonsGetSubstitutionCandidates200Response( - @SerialName(value = "availableLessons") @Required val availableLessons: - kotlin.collections.List, - @SerialName(value = "parallelLessons") @Required val parallelLessons: - kotlin.collections.List, - @SerialName(value = "substituteCandidates") @Required val substituteCandidates: - kotlin.collections.List, -) + +data class PostTimetableLessonsGetSubstitutionCandidates200Response ( + + @SerialName(value = "availableLessons") @Required val availableLessons: kotlin.collections.List, + + @SerialName(value = "parallelLessons") @Required val parallelLessons: kotlin.collections.List, + + @SerialName(value = "substituteCandidates") @Required val substituteCandidates: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidates200ResponseSubstituteCandidatesInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidates200ResponseSubstituteCandidatesInner.kt index 1a8563b..f26e0a5 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidates200ResponseSubstituteCandidatesInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidates200ResponseSubstituteCandidatesInner.kt @@ -8,28 +8,44 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetTimetableTeachersMe200Response + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param hasH1 * @param hasH2 * @param teacher */ @Serializable -data class PostTimetableLessonsGetSubstitutionCandidates200ResponseSubstituteCandidatesInner( + +data class PostTimetableLessonsGetSubstitutionCandidates200ResponseSubstituteCandidatesInner ( + @SerialName(value = "hasH1") @Required val hasH1: kotlin.Boolean, + @SerialName(value = "hasH2") @Required val hasH2: kotlin.Boolean, - @SerialName(value = "teacher") @Required val teacher: GetTimetableTeachersMe200Response?, -) + + @SerialName(value = "teacher") @Required val teacher: GetTimetableTeachersMe200Response? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidatesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidatesRequest.kt index 33fff1e..74618ca 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidatesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableLessonsGetSubstitutionCandidatesRequest.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param date * @param missingTeacherId * @param teacherIds * @param selectedLessonIds */ @Serializable -data class PostTimetableLessonsGetSubstitutionCandidatesRequest( + +data class PostTimetableLessonsGetSubstitutionCandidatesRequest ( + @SerialName(value = "date") @Required val date: kotlin.String?, + @SerialName(value = "missingTeacherId") @Required val missingTeacherId: kotlin.String?, + @SerialName(value = "teacherIds") @Required val teacherIds: kotlin.collections.List, - @SerialName(value = "selectedLessonIds") val selectedLessonIds: kotlin.collections.List? = null, -) + + @SerialName(value = "selectedLessonIds") val selectedLessonIds: kotlin.collections.List? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableMovedLessons200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableMovedLessons200Response.kt index 98e6b60..c04dc99 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableMovedLessons200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableMovedLessons200Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param comment * @param date * @param id @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param startingPeriod */ @Serializable -data class PostTimetableMovedLessons200Response( + +data class PostTimetableMovedLessons200Response ( + @SerialName(value = "comment") @Required val comment: kotlin.String?, + @SerialName(value = "date") @Required val date: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "room") @Required val room: kotlin.String?, + @SerialName(value = "startingDay") @Required val startingDay: kotlin.String?, - @SerialName(value = "startingPeriod") @Required val startingPeriod: kotlin.String?, -) + + @SerialName(value = "startingPeriod") @Required val startingPeriod: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableMovedLessonsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableMovedLessonsRequest.kt index 1791e17..5eacc62 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableMovedLessonsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableMovedLessonsRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param date * @param lessonIds * @param comment @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param startingPeriod */ @Serializable -data class PostTimetableMovedLessonsRequest( + +data class PostTimetableMovedLessonsRequest ( + @SerialName(value = "date") @Required val date: kotlin.String?, + @SerialName(value = "lessonIds") @Required val lessonIds: kotlin.collections.List, + @SerialName(value = "comment") val comment: kotlin.String? = null, + @SerialName(value = "room") val room: kotlin.String? = null, + @SerialName(value = "startingDay") val startingDay: kotlin.String? = null, - @SerialName(value = "startingPeriod") val startingPeriod: kotlin.String? = null, -) + + @SerialName(value = "startingPeriod") val startingPeriod: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutions200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutions200Response.kt index 4dd3059..076944e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutions200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutions200Response.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param comment * @param date * @param id * @param substituter */ @Serializable -data class PostTimetableSubstitutions200Response( + +data class PostTimetableSubstitutions200Response ( + @SerialName(value = "comment") @Required val comment: kotlin.String?, + @SerialName(value = "date") @Required val date: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, - @SerialName(value = "substituter") @Required val substituter: kotlin.String?, -) + + @SerialName(value = "substituter") @Required val substituter: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutionsManualRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutionsManualRequest.kt index f053b36..3f2d70f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutionsManualRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutionsManualRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cohortId * @param date * @param periodId @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param comment */ @Serializable -data class PostTimetableSubstitutionsManualRequest( + +data class PostTimetableSubstitutionsManualRequest ( + @SerialName(value = "cohortId") @Required val cohortId: kotlin.String?, + @SerialName(value = "date") @Required val date: kotlin.String?, + @SerialName(value = "periodId") @Required val periodId: kotlin.String?, + @SerialName(value = "subjectId") @Required val subjectId: kotlin.String?, + @SerialName(value = "substituter") @Required val substituter: kotlin.String?, + @SerialName(value = "teacherId") @Required val teacherId: kotlin.String?, - @SerialName(value = "comment") val comment: kotlin.String? = null, -) + + @SerialName(value = "comment") val comment: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutionsRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutionsRequest.kt index 79294c1..2c12222 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutionsRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableSubstitutionsRequest.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param date * @param lessonIds * @param comment * @param substituter */ @Serializable -data class PostTimetableSubstitutionsRequest( + +data class PostTimetableSubstitutionsRequest ( + @SerialName(value = "date") @Required val date: kotlin.String?, + @SerialName(value = "lessonIds") @Required val lessonIds: kotlin.collections.List, + @SerialName(value = "comment") val comment: kotlin.String? = null, - @SerialName(value = "substituter") val substituter: kotlin.String? = null, -) + + @SerialName(value = "substituter") val substituter: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableTimetablesCleanupOrphanedCohorts200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableTimetablesCleanupOrphanedCohorts200Response.kt index 57673c8..f228fd2 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableTimetablesCleanupOrphanedCohorts200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostTimetableTimetablesCleanupOrphanedCohorts200Response.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param affectedUserCount * @param deletedCohortIds * @param deletedTeacherIds */ @Serializable -data class PostTimetableTimetablesCleanupOrphanedCohorts200Response( + +data class PostTimetableTimetablesCleanupOrphanedCohorts200Response ( + @SerialName(value = "affectedUserCount") @Required val affectedUserCount: kotlin.Double?, + @SerialName(value = "deletedCohortIds") @Required val deletedCohortIds: kotlin.collections.List, - @SerialName(value = "deletedTeacherIds") @Required val deletedTeacherIds: kotlin.collections.List, -) + + @SerialName(value = "deletedTeacherIds") @Required val deletedTeacherIds: kotlin.collections.List + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiDevices201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiDevices201Response.kt index 2502137..15578f6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiDevices201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiDevices201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param adminNotes * @param banned * @param createdAt @@ -34,15 +41,31 @@ import kotlinx.serialization.encoding.* * @param wifiUserId */ @Serializable -data class PostWifiDevices201Response( + +data class PostWifiDevices201Response ( + @SerialName(value = "adminNotes") @Required val adminNotes: kotlin.String?, + @SerialName(value = "banned") @Required val banned: kotlin.Boolean, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "lastActiveAt") @Required val lastActiveAt: kotlin.String?, + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String, + @SerialName(value = "nickname") @Required val nickname: kotlin.String?, + @SerialName(value = "reportedHostname") @Required val reportedHostname: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, - @SerialName(value = "wifiUserId") @Required val wifiUserId: kotlin.String?, -) + + @SerialName(value = "wifiUserId") @Required val wifiUserId: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiDevicesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiDevicesRequest.kt index 10809e5..31f2081 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiDevicesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiDevicesRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param macAddress * @param adminNotes * @param banned @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param wifiUserId */ @Serializable -data class PostWifiDevicesRequest( + +data class PostWifiDevicesRequest ( + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String, + @SerialName(value = "adminNotes") val adminNotes: kotlin.String? = null, + @SerialName(value = "banned") val banned: kotlin.Boolean? = null, + @SerialName(value = "nickname") val nickname: kotlin.String? = null, - @SerialName(value = "wifiUserId") val wifiUserId: kotlin.String? = null, -) + + @SerialName(value = "wifiUserId") val wifiUserId: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiNas201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiNas201Response.kt index 83be6e1..3bb9a50 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiNas201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiNas201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param comment * @param createdAt * @param id @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param updatedAt */ @Serializable -data class PostWifiNas201Response( + +data class PostWifiNas201Response ( + @SerialName(value = "comment") @Required val comment: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "ipAddress") @Required val ipAddress: kotlin.String, + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String, - @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, -) + + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiNasRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiNasRequest.kt index bcaec7e..b5fb9fd 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiNasRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiNasRequest.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param ipAddress * @param macAddress * @param comment */ @Serializable -data class PostWifiNasRequest( + +data class PostWifiNasRequest ( + @SerialName(value = "ipAddress") @Required val ipAddress: kotlin.String?, + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String, - @SerialName(value = "comment") val comment: kotlin.String? = null, -) + + @SerialName(value = "comment") val comment: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRadiusAuthorize200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRadiusAuthorize200Response.kt index bc3ad4a..932a44c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRadiusAuthorize200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRadiusAuthorize200Response.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param cleartextPassword * @param controlCleartextPassword * @param sessionTimeout */ @Serializable -data class PostWifiRadiusAuthorize200Response( + +data class PostWifiRadiusAuthorize200Response ( + @SerialName(value = "Cleartext-Password") @Required val cleartextPassword: kotlin.String?, + @SerialName(value = "control:Cleartext-Password") @Required val controlCleartextPassword: kotlin.String?, - @SerialName(value = "Session-Timeout") @Required val sessionTimeout: kotlin.Int?, -) + + @SerialName(value = "Session-Timeout") @Required val sessionTimeout: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRadiusAuthorizeRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRadiusAuthorizeRequest.kt index 1b8f32f..3066092 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRadiusAuthorizeRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRadiusAuthorizeRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param source * @param username * @param destination @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param sharedSecret */ @Serializable -data class PostWifiRadiusAuthorizeRequest( + +data class PostWifiRadiusAuthorizeRequest ( + @SerialName(value = "source") @Required val source: kotlin.String?, + @SerialName(value = "username") @Required val username: kotlin.String?, + @SerialName(value = "destination") val destination: kotlin.String? = null, + @SerialName(value = "IP") val IP: kotlin.String? = null, + @SerialName(value = "NAS") val NAS: kotlin.String? = null, + @SerialName(value = "password") val password: kotlin.String? = null, - @SerialName(value = "sharedSecret") val sharedSecret: kotlin.String? = null, -) + + @SerialName(value = "sharedSecret") val sharedSecret: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRoleSpeedProfiles201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRoleSpeedProfiles201Response.kt index 293a80a..ef09067 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRoleSpeedProfiles201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRoleSpeedProfiles201Response.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param priority * @param roleName * @param speedProfileId */ @Serializable -data class PostWifiRoleSpeedProfiles201Response( + +data class PostWifiRoleSpeedProfiles201Response ( + @SerialName(value = "priority") @Required val priority: kotlin.Int, + @SerialName(value = "roleName") @Required val roleName: kotlin.String, - @SerialName(value = "speedProfileId") @Required val speedProfileId: kotlin.String, -) + + @SerialName(value = "speedProfileId") @Required val speedProfileId: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRoleSpeedProfilesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRoleSpeedProfilesRequest.kt index 51f10f7..119c95b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRoleSpeedProfilesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiRoleSpeedProfilesRequest.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param roleName * @param speedProfileId * @param priority */ @Serializable -data class PostWifiRoleSpeedProfilesRequest( + +data class PostWifiRoleSpeedProfilesRequest ( + @SerialName(value = "roleName") @Required val roleName: kotlin.String?, + @SerialName(value = "speedProfileId") @Required val speedProfileId: kotlin.String?, - @SerialName(value = "priority") val priority: kotlin.Int? = 0, -) + + @SerialName(value = "priority") val priority: kotlin.Int? = 0 + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelf201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelf201Response.kt index b01b2f3..65a4188 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelf201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelf201Response.kt @@ -8,31 +8,48 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.GetWifiSelf200ResponseSpeedLimit import hu.petrik.filcapp.api.model.PostWifiSelf201ResponseDevicesInner + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param banned * @param devices * @param speedLimit * @param username */ @Serializable -data class PostWifiSelf201Response( + +data class PostWifiSelf201Response ( + @SerialName(value = "banned") @Required val banned: kotlin.Boolean, + @SerialName(value = "devices") @Required val devices: kotlin.collections.List, + @SerialName(value = "speedLimit") @Required val speedLimit: GetWifiSelf200ResponseSpeedLimit, - @SerialName(value = "username") @Required val username: kotlin.String, -) + + @SerialName(value = "username") @Required val username: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelf201ResponseDevicesInner.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelf201ResponseDevicesInner.kt index bad5c68..a351cf0 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelf201ResponseDevicesInner.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelf201ResponseDevicesInner.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param banned * @param id * @param lastActiveAt @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param reportedHostname */ @Serializable -data class PostWifiSelf201ResponseDevicesInner( + +data class PostWifiSelf201ResponseDevicesInner ( + @SerialName(value = "banned") @Required val banned: kotlin.Boolean, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "lastActiveAt") @Required val lastActiveAt: kotlin.String?, + @SerialName(value = "macAddress") @Required val macAddress: kotlin.String, + @SerialName(value = "nickname") @Required val nickname: kotlin.String?, - @SerialName(value = "reportedHostname") @Required val reportedHostname: kotlin.String?, -) + + @SerialName(value = "reportedHostname") @Required val reportedHostname: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelfRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelfRequest.kt index 3287042..7b9fc54 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelfRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSelfRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param password */ @Serializable -data class PostWifiSelfRequest( - @SerialName(value = "password") @Required val password: kotlin.String?, -) + +data class PostWifiSelfRequest ( + + @SerialName(value = "password") @Required val password: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSpeedProfiles201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSpeedProfiles201Response.kt index 6c8fa71..9d6b9e5 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSpeedProfiles201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSpeedProfiles201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param downloadSpeedMbps * @param id * @param isWlanDefault @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param uploadSpeedMbps */ @Serializable -data class PostWifiSpeedProfiles201Response( + +data class PostWifiSpeedProfiles201Response ( + @SerialName(value = "downloadSpeedMbps") @Required val downloadSpeedMbps: kotlin.Int?, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "isWlanDefault") @Required val isWlanDefault: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String, - @SerialName(value = "uploadSpeedMbps") @Required val uploadSpeedMbps: kotlin.Int?, -) + + @SerialName(value = "uploadSpeedMbps") @Required val uploadSpeedMbps: kotlin.Int? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSpeedProfilesRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSpeedProfilesRequest.kt index 64f6d84..69c77fe 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSpeedProfilesRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiSpeedProfilesRequest.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param name * @param downloadSpeedMbps * @param uploadSpeedMbps */ @Serializable -data class PostWifiSpeedProfilesRequest( + +data class PostWifiSpeedProfilesRequest ( + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "downloadSpeedMbps") val downloadSpeedMbps: kotlin.Int? = -1, - @SerialName(value = "uploadSpeedMbps") val uploadSpeedMbps: kotlin.Int? = -1, -) + + @SerialName(value = "uploadSpeedMbps") val uploadSpeedMbps: kotlin.Int? = -1 + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiUsers201Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiUsers201Response.kt index 768cfd8..b10bc43 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiUsers201Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiUsers201Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param allowedMacAddresses * @param banned * @param comment @@ -36,17 +43,35 @@ import kotlinx.serialization.encoding.* * @param username */ @Serializable -data class PostWifiUsers201Response( + +data class PostWifiUsers201Response ( + @SerialName(value = "allowedMacAddresses") @Required val allowedMacAddresses: kotlin.collections.List?, + @SerialName(value = "banned") @Required val banned: kotlin.Boolean, + @SerialName(value = "comment") @Required val comment: kotlin.String?, + @SerialName(value = "createdAt") @Required val createdAt: kotlin.String, + @SerialName(value = "createdBy") @Required val createdBy: kotlin.String?, + @SerialName(value = "creatorName") @Required val creatorName: kotlin.String?, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "lastActiveAt") @Required val lastActiveAt: kotlin.String?, + @SerialName(value = "speedProfileId") @Required val speedProfileId: kotlin.String?, + @SerialName(value = "updatedAt") @Required val updatedAt: kotlin.String, + @SerialName(value = "userId") @Required val userId: kotlin.String?, - @SerialName(value = "username") @Required val username: kotlin.String, -) + + @SerialName(value = "username") @Required val username: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiUsersRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiUsersRequest.kt index 2fe989f..ff0527e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiUsersRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PostWifiUsersRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param password * @param username * @param allowedMacAddresses @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param userId */ @Serializable -data class PostWifiUsersRequest( + +data class PostWifiUsersRequest ( + @SerialName(value = "password") @Required val password: kotlin.String?, + @SerialName(value = "username") @Required val username: kotlin.String?, + @SerialName(value = "allowedMacAddresses") val allowedMacAddresses: kotlin.collections.List? = null, + @SerialName(value = "comment") val comment: kotlin.String? = null, + @SerialName(value = "speedProfileId") val speedProfileId: kotlin.String? = null, - @SerialName(value = "userId") val userId: kotlin.String? = null, -) + + @SerialName(value = "userId") val userId: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockCardsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockCardsByIdRequest.kt index bb4aa6e..0015dfc 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockCardsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockCardsByIdRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param name * @param userId * @param authorizedDeviceIds @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param frozen */ @Serializable -data class PutDoorlockCardsByIdRequest( + +data class PutDoorlockCardsByIdRequest ( + @SerialName(value = "name") @Required val name: kotlin.String?, + @SerialName(value = "userId") @Required val userId: kotlin.String?, + @SerialName(value = "authorizedDeviceIds") val authorizedDeviceIds: kotlin.collections.List? = null, + @SerialName(value = "enabled") val enabled: kotlin.Boolean? = true, - @SerialName(value = "frozen") val frozen: kotlin.Boolean? = false, -) + + @SerialName(value = "frozen") val frozen: kotlin.Boolean? = false + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockDevicesByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockDevicesByIdRequest.kt index 0eea39e..6750c3a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockDevicesByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockDevicesByIdRequest.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param apiToken * @param name * @param lastResetReason * @param location */ @Serializable -data class PutDoorlockDevicesByIdRequest( + +data class PutDoorlockDevicesByIdRequest ( + @SerialName(value = "apiToken") @Required val apiToken: kotlin.String, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "lastResetReason") val lastResetReason: kotlin.String? = null, - @SerialName(value = "location") val location: kotlin.String? = null, -) + + @SerialName(value = "location") val location: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockSelfCardsByIdFrozenRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockSelfCardsByIdFrozenRequest.kt index 88ac129..ac3c4b6 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockSelfCardsByIdFrozenRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutDoorlockSelfCardsByIdFrozenRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param frozen */ @Serializable -data class PutDoorlockSelfCardsByIdFrozenRequest( - @SerialName(value = "frozen") @Required val frozen: kotlin.Boolean, -) + +data class PutDoorlockSelfCardsByIdFrozenRequest ( + + @SerialName(value = "frozen") @Required val frozen: kotlin.Boolean + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutKioskByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutKioskByIdRequest.kt index 25794a8..409990e 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutKioskByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutKioskByIdRequest.kt @@ -8,46 +8,56 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model import hu.petrik.filcapp.api.model.PostKioskRequestConfig + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param config * @param enabled * @param kind * @param name */ @Serializable -data class PutKioskByIdRequest( + +data class PutKioskByIdRequest ( + @SerialName(value = "config") val config: PostKioskRequestConfig? = null, + @SerialName(value = "enabled") val enabled: kotlin.Boolean? = null, + @SerialName(value = "kind") val kind: PutKioskByIdRequest.Kind? = null, - @SerialName(value = "name") val name: kotlin.String? = null, + + @SerialName(value = "name") val name: kotlin.String? = null + ) { + /** - * - * * Values: tv,navigator */ @Serializable - enum class Kind( - val value: kotlin.String, - ) { - @SerialName(value = "tv") - tv("tv"), - - @SerialName(value = "navigator") - navigator("navigator"), + enum class Kind(val value: kotlin.String) { + @SerialName(value = "tv") tv("tv"), + @SerialName(value = "navigator") navigator("navigator"); + override fun toString(): kotlin.String = value } + } + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorBuildingsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorBuildingsByIdRequest.kt index afdcf10..05d8758 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorBuildingsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorBuildingsByIdRequest.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param description * @param name * @param x * @param y */ @Serializable -data class PutNavigatorBuildingsByIdRequest( + +data class PutNavigatorBuildingsByIdRequest ( + @SerialName(value = "description") val description: kotlin.String? = null, + @SerialName(value = "name") val name: kotlin.String? = null, + @SerialName(value = "x") val x: kotlin.Double? = null, - @SerialName(value = "y") val y: kotlin.Double? = null, -) + + @SerialName(value = "y") val y: kotlin.Double? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomTypesByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomTypesByIdRequest.kt index 06d67ab..5ff29a8 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomTypesByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomTypesByIdRequest.kt @@ -8,25 +8,40 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param colorhex * @param name */ @Serializable -data class PutNavigatorClassroomTypesByIdRequest( + +data class PutNavigatorClassroomTypesByIdRequest ( + @SerialName(value = "colorhex") val colorhex: kotlin.String? = null, - @SerialName(value = "name") val name: kotlin.String? = null, -) + + @SerialName(value = "name") val name: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomsById200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomsById200Response.kt index 2aee7b5..3b52fad 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomsById200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomsById200Response.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param capacity * @param description @@ -39,20 +46,41 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PutNavigatorClassroomsById200Response( + +data class PutNavigatorClassroomsById200Response ( + @SerialName(value = "building_id") @Required val buildingId: kotlin.String, + @SerialName(value = "capacity") @Required val capacity: kotlin.Int?, + @SerialName(value = "description") @Required val description: kotlin.String, + @SerialName(value = "id") @Required val id: kotlin.String, + @SerialName(value = "mapped") @Required val mapped: kotlin.Boolean, + @SerialName(value = "name") @Required val name: kotlin.String, + @SerialName(value = "rotation") @Required val rotation: kotlin.Double, + @SerialName(value = "short") @Required val short: kotlin.String, + @SerialName(value = "size_x") @Required val sizeX: kotlin.Double, + @SerialName(value = "size_y") @Required val sizeY: kotlin.Double, + @SerialName(value = "size_z") @Required val sizeZ: kotlin.Double, + @SerialName(value = "storey") @Required val storey: kotlin.Int, + @SerialName(value = "type_id") @Required val typeId: kotlin.String?, + @SerialName(value = "x") @Required val x: kotlin.Double, - @SerialName(value = "y") @Required val y: kotlin.Double, -) + + @SerialName(value = "y") @Required val y: kotlin.Double + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomsByIdRequest.kt index d78e4e9..df0487f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorClassroomsByIdRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param capacity * @param description @@ -37,18 +44,37 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PutNavigatorClassroomsByIdRequest( + +data class PutNavigatorClassroomsByIdRequest ( + @SerialName(value = "building_id") val buildingId: kotlin.String? = null, + @SerialName(value = "capacity") val capacity: kotlin.Int? = null, + @SerialName(value = "description") val description: kotlin.String? = null, + @SerialName(value = "name") val name: kotlin.String? = null, + @SerialName(value = "rotation") val rotation: kotlin.Double? = null, + @SerialName(value = "short") val short: kotlin.String? = null, + @SerialName(value = "size_x") val sizeX: kotlin.Double? = null, + @SerialName(value = "size_y") val sizeY: kotlin.Double? = null, + @SerialName(value = "size_z") val sizeZ: kotlin.Double? = null, + @SerialName(value = "storey") val storey: kotlin.Int? = null, + @SerialName(value = "type_id") val typeId: kotlin.String? = null, + @SerialName(value = "x") val x: kotlin.Double? = null, - @SerialName(value = "y") val y: kotlin.Double? = null, -) + + @SerialName(value = "y") val y: kotlin.Double? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorCorridorsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorCorridorsByIdRequest.kt index e660914..8a57823 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorCorridorsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorCorridorsByIdRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param barrierFree * @param buildingId * @param isOutdoor @@ -34,15 +41,31 @@ import kotlinx.serialization.encoding.* * @param y2 */ @Serializable -data class PutNavigatorCorridorsByIdRequest( + +data class PutNavigatorCorridorsByIdRequest ( + @SerialName(value = "barrier_free") val barrierFree: kotlin.Boolean? = null, + @SerialName(value = "building_id") val buildingId: kotlin.String? = null, + @SerialName(value = "is_outdoor") val isOutdoor: kotlin.Boolean? = null, + @SerialName(value = "name") val name: kotlin.String? = null, + @SerialName(value = "storey") val storey: kotlin.Int? = null, + @SerialName(value = "width") val width: kotlin.Double? = null, + @SerialName(value = "x1") val x1: kotlin.Double? = null, + @SerialName(value = "x2") val x2: kotlin.Double? = null, + @SerialName(value = "y1") val y1: kotlin.Double? = null, - @SerialName(value = "y2") val y2: kotlin.Double? = null, -) + + @SerialName(value = "y2") val y2: kotlin.Double? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorLiftsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorLiftsByIdRequest.kt index b137739..5325961 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorLiftsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorLiftsByIdRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param maxStorey * @param minStorey @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PutNavigatorLiftsByIdRequest( + +data class PutNavigatorLiftsByIdRequest ( + @SerialName(value = "building_id") val buildingId: kotlin.String? = null, + @SerialName(value = "max_storey") val maxStorey: kotlin.Int? = null, + @SerialName(value = "min_storey") val minStorey: kotlin.Int? = null, + @SerialName(value = "name") val name: kotlin.String? = null, + @SerialName(value = "x") val x: kotlin.Double? = null, - @SerialName(value = "y") val y: kotlin.Double? = null, -) + + @SerialName(value = "y") val y: kotlin.Double? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorStairsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorStairsByIdRequest.kt index 2b17cd2..11e26e2 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorStairsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorStairsByIdRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param buildingId * @param maxStorey * @param minStorey @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param y */ @Serializable -data class PutNavigatorStairsByIdRequest( + +data class PutNavigatorStairsByIdRequest ( + @SerialName(value = "building_id") val buildingId: kotlin.String? = null, + @SerialName(value = "max_storey") val maxStorey: kotlin.Int? = null, + @SerialName(value = "min_storey") val minStorey: kotlin.Int? = null, + @SerialName(value = "name") val name: kotlin.String? = null, + @SerialName(value = "rotation") val rotation: kotlin.Double? = null, + @SerialName(value = "x") val x: kotlin.Double? = null, - @SerialName(value = "y") val y: kotlin.Double? = null, -) + + @SerialName(value = "y") val y: kotlin.Double? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorTranslationsByLangByKeyRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorTranslationsByLangByKeyRequest.kt index 3ae990d..5ff712c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorTranslationsByLangByKeyRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutNavigatorTranslationsByLangByKeyRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param text */ @Serializable -data class PutNavigatorTranslationsByLangByKeyRequest( - @SerialName(value = "text") @Required val text: kotlin.String?, -) + +data class PutNavigatorTranslationsByLangByKeyRequest ( + + @SerialName(value = "text") @Required val text: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutTimetableMovedLessonsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutTimetableMovedLessonsByIdRequest.kt index 0699cea..39fbac1 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutTimetableMovedLessonsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutTimetableMovedLessonsByIdRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param comment * @param date * @param lessonIds @@ -30,11 +37,23 @@ import kotlinx.serialization.encoding.* * @param startingPeriod */ @Serializable -data class PutTimetableMovedLessonsByIdRequest( + +data class PutTimetableMovedLessonsByIdRequest ( + @SerialName(value = "comment") val comment: kotlin.String? = null, + @SerialName(value = "date") val date: kotlin.String? = null, + @SerialName(value = "lessonIds") val lessonIds: kotlin.collections.List? = null, + @SerialName(value = "room") val room: kotlin.String? = null, + @SerialName(value = "startingDay") val startingDay: kotlin.String? = null, - @SerialName(value = "startingPeriod") val startingPeriod: kotlin.String? = null, -) + + @SerialName(value = "startingPeriod") val startingPeriod: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutTimetableSubstitutionsByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutTimetableSubstitutionsByIdRequest.kt index 8aeb3d9..fac1a6c 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutTimetableSubstitutionsByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutTimetableSubstitutionsByIdRequest.kt @@ -8,29 +8,46 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param lessonIds * @param comment * @param date * @param substituter */ @Serializable -data class PutTimetableSubstitutionsByIdRequest( + +data class PutTimetableSubstitutionsByIdRequest ( + @SerialName(value = "lessonIds") @Required val lessonIds: kotlin.collections.List?, + @SerialName(value = "comment") val comment: kotlin.String? = null, + @SerialName(value = "date") val date: kotlin.String? = null, - @SerialName(value = "substituter") val substituter: kotlin.String? = null, -) + + @SerialName(value = "substituter") val substituter: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiDevicesByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiDevicesByIdRequest.kt index 8dede6c..3dd072a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiDevicesByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiDevicesByIdRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param adminNotes * @param banned * @param macAddress @@ -29,10 +36,21 @@ import kotlinx.serialization.encoding.* * @param wifiUserId */ @Serializable -data class PutWifiDevicesByIdRequest( + +data class PutWifiDevicesByIdRequest ( + @SerialName(value = "adminNotes") val adminNotes: kotlin.String? = null, + @SerialName(value = "banned") val banned: kotlin.Boolean? = null, + @SerialName(value = "macAddress") val macAddress: kotlin.String? = null, + @SerialName(value = "nickname") val nickname: kotlin.String? = null, - @SerialName(value = "wifiUserId") val wifiUserId: kotlin.String? = null, -) + + @SerialName(value = "wifiUserId") val wifiUserId: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiNasByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiNasByIdRequest.kt index ea812b1..ddacd21 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiNasByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiNasByIdRequest.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param comment * @param ipAddress * @param macAddress */ @Serializable -data class PutWifiNasByIdRequest( + +data class PutWifiNasByIdRequest ( + @SerialName(value = "comment") val comment: kotlin.String? = null, + @SerialName(value = "ipAddress") val ipAddress: kotlin.String? = null, - @SerialName(value = "macAddress") val macAddress: kotlin.String? = null, -) + + @SerialName(value = "macAddress") val macAddress: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiRoleSpeedProfilesByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiRoleSpeedProfilesByIdRequest.kt index af99e70..4b60c4a 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiRoleSpeedProfilesByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiRoleSpeedProfilesByIdRequest.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param priority * @param roleName * @param speedProfileId */ @Serializable -data class PutWifiRoleSpeedProfilesByIdRequest( + +data class PutWifiRoleSpeedProfilesByIdRequest ( + @SerialName(value = "priority") val priority: kotlin.Int? = 0, + @SerialName(value = "roleName") val roleName: kotlin.String? = null, - @SerialName(value = "speedProfileId") val speedProfileId: kotlin.String? = null, -) + + @SerialName(value = "speedProfileId") val speedProfileId: kotlin.String? = null + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfDevicesByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfDevicesByIdRequest.kt index 45ebeb7..1107de4 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfDevicesByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfDevicesByIdRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param nickname */ @Serializable -data class PutWifiSelfDevicesByIdRequest( - @SerialName(value = "nickname") @Required val nickname: kotlin.String?, -) + +data class PutWifiSelfDevicesByIdRequest ( + + @SerialName(value = "nickname") @Required val nickname: kotlin.String? + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfPassword200Response.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfPassword200Response.kt index ff22c65..1c13a42 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfPassword200Response.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfPassword200Response.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param success */ @Serializable -data class PutWifiSelfPassword200Response( - @SerialName(value = "success") @Required val success: kotlin.Boolean, -) + +data class PutWifiSelfPassword200Response ( + + @SerialName(value = "success") @Required val success: kotlin.Boolean + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfPasswordRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfPasswordRequest.kt index 89f3ce7..3f11bb8 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfPasswordRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSelfPasswordRequest.kt @@ -8,23 +8,37 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param newPassword */ @Serializable -data class PutWifiSelfPasswordRequest( - @SerialName(value = "newPassword") @Required val newPassword: kotlin.String, -) + +data class PutWifiSelfPasswordRequest ( + + @SerialName(value = "newPassword") @Required val newPassword: kotlin.String + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSpeedProfilesByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSpeedProfilesByIdRequest.kt index 6dcf3f5..ee6e19f 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSpeedProfilesByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiSpeedProfilesByIdRequest.kt @@ -8,27 +8,43 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param downloadSpeedMbps * @param name * @param uploadSpeedMbps */ @Serializable -data class PutWifiSpeedProfilesByIdRequest( + +data class PutWifiSpeedProfilesByIdRequest ( + @SerialName(value = "downloadSpeedMbps") val downloadSpeedMbps: kotlin.Int? = -1, + @SerialName(value = "name") val name: kotlin.String? = null, - @SerialName(value = "uploadSpeedMbps") val uploadSpeedMbps: kotlin.Int? = -1, -) + + @SerialName(value = "uploadSpeedMbps") val uploadSpeedMbps: kotlin.Int? = -1 + +) { + + +} + diff --git a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiUsersByIdRequest.kt b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiUsersByIdRequest.kt index 5083011..546995b 100644 --- a/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiUsersByIdRequest.kt +++ b/composeApp/src/commonMain/kotlin/hu/petrik/filcapp/api/model/PutWifiUsersByIdRequest.kt @@ -8,20 +8,27 @@ @file:Suppress( "ArrayInDataClass", + "DuplicatedCode", "EnumEntryName", "RemoveRedundantQualifierName", + "RemoveRedundantCallsOfConversionMethods", + "REDUNDANT_CALL_OF_CONVERSION_METHOD", + "RedundantUnitReturnType", + "RemoveEmptyClassBody", + "UnnecessaryVariable", "UnusedImport", + "UnnecessaryVariable", + "unused" ) package hu.petrik.filcapp.api.model + import kotlinx.serialization.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* /** - * - * * @param allowedMacAddresses * @param comment * @param password @@ -31,12 +38,25 @@ import kotlinx.serialization.encoding.* * @param banned */ @Serializable -data class PutWifiUsersByIdRequest( + +data class PutWifiUsersByIdRequest ( + @SerialName(value = "allowedMacAddresses") val allowedMacAddresses: kotlin.collections.List? = null, + @SerialName(value = "comment") val comment: kotlin.String? = null, + @SerialName(value = "password") val password: kotlin.String? = null, + @SerialName(value = "speedProfileId") val speedProfileId: kotlin.String? = null, + @SerialName(value = "userId") val userId: kotlin.String? = null, + @SerialName(value = "username") val username: kotlin.String? = null, - @SerialName(value = "banned") val banned: kotlin.Boolean? = null, -) + + @SerialName(value = "banned") val banned: kotlin.Boolean? = null + +) { + + +} + diff --git a/openapi/chronos-openapi.json b/openapi/chronos-openapi.json new file mode 100644 index 0000000..7156b2d --- /dev/null +++ b/openapi/chronos-openapi.json @@ -0,0 +1,61909 @@ +{ + "components": { + "securitySchemes": { + "sessionAuth": { + "in": "cookie", + "name": "filc.session_token", + "type": "apiKey" + } + } + }, + "info": { + "description": "API for consumption by the Filc app family.", + "title": "Chronos backend API", + "version": "0.0.1" + }, + "servers": [ + { + "description": "chronos", + "url": "https://filc.petrik.hu/api" + }, + { + "description": "Local Server", + "url": "http://localhost:3000/api" + } + ], + "openapi": "3.1.1", + "paths": { + "/activity-log": { + "get": { + "operationId": "getActivityLog", + "description": "List generic admin activity log entries", + "tags": [ + "Activity log" + ], + "parameters": [ + { + "name": "action", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "actorId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "entityType", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "from", + "in": "query", + "schema": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 200, + "default": 50 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "to", + "in": "query", + "schema": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "actorId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "entityId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entityType": { + "type": "string" + }, + "id": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "ipAddress": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + }, + "userAgent": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "actor": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "id", + "name", + "nickname" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "action", + "actorId", + "createdAt", + "entityId", + "entityType", + "id", + "ipAddress", + "userAgent", + "actor" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/admin/api-keys/{keyId}": { + "delete": { + "operationId": "deleteAdminApiKeysByKeyId", + "description": "Revoke any user's API key", + "tags": [ + "API keys" + ], + "parameters": [ + { + "name": "keyId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "patch": { + "operationId": "patchAdminApiKeysByKeyId", + "description": "Enable or disable any user's API key", + "tags": [ + "API keys" + ], + "parameters": [ + { + "name": "keyId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "required": [ + "enabled" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "expiresAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastRequest": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "ownerEmail": { + "type": "string" + }, + "ownerName": { + "type": "string" + }, + "prefix": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "referenceId": { + "type": "string" + }, + "requestCount": { + "type": "number" + }, + "start": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "enabled", + "expiresAt", + "id", + "lastRequest", + "name", + "ownerEmail", + "ownerName", + "prefix", + "referenceId", + "requestCount", + "start", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/admin/api-keys": { + "get": { + "operationId": "getAdminApiKeys", + "description": "List every user's API keys", + "tags": [ + "API keys" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "number", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "number", + "minimum": 0, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "ownerId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "expiresAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastRequest": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "ownerEmail": { + "type": "string" + }, + "ownerName": { + "type": "string" + }, + "prefix": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "referenceId": { + "type": "string" + }, + "requestCount": { + "type": "number" + }, + "start": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "enabled", + "expiresAt", + "id", + "lastRequest", + "name", + "ownerEmail", + "ownerName", + "prefix", + "referenceId", + "requestCount", + "start", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/bug-report": { + "post": { + "operationId": "postBugReport", + "description": "Create a new bug report", + "tags": [ + "Bug Reports" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "minLength": 10, + "maxLength": 5000 + }, + "metadata": { + "type": "object", + "propertyNames": { + "type": "string", + "maxLength": 64 + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + } + }, + "page": { + "type": "string", + "maxLength": 255 + }, + "subject": { + "type": "string", + "minLength": 3, + "maxLength": 200 + } + }, + "required": [ + "description", + "subject" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getBugReport", + "description": "List bug reports with optional filters and paging", + "tags": [ + "Bug Reports" + ], + "parameters": [ + { + "name": "dateFrom", + "in": "query", + "schema": { + "type": "string", + "format": "date-time" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "dateTo", + "in": "query", + "schema": { + "type": "string", + "format": "date-time" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "page", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 9007199254740991, + "default": 1 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string", + "maxLength": 200 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "status", + "in": "query", + "schema": { + "enum": [ + "open", + "in_progress", + "resolved", + "closed" + ], + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "description": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "metadata": { + "anyOf": [ + { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + { + "type": "null" + } + ] + }, + "page": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reporterEmail": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reporterId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "description", + "id", + "metadata", + "page", + "reporterEmail", + "reporterId", + "status", + "subject", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/bug-report/{id}": { + "delete": { + "operationId": "deleteBugReportById", + "description": "Delete a bug report", + "tags": [ + "Bug Reports" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/bug-report/{id}/status": { + "patch": { + "operationId": "patchBugReportByIdStatus", + "description": "Update a bug report status", + "tags": [ + "Bug Reports" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "status": { + "enum": [ + "open", + "in_progress", + "resolved", + "closed" + ], + "type": "string" + } + }, + "required": [ + "status" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "description": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "metadata": { + "anyOf": [ + { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + { + "type": "null" + } + ] + }, + "page": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reporterEmail": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reporterId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "description", + "id", + "metadata", + "page", + "reporterEmail", + "reporterId", + "status", + "subject", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/cohort": { + "get": { + "operationId": "getCohort", + "description": "List all cohorts", + "tags": [ + "Cohort" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classroomIds": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "teacherId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "timetableId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "classroomIds", + "id", + "name", + "short", + "teacherId", + "timetableId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/dashboard/stats": { + "get": { + "operationId": "getDashboardStats", + "description": "Get aggregated dashboard statistics", + "tags": [ + "Dashboard" + ], + "parameters": [ + { + "name": "days", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 365, + "default": 30 + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "stats": { + "type": "object", + "properties": { + "chartData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "date": { + "type": "string" + }, + "movedLessons": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "substitutions": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": [ + "date", + "movedLessons", + "substitutions" + ] + } + }, + "chartTotalMovedLessons": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "chartTotalSubstitutions": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "totalCohorts": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "totalMovedLessons": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "totalRoles": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "totalSubstitutions": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "totalUsers": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": [ + "chartData", + "chartTotalMovedLessons", + "chartTotalSubstitutions", + "totalCohorts", + "totalMovedLessons", + "totalRoles", + "totalSubstitutions", + "totalUsers" + ] + } + }, + "required": [ + "stats" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/doorlock/cards": { + "post": { + "operationId": "postDoorlockCards", + "description": "Create a new access card", + "tags": [ + "Doorlock" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorizedDeviceIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "default": [] + }, + "enabled": { + "type": "boolean", + "default": true + }, + "frozen": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string", + "minLength": 1 + }, + "cardData": { + "type": "string", + "minLength": 1 + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "name", + "cardData", + "userId" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorizedDevices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + } + }, + "cardData": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "frozen": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "owner": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "id", + "name", + "nickname" + ] + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorizedDevices", + "cardData", + "createdAt", + "enabled", + "frozen", + "id", + "name", + "updatedAt", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getDoorlockCards", + "description": "List all access cards", + "tags": [ + "Doorlock" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "authorizedDevices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + } + }, + "cardData": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "frozen": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "owner": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "id", + "name", + "nickname" + ] + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorizedDevices", + "cardData", + "createdAt", + "enabled", + "frozen", + "id", + "name", + "updatedAt", + "userId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/cards/{id}": { + "delete": { + "operationId": "deleteDoorlockCardsById", + "description": "Delete an access card", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putDoorlockCardsById", + "description": "Update an access card", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorizedDeviceIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "default": [] + }, + "enabled": { + "type": "boolean", + "default": true + }, + "frozen": { + "type": "boolean", + "default": false + }, + "name": { + "type": "string", + "minLength": 1 + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "name", + "userId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorizedDevices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + } + }, + "cardData": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "frozen": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "owner": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "id", + "name", + "nickname" + ] + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorizedDevices", + "cardData", + "createdAt", + "enabled", + "frozen", + "id", + "name", + "updatedAt", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/cards/users": { + "get": { + "operationId": "getDoorlockCardsUsers", + "description": "List users eligible for card ownership", + "tags": [ + "Doorlock" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "id", + "name", + "nickname" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/devices": { + "post": { + "operationId": "postDoorlockDevices", + "description": "Create a new doorlock device", + "tags": [ + "Doorlock" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apiToken": { + "type": "string", + "minLength": 32, + "maxLength": 128 + }, + "lastResetReason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "location": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "apiToken", + "name" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apiToken": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastResetReason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "location": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "apiToken", + "createdAt", + "id", + "lastResetReason", + "location", + "name", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getDoorlockDevices", + "description": "List all doorlock devices", + "tags": [ + "Doorlock" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "apiToken": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastResetReason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "location": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "apiToken", + "createdAt", + "id", + "lastResetReason", + "location", + "name", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/devices/{id}": { + "delete": { + "operationId": "deleteDoorlockDevicesById", + "description": "Delete a doorlock device", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putDoorlockDevicesById", + "description": "Update an existing doorlock device", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apiToken": { + "type": "string", + "minLength": 32, + "maxLength": 128 + }, + "lastResetReason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "location": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "apiToken", + "name" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apiToken": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastResetReason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "location": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "apiToken", + "createdAt", + "id", + "lastResetReason", + "location", + "name", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/devices/{id}/stats": { + "get": { + "operationId": "getDoorlockDevicesByIdStats", + "description": "Get device health statistics", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "stats": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deviceMeta": { + "type": "object", + "properties": { + "debug": { + "type": "object", + "properties": { + "deviceState": { + "enum": [ + "booting", + "error", + "idle", + "updating" + ], + "type": "string" + }, + "errors": { + "type": "object", + "properties": { + "db": { + "type": "boolean" + }, + "nfc": { + "type": "boolean" + }, + "ota": { + "type": "boolean" + }, + "sd": { + "type": "boolean" + }, + "wifi": { + "type": "boolean" + } + }, + "required": [ + "db", + "nfc", + "ota", + "sd", + "wifi" + ] + }, + "lastResetReason": { + "type": "string" + } + }, + "required": [ + "deviceState", + "errors", + "lastResetReason" + ] + }, + "fwVersion": { + "type": "string" + }, + "ramFree": { + "type": "number" + }, + "storage": { + "type": "object", + "properties": { + "total": { + "type": "number" + }, + "used": { + "type": "number" + } + }, + "required": [ + "total", + "used" + ] + }, + "uptime": { + "type": "number" + } + }, + "required": [ + "debug", + "fwVersion", + "ramFree", + "storage", + "uptime" + ] + }, + "id": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "timestamp": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "deviceMeta", + "id", + "timestamp" + ] + } + } + }, + "required": [ + "stats" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/devices/{id}/update": { + "post": { + "operationId": "postDoorlockDevicesByIdUpdate", + "description": "Trigger an OTA update on a specific device", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "url": { + "type": "string", + "pattern": "^https:\\/\\/" + } + }, + "required": [ + "url" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ok": { + "const": true + } + }, + "required": [ + "ok" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/devices/update": { + "post": { + "operationId": "postDoorlockDevicesUpdate", + "description": "Trigger an OTA update on all devices", + "tags": [ + "Doorlock" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "url": { + "type": "string", + "pattern": "^https:\\/\\/" + } + }, + "required": [ + "url" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": [ + "count" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/logs/export": { + "get": { + "operationId": "getDoorlockLogsExport", + "description": "Export doorlock audit log entries (attendance data) as a CSV file over an optional date range.", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "cardId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "deviceId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "from", + "in": "query", + "schema": { + "type": "string", + "format": "date-time" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "granted", + "in": "query", + "schema": { + "enum": [ + "true", + "false" + ], + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "to", + "in": "query", + "schema": { + "type": "string", + "format": "date-time" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "userId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "contentMediaType": "*/*" + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/logs": { + "get": { + "operationId": "getDoorlockLogs", + "description": "List audit log entries", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "cardId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "deviceId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "from", + "in": "query", + "schema": { + "type": "string", + "format": "date-time" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "granted", + "in": "query", + "schema": { + "enum": [ + "true", + "false" + ], + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 1000, + "default": 500 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "to", + "in": "query", + "schema": { + "type": "string", + "format": "date-time" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "userId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "buttonPressed": { + "type": "boolean" + }, + "cardData": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "cardId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "deviceId": { + "type": "string", + "format": "uuid" + }, + "id": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "result": { + "type": "boolean" + }, + "timestamp": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "card": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + }, + { + "type": "null" + } + ] + }, + "device": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + }, + { + "type": "null" + } + ] + }, + "owner": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "id", + "name", + "nickname" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "buttonPressed", + "cardData", + "cardId", + "deviceId", + "id", + "result", + "timestamp", + "userId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/self/cards/{id}/activate": { + "post": { + "operationId": "postDoorlockSelfCardsByIdActivate", + "description": "Activate an authorized device using a user-owned virtual card", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "format": "uuid" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "buttonPressed": { + "type": "boolean" + }, + "cardData": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "cardId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "deviceId": { + "type": "string", + "format": "uuid" + }, + "id": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "result": { + "type": "boolean" + }, + "timestamp": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "buttonPressed", + "cardData", + "cardId", + "deviceId", + "id", + "result", + "timestamp", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/self/cards": { + "get": { + "operationId": "getDoorlockSelfCards", + "description": "List cards owned by the authenticated user", + "tags": [ + "Doorlock" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "authorizedDevices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + } + }, + "cardData": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "frozen": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "owner": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "id", + "name", + "nickname" + ] + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorizedDevices", + "cardData", + "createdAt", + "enabled", + "frozen", + "id", + "name", + "updatedAt", + "userId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/self/cards/{id}/frozen": { + "put": { + "operationId": "putDoorlockSelfCardsByIdFrozen", + "description": "Update the frozen state of a user-owned card", + "tags": [ + "Doorlock" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "frozen": { + "type": "boolean" + } + }, + "required": [ + "frozen" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorizedDevices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + } + }, + "cardData": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "frozen": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "owner": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "id", + "name", + "nickname" + ] + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorizedDevices", + "cardData", + "createdAt", + "enabled", + "frozen", + "id", + "name", + "updatedAt", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/doorlock/stats/overview": { + "get": { + "operationId": "getDoorlockStatsOverview", + "description": "Get aggregated doorlock statistics", + "tags": [ + "Doorlock" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "stats": { + "type": "object", + "properties": { + "doorOpenSeries": { + "type": "array", + "items": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "date": { + "type": "string" + } + }, + "required": [ + "count", + "date" + ] + } + }, + "topUsers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "count", + "id", + "name", + "nickname" + ] + } + }, + "totalCards": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "totalDevices": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "totalSuccessfulOpens": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": [ + "doorOpenSeries", + "topUsers", + "totalCards", + "totalDevices", + "totalSuccessfulOpens" + ] + } + }, + "required": [ + "stats" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/health": { + "get": { + "operationId": "getHealth", + "description": "Readiness probe: answers 200 only when PostgreSQL is reachable.", + "tags": [ + "Health" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "database": { + "const": "up" + }, + "status": { + "const": "ok" + } + }, + "required": [ + "database", + "status" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/kiosk": { + "post": { + "operationId": "postKiosk", + "description": "Register a kiosk", + "tags": [ + "Kiosk" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "config": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "enabled": { + "type": "boolean" + }, + "kind": { + "enum": [ + "tv", + "navigator" + ], + "type": "string" + }, + "machineId": { + "type": "string", + "minLength": 1, + "maxLength": 64 + }, + "name": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "kind", + "machineId", + "name" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "appVersion": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "config": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "kind": { + "type": "string" + }, + "lastSeenAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "lastSeenIp": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "machineId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "appVersion", + "config", + "createdAt", + "enabled", + "id", + "kind", + "lastSeenAt", + "lastSeenIp", + "machineId", + "name", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getKiosk", + "description": "List all kiosks", + "tags": [ + "Kiosk" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "appVersion": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "config": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "kind": { + "type": "string" + }, + "lastSeenAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "lastSeenIp": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "machineId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "appVersion", + "config", + "createdAt", + "enabled", + "id", + "kind", + "lastSeenAt", + "lastSeenIp", + "machineId", + "name", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/kiosk/{id}": { + "delete": { + "operationId": "deleteKioskById", + "description": "Delete a kiosk", + "tags": [ + "Kiosk" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putKioskById", + "description": "Update a kiosk", + "tags": [ + "Kiosk" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "config": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "enabled": { + "type": "boolean" + }, + "kind": { + "enum": [ + "tv", + "navigator" + ], + "type": "string" + }, + "name": { + "type": "string", + "minLength": 1 + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "appVersion": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "config": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "enabled": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "kind": { + "type": "string" + }, + "lastSeenAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "lastSeenIp": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "machineId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "appVersion", + "config", + "createdAt", + "enabled", + "id", + "kind", + "lastSeenAt", + "lastSeenIp", + "machineId", + "name", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/kiosk/departures": { + "post": { + "operationId": "postKioskDepartures", + "description": "Next departure per configured group, trying each stop in order", + "tags": [ + "Kiosk" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string", + "minLength": 1 + }, + "stops": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "properties": { + "routeFilter": { + "anyOf": [ + { + "type": "string", + "minLength": 1 + }, + { + "type": "null" + } + ], + "default": null + }, + "stopId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "stopId" + ] + } + } + }, + "required": [ + "label", + "stops" + ] + } + } + }, + "required": [ + "groups" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "predictedDepartureTime": { + "type": "number" + }, + "routeShortDesc": { + "type": "string" + } + }, + "required": [ + "label", + "predictedDepartureTime", + "routeShortDesc" + ] + }, + { + "type": "null" + } + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/kiosk/heartbeat": { + "post": { + "operationId": "postKioskHeartbeat", + "description": "Record a kiosk heartbeat and report whether the box is registered and enabled", + "tags": [ + "Kiosk" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "appVersion": { + "type": "string", + "minLength": 1, + "maxLength": 64 + }, + "machineId": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + "required": [ + "appVersion", + "machineId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "type": "object", + "properties": { + "registered": { + "const": false + } + }, + "required": [ + "registered" + ] + }, + { + "type": "object", + "properties": { + "enabled": { + "const": false + }, + "kiosk": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "kind": { + "enum": [ + "tv", + "navigator" + ], + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "kind", + "name" + ] + }, + "registered": { + "const": true + } + }, + "required": [ + "enabled", + "kiosk", + "registered" + ] + }, + { + "type": "object", + "properties": { + "enabled": { + "const": true + }, + "kiosk": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "kind": { + "enum": [ + "tv", + "navigator" + ], + "type": "string" + }, + "name": { + "type": "string" + }, + "config": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + } + }, + "required": [ + "id", + "kind", + "name", + "config" + ] + }, + "registered": { + "const": true + } + }, + "required": [ + "enabled", + "kiosk", + "registered" + ] + } + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/kiosk/news/{id}/image": { + "get": { + "operationId": "getKioskNewsByIdImage", + "description": "The image an announcement shows on the kiosk, as stored", + "tags": [ + "Kiosk" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "contentMediaType": "*/*" + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/kiosk/news": { + "get": { + "operationId": "getKioskNews", + "description": "Active, titled, non-cohort-scoped announcements for the TV kiosk marquee", + "tags": [ + "Kiosk" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "body": { + "type": "string" + }, + "highlighted": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "imageVersion": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "title": { + "type": "string" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "body", + "highlighted", + "id", + "imageVersion", + "kioskIds", + "title", + "validFrom", + "validUntil" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/kiosk/petrik-news": { + "get": { + "operationId": "getKioskPetrikNews", + "description": "petrik.hu news for the navigator kiosk, cached for ten minutes", + "tags": [ + "Kiosk" + ], + "parameters": [ + { + "name": "machine", + "in": "query", + "schema": { + "type": "string", + "minLength": 1 + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "body": { + "type": "string" + }, + "imageUrl": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "publishedAt": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "body", + "imageUrl", + "publishedAt", + "title", + "url" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/kiosk/weather": { + "get": { + "operationId": "getKioskWeather", + "description": "Current weather for the TV kiosk, cached for ten minutes", + "tags": [ + "Kiosk" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "precipMm": { + "type": "number" + }, + "tempC": { + "type": "number" + }, + "windKph": { + "type": "number" + } + }, + "required": [ + "icon", + "precipMm", + "tempC", + "windKph" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/buildings": { + "post": { + "operationId": "postNavigatorBuildings", + "description": "Create a campus building", + "tags": [ + "Navigator" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "description", + "name", + "x", + "y" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "description", + "id", + "mapped", + "name", + "x", + "y" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNavigatorBuildings", + "description": "List the campus buildings", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "description", + "id", + "mapped", + "name", + "x", + "y" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/buildings/{id}": { + "delete": { + "operationId": "deleteNavigatorBuildingsById", + "description": "Delete a campus building; its corridors, lifts and stairs cascade with it, but rooms still assigned to it refuse the delete", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putNavigatorBuildingsById", + "description": "Update a campus building", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "description", + "id", + "mapped", + "name", + "x", + "y" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/classrooms": { + "post": { + "operationId": "postNavigatorClassrooms", + "description": "Create a classroom", + "tags": [ + "Navigator" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string", + "minLength": 1 + }, + "capacity": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "description": { + "type": "string" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "type": "string", + "minLength": 1 + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNavigatorClassrooms", + "description": "List the classrooms, including the ones the campus has not placed yet", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/classrooms/{id}": { + "delete": { + "operationId": "deleteNavigatorClassroomsById", + "description": "Delete a classroom; rooms the timetable still uses are refused", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putNavigatorClassroomsById", + "description": "Update a classroom", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string", + "minLength": 1 + }, + "capacity": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "description": { + "type": "string" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "type": "string", + "minLength": 1 + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/classroom-types": { + "post": { + "operationId": "postNavigatorClassroomTypes", + "description": "Create a classroom type", + "tags": [ + "Navigator" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "colorhex": { + "type": "string", + "pattern": "^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$" + }, + "name": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "colorhex", + "name" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "colorhex": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "colorhex", + "createdAt", + "id", + "name", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNavigatorClassroomTypes", + "description": "List the classroom types", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "colorhex": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "colorhex", + "createdAt", + "id", + "name", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/classroom-types/{id}": { + "delete": { + "operationId": "deleteNavigatorClassroomTypesById", + "description": "Delete a classroom type; types still assigned to a classroom are refused", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putNavigatorClassroomTypesById", + "description": "Update a classroom type", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "colorhex": { + "type": "string", + "pattern": "^#[0-9a-fA-F]{6}(?:[0-9a-fA-F]{2})?$" + }, + "name": { + "type": "string", + "minLength": 1 + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "colorhex": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "colorhex", + "createdAt", + "id", + "name", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/corridors": { + "post": { + "operationId": "postNavigatorCorridors", + "description": "Create a corridor", + "tags": [ + "Navigator" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "barrier_free": { + "type": "boolean" + }, + "building_id": { + "type": "string", + "minLength": 1 + }, + "is_outdoor": { + "type": "boolean" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "width": { + "type": "number" + }, + "x1": { + "type": "number" + }, + "x2": { + "type": "number" + }, + "y1": { + "type": "number" + }, + "y2": { + "type": "number" + } + }, + "required": [ + "barrier_free", + "building_id", + "is_outdoor", + "name", + "storey", + "width", + "x1", + "x2", + "y1", + "y2" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "barrier_free": { + "type": "boolean" + }, + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "is_outdoor": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "width": { + "type": "number" + }, + "x1": { + "type": "number" + }, + "x2": { + "type": "number" + }, + "y1": { + "type": "number" + }, + "y2": { + "type": "number" + } + }, + "required": [ + "barrier_free", + "building_id", + "createdAt", + "id", + "is_outdoor", + "name", + "storey", + "updatedAt", + "width", + "x1", + "x2", + "y1", + "y2" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNavigatorCorridors", + "description": "List the corridors", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "barrier_free": { + "type": "boolean" + }, + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "is_outdoor": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "width": { + "type": "number" + }, + "x1": { + "type": "number" + }, + "x2": { + "type": "number" + }, + "y1": { + "type": "number" + }, + "y2": { + "type": "number" + } + }, + "required": [ + "barrier_free", + "building_id", + "createdAt", + "id", + "is_outdoor", + "name", + "storey", + "updatedAt", + "width", + "x1", + "x2", + "y1", + "y2" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/corridors/{id}": { + "delete": { + "operationId": "deleteNavigatorCorridorsById", + "description": "Delete a corridor", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putNavigatorCorridorsById", + "description": "Update a corridor", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "barrier_free": { + "type": "boolean" + }, + "building_id": { + "type": "string", + "minLength": 1 + }, + "is_outdoor": { + "type": "boolean" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "width": { + "type": "number" + }, + "x1": { + "type": "number" + }, + "x2": { + "type": "number" + }, + "y1": { + "type": "number" + }, + "y2": { + "type": "number" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "barrier_free": { + "type": "boolean" + }, + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "is_outdoor": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "width": { + "type": "number" + }, + "x1": { + "type": "number" + }, + "x2": { + "type": "number" + }, + "y1": { + "type": "number" + }, + "y2": { + "type": "number" + } + }, + "required": [ + "barrier_free", + "building_id", + "createdAt", + "id", + "is_outdoor", + "name", + "storey", + "updatedAt", + "width", + "x1", + "x2", + "y1", + "y2" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/export": { + "get": { + "operationId": "getNavigatorExport", + "description": "Export every navigator row (buildings, classroom types, classrooms, corridors, lifts, stairs and translations) as a versioned JSON payload.", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "contentMediaType": "*/*" + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/graph": { + "get": { + "operationId": "getNavigatorGraph", + "description": "The whole campus graph in the upstream wire format, without a session. Only rows the campus has placed on the map appear.", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "buildings": { + "type": "array", + "items": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "description", + "id", + "mapped", + "name", + "x", + "y" + ] + } + }, + "classroom_types": { + "type": "array", + "items": { + "type": "object", + "properties": { + "colorhex": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "colorhex", + "createdAt", + "id", + "name", + "updatedAt" + ] + } + }, + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + } + }, + "corridors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "barrier_free": { + "type": "boolean" + }, + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "is_outdoor": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "width": { + "type": "number" + }, + "x1": { + "type": "number" + }, + "x2": { + "type": "number" + }, + "y1": { + "type": "number" + }, + "y2": { + "type": "number" + } + }, + "required": [ + "barrier_free", + "building_id", + "createdAt", + "id", + "is_outdoor", + "name", + "storey", + "updatedAt", + "width", + "x1", + "x2", + "y1", + "y2" + ] + } + }, + "lifts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "createdAt", + "id", + "max_storey", + "min_storey", + "name", + "updatedAt", + "x", + "y" + ] + } + }, + "stairs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "createdAt", + "id", + "max_storey", + "min_storey", + "name", + "rotation", + "updatedAt", + "x", + "y" + ] + } + } + }, + "required": [ + "buildings", + "classroom_types", + "classrooms", + "corridors", + "lifts", + "stairs" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/import": { + "post": { + "operationId": "postNavigatorImport", + "description": "Insert or update every collection in a navigator export payload by its key, inside one transaction. Rows absent from the payload are never deleted.", + "tags": [ + "Navigator" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentMediaType": "*/*" + } + }, + "required": [ + "file" + ] + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentMediaType": "*/*" + } + }, + "required": [ + "file" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "buildings": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "classrooms": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "classroomTypes": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "corridors": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "lifts": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "stairs": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "translations": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": [ + "buildings", + "classrooms", + "classroomTypes", + "corridors", + "lifts", + "stairs", + "translations" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/lifts": { + "post": { + "operationId": "postNavigatorLifts", + "description": "Create a lift", + "tags": [ + "Navigator" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string", + "minLength": 1 + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string", + "minLength": 1 + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "max_storey", + "min_storey", + "name", + "x", + "y" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "createdAt", + "id", + "max_storey", + "min_storey", + "name", + "updatedAt", + "x", + "y" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNavigatorLifts", + "description": "List the lifts", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "createdAt", + "id", + "max_storey", + "min_storey", + "name", + "updatedAt", + "x", + "y" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/lifts/{id}": { + "delete": { + "operationId": "deleteNavigatorLiftsById", + "description": "Delete a lift", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putNavigatorLiftsById", + "description": "Update a lift", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string", + "minLength": 1 + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string", + "minLength": 1 + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "createdAt", + "id", + "max_storey", + "min_storey", + "name", + "updatedAt", + "x", + "y" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/stairs": { + "post": { + "operationId": "postNavigatorStairs", + "description": "Create a staircase", + "tags": [ + "Navigator" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string", + "minLength": 1 + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string", + "minLength": 1 + }, + "rotation": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "max_storey", + "min_storey", + "name", + "rotation", + "x", + "y" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "createdAt", + "id", + "max_storey", + "min_storey", + "name", + "rotation", + "updatedAt", + "x", + "y" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNavigatorStairs", + "description": "List the staircases", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "createdAt", + "id", + "max_storey", + "min_storey", + "name", + "rotation", + "updatedAt", + "x", + "y" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/stairs/{id}": { + "delete": { + "operationId": "deleteNavigatorStairsById", + "description": "Delete a staircase", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putNavigatorStairsById", + "description": "Update a staircase", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string", + "minLength": 1 + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string", + "minLength": 1 + }, + "rotation": { + "type": "number" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string" + }, + "max_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "min_storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "createdAt", + "id", + "max_storey", + "min_storey", + "name", + "rotation", + "updatedAt", + "x", + "y" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/translations/available": { + "get": { + "operationId": "getNavigatorTranslationsAvailable", + "description": "List the languages the campus translations exist in", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/navigator/translations": { + "post": { + "operationId": "postNavigatorTranslations", + "description": "Create or replace one codename across every given language", + "tags": [ + "Navigator" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "text_key": { + "type": "string", + "minLength": 1 + }, + "translations": { + "type": "object", + "propertyNames": { + "type": "string", + "minLength": 2, + "maxLength": 10 + }, + "additionalProperties": { + "type": "string" + } + } + }, + "required": [ + "text_key", + "translations" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "lang_key": { + "type": "string" + }, + "text": { + "type": "string" + }, + "text_key": { + "type": "string" + } + }, + "required": [ + "lang_key", + "text", + "text_key" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNavigatorTranslations", + "description": "List every translation row", + "tags": [ + "Navigator" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "lang_key": { + "type": "string" + }, + "text": { + "type": "string" + }, + "text_key": { + "type": "string" + } + }, + "required": [ + "lang_key", + "text", + "text_key" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/translations/{lang}/{key}": { + "delete": { + "operationId": "deleteNavigatorTranslationsByLangByKey", + "description": "Delete one codename in one language", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "lang", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 2, + "maxLength": 10 + } + }, + { + "name": "key", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putNavigatorTranslationsByLangByKey", + "description": "Write the text of one codename in one language", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "lang", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 2, + "maxLength": 10 + } + }, + { + "name": "key", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "text": { + "type": "string" + } + }, + "required": [ + "text" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "lang_key": { + "type": "string" + }, + "text": { + "type": "string" + }, + "text_key": { + "type": "string" + } + }, + "required": [ + "lang_key", + "text", + "text_key" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/navigator/translations/lang": { + "get": { + "operationId": "getNavigatorTranslationsLang", + "description": "One language as a flat `text_key -> text` bundle, without a session", + "tags": [ + "Navigator" + ], + "parameters": [ + { + "name": "lang", + "in": "query", + "required": true, + "schema": { + "type": "string", + "minLength": 2, + "maxLength": 10 + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "type": "string" + } + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/news/announcements": { + "post": { + "operationId": "postNewsAnnouncements", + "description": "Create a new announcement", + "tags": [ + "News / Announcements" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "content": { + "type": "array", + "items": { + "type": "object", + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "type": { + "type": "string" + } + }, + "required": [ + "content", + "type" + ] + } + }, + "highlighted": { + "type": "boolean" + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "kioskOnly": { + "type": "boolean" + }, + "title": { + "type": "string", + "minLength": 1 + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "content", + "validFrom", + "validUntil" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "highlighted": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "imageByteSize": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "imageContentType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageKey": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageUpdatedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "kioskOnly": { + "type": "boolean" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "highlighted", + "id", + "imageByteSize", + "imageContentType", + "imageKey", + "imageUpdatedAt", + "kioskOnly", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds", + "kioskIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNewsAnnouncements", + "description": "List active announcements within date range, cohort-filtered by default; includeAll=true returns everything", + "tags": [ + "News / Announcements" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "includeAll", + "in": "query", + "schema": { + "type": "string", + "default": false + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "includeExpired", + "in": "query", + "schema": { + "type": "string", + "default": false + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "includeKioskOnly", + "in": "query", + "schema": { + "type": "string", + "default": false + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "highlighted": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "imageByteSize": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "imageContentType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageKey": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageUpdatedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "kioskOnly": { + "type": "boolean" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "author": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "image", + "name" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "highlighted", + "id", + "imageByteSize", + "imageContentType", + "imageKey", + "imageUpdatedAt", + "kioskOnly", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds", + "kioskIds" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/news/announcements/{id}": { + "delete": { + "operationId": "deleteNewsAnnouncementsById", + "description": "Delete an announcement", + "tags": [ + "News / Announcements" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNewsAnnouncementsById", + "description": "Get a single announcement by ID", + "tags": [ + "News / Announcements" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "highlighted": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "imageByteSize": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "imageContentType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageKey": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageUpdatedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "kioskOnly": { + "type": "boolean" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "author": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "image", + "name" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "highlighted", + "id", + "imageByteSize", + "imageContentType", + "imageKey", + "imageUpdatedAt", + "kioskOnly", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds", + "kioskIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "patch": { + "operationId": "patchNewsAnnouncementsById", + "description": "Update an existing announcement", + "tags": [ + "News / Announcements" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "content": { + "type": "array", + "items": { + "type": "object", + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "type": { + "type": "string" + } + }, + "required": [ + "content", + "type" + ] + } + }, + "highlighted": { + "type": "boolean" + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "kioskOnly": { + "type": "boolean" + }, + "title": { + "type": "string", + "minLength": 1 + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "highlighted": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "imageByteSize": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "imageContentType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageKey": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageUpdatedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "kioskOnly": { + "type": "boolean" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "highlighted", + "id", + "imageByteSize", + "imageContentType", + "imageKey", + "imageUpdatedAt", + "kioskOnly", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds", + "kioskIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/news/announcements/{id}/image": { + "delete": { + "operationId": "deleteNewsAnnouncementsByIdImage", + "description": "Delete the image attached to an announcement", + "tags": [ + "News / Announcements" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "highlighted": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "imageByteSize": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "imageContentType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageKey": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageUpdatedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "kioskOnly": { + "type": "boolean" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "highlighted", + "id", + "imageByteSize", + "imageContentType", + "imageKey", + "imageUpdatedAt", + "kioskOnly", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds", + "kioskIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "post": { + "operationId": "postNewsAnnouncementsByIdImage", + "description": "Upload the image this announcement shows on the kiosk", + "tags": [ + "News / Announcements" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentMediaType": "*/*" + } + }, + "required": [ + "file" + ] + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentMediaType": "*/*" + } + }, + "required": [ + "file" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "highlighted": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "imageByteSize": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "imageContentType": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageKey": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "imageUpdatedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "kioskOnly": { + "type": "boolean" + }, + "title": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "kioskIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "highlighted", + "id", + "imageByteSize", + "imageContentType", + "imageKey", + "imageUpdatedAt", + "kioskOnly", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds", + "kioskIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/news/blogs": { + "post": { + "operationId": "postNewsBlogs", + "description": "Create a new blog post (defaults to draft)", + "tags": [ + "News / Blogs" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "array", + "items": { + "type": "object", + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "type": { + "type": "string" + } + }, + "required": [ + "content", + "type" + ] + } + }, + "slug": { + "type": "string", + "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" + }, + "status": { + "enum": [ + "draft", + "published" + ], + "type": "string", + "default": "draft" + }, + "title": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "content", + "title" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "publishedAt", + "slug", + "status", + "title", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNewsBlogs", + "description": "List published blog posts (public, no auth required)", + "tags": [ + "News / Blogs" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "author": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "image", + "name" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "publishedAt", + "slug", + "status", + "title", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/news/blogs/{id}": { + "delete": { + "operationId": "deleteNewsBlogsById", + "description": "Delete a blog post", + "tags": [ + "News / Blogs" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "patch": { + "operationId": "patchNewsBlogsById", + "description": "Update a blog post", + "tags": [ + "News / Blogs" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "array", + "items": { + "type": "object", + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "type": { + "type": "string" + } + }, + "required": [ + "content", + "type" + ] + } + }, + "slug": { + "type": "string", + "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" + }, + "title": { + "type": "string", + "minLength": 1 + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "publishedAt", + "slug", + "status", + "title", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/news/blogs/drafts": { + "get": { + "operationId": "getNewsBlogsDrafts", + "description": "List all blog posts including drafts (requires permission)", + "tags": [ + "News / Blogs" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "author": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "image", + "name" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "publishedAt", + "slug", + "status", + "title", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/news/blogs/{slug}": { + "get": { + "operationId": "getNewsBlogsBySlug", + "description": "Get a published blog post by slug (public, no auth required)", + "tags": [ + "News / Blogs" + ], + "parameters": [ + { + "name": "slug", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "author": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "image", + "name" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "publishedAt", + "slug", + "status", + "title", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/news/blogs/id/{id}": { + "get": { + "operationId": "getNewsBlogsIdById", + "description": "Get any blog post by ID including drafts (requires permission)", + "tags": [ + "News / Blogs" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "author": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "image", + "name" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "publishedAt", + "slug", + "status", + "title", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/news/blogs/{id}/publish": { + "post": { + "operationId": "postNewsBlogsByIdPublish", + "description": "Publish a blog post (draft → published)", + "tags": [ + "News / Blogs" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "publishedAt", + "slug", + "status", + "title", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/news/blogs/{id}/unpublish": { + "post": { + "operationId": "postNewsBlogsByIdUnpublish", + "description": "Unpublish a blog post (published → draft)", + "tags": [ + "News / Blogs" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "publishedAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "slug": { + "type": "string" + }, + "status": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "publishedAt", + "slug", + "status", + "title", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/news/system-messages": { + "post": { + "operationId": "postNewsSystemMessages", + "description": "Create a new system message", + "tags": [ + "News / System Messages" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "content": { + "type": "array", + "items": { + "type": "object", + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "type": { + "type": "string" + } + }, + "required": [ + "content", + "type" + ] + } + }, + "title": { + "type": "string", + "minLength": 1 + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "content", + "title", + "validFrom", + "validUntil" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNewsSystemMessages", + "description": "List active system messages within date range, filtered by user cohort", + "tags": [ + "News / System Messages" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "includeAll", + "in": "query", + "schema": { + "type": "string", + "default": false + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "includeExpired", + "in": "query", + "schema": { + "type": "string", + "default": false + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "includeKioskOnly", + "in": "query", + "schema": { + "type": "string", + "default": false + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "author": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "image", + "name" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/news/system-messages/{id}": { + "delete": { + "operationId": "deleteNewsSystemMessagesById", + "description": "Delete a system message", + "tags": [ + "News / System Messages" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getNewsSystemMessagesById", + "description": "Get a single system message by ID", + "tags": [ + "News / System Messages" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "author": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "image", + "name" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + }, + "patch": { + "operationId": "patchNewsSystemMessagesById", + "description": "Update an existing system message", + "tags": [ + "News / System Messages" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "content": { + "type": "array", + "items": { + "type": "object", + "properties": { + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": {} + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "type": { + "type": "string" + } + }, + "required": [ + "content", + "type" + ] + } + }, + "title": { + "type": "string", + "minLength": 1 + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "authorId": { + "type": "string", + "format": "uuid" + }, + "content": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + }, + { + "type": "null" + }, + { + "type": "array", + "items": { + "anyOf": [ + {}, + { + "type": "null" + } + ] + } + }, + { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + ] + } + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "title": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validUntil": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "cohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "authorId", + "content", + "createdAt", + "id", + "title", + "updatedAt", + "validFrom", + "validUntil", + "cohortIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/fcm-tokens": { + "post": { + "operationId": "postNotificationsFcmTokens", + "description": "Register a push (FCM) token for the signed-in user", + "tags": [ + "Notifications" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "deviceInfo": { + "type": "string" + }, + "token": { + "type": "string" + } + }, + "required": [ + "token" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ok": { + "const": true + } + }, + "required": [ + "ok" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/fcm-tokens/{token}": { + "delete": { + "operationId": "deleteNotificationsFcmTokensByToken", + "description": "Unregister a push (FCM) token", + "tags": [ + "Notifications" + ], + "parameters": [ + { + "name": "token", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ok": { + "const": true + } + }, + "required": [ + "ok" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications": { + "get": { + "operationId": "getNotifications", + "description": "List the signed-in user's notifications", + "tags": [ + "Notifications" + ], + "parameters": [ + { + "name": "dateFrom", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "dateTo", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "limit", + "in": "query", + "schema": { + "type": "number", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "number", + "minimum": 0, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "unread", + "in": "query", + "schema": { + "enum": [ + "true", + "false" + ], + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label", + "value" + ] + } + }, + "highlights": { + "type": "array", + "items": { + "type": "string" + } + }, + "slug": { + "type": "string" + }, + "userId": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": {} + }, + { + "type": "null" + } + ] + }, + "read": { + "type": "boolean" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "content", + "createdAt", + "id", + "metadata", + "read", + "title", + "type", + "userId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/read-all": { + "post": { + "operationId": "postNotificationsReadAll", + "description": "Mark every notification of the signed-in user as read", + "tags": [ + "Notifications" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ok": { + "const": true + } + }, + "required": [ + "ok" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/{id}/read": { + "post": { + "operationId": "postNotificationsByIdRead", + "description": "Mark one notification as read", + "tags": [ + "Notifications" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label", + "value" + ] + } + }, + "highlights": { + "type": "array", + "items": { + "type": "string" + } + }, + "slug": { + "type": "string" + }, + "userId": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": {} + }, + { + "type": "null" + } + ] + }, + "read": { + "type": "boolean" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "content", + "createdAt", + "id", + "metadata", + "read", + "title", + "type", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/test/preview": { + "post": { + "operationId": "postNotificationsTestPreview", + "description": "Development helper: render a notification template without sending it (needs CHRONOS_ENABLE_TEST_NOTIFICATIONS). When entityId is given, a real record is rendered through the same builders as the live pipeline instead of the supplied text: substitution, substitution_teacher, moved_lesson, moved_lesson_teacher, announcement, system_message and blog_post; every other type answers 400.", + "tags": [ + "Notifications" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label", + "value" + ] + } + }, + "entityId": { + "type": "string", + "format": "uuid", + "description": "Id of a real record to render instead of the supplied text; only the types previewTest resolves accept one" + }, + "highlights": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "enum": [ + "en", + "hu" + ], + "type": "string" + }, + "subject": { + "type": "string" + }, + "type": { + "enum": [ + "substitution", + "substitution_teacher", + "moved_lesson", + "moved_lesson_teacher", + "announcement", + "system_message", + "blog_post", + "doorlock_card_used", + "cohort_reselection_required", + "test" + ], + "type": "string" + } + }, + "required": [ + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "html": { + "type": "string" + } + }, + "required": [ + "html" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/test/send": { + "post": { + "operationId": "postNotificationsTestSend", + "description": "Development helper: send a test message over email, in-app and/or push (needs CHRONOS_ENABLE_TEST_NOTIFICATIONS)", + "tags": [ + "Notifications" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "channels": { + "type": "object", + "properties": { + "email": { + "type": "boolean", + "default": false + }, + "inApp": { + "type": "boolean", + "default": false + }, + "push": { + "type": "boolean", + "default": false + } + } + }, + "content": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label", + "value" + ] + } + }, + "email": { + "type": "string", + "format": "email" + }, + "highlights": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "enum": [ + "en", + "hu" + ], + "type": "string" + }, + "subject": { + "type": "string" + }, + "type": { + "enum": [ + "substitution", + "substitution_teacher", + "moved_lesson", + "moved_lesson_teacher", + "announcement", + "system_message", + "blog_post", + "doorlock_card_used", + "cohort_reselection_required", + "test" + ], + "type": "string" + } + }, + "required": [ + "channels", + "type" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "type": "boolean" + }, + "inApp": { + "type": "boolean" + }, + "push": { + "type": "boolean" + } + }, + "required": [ + "email", + "inApp", + "push" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/settings": { + "get": { + "operationId": "getNotificationsSettings", + "description": "Read the notification preferences of the signed-in user", + "tags": [ + "Notifications" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "colorScheme": { + "enum": [ + "default", + "catppuccin", + "dracula", + "gruvbox", + "nord", + "rosePine", + "solarized", + "tokyoNight" + ], + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "language": { + "type": "string" + }, + "notificationPreferences": { + "type": "object", + "properties": { + "announcement": { + "type": "boolean" + }, + "announcementEmail": { + "type": "boolean", + "description": "Email me about announcements; in-app announcements are unaffected" + }, + "blogPost": { + "type": "boolean" + }, + "channelsEnabled": { + "type": "boolean", + "description": "Legacy master switch; ignored since the channel split — use emailEnabled. A stored false still forces email off, beating the role default" + }, + "doorlockCardUsed": { + "type": "boolean" + }, + "emailEnabled": { + "type": "boolean", + "description": "Receive notification email; the only user-facing channel switch, on by default only for an account linked to a teacher" + }, + "movedLesson": { + "type": "boolean" + }, + "substitution": { + "type": "boolean" + }, + "systemMessage": { + "type": "boolean", + "description": "Ignored: system messages are always delivered" + } + }, + "required": [ + "announcement", + "announcementEmail", + "blogPost", + "channelsEnabled", + "doorlockCardUsed", + "emailEnabled", + "movedLesson", + "substitution", + "systemMessage" + ] + }, + "siteThemeAcknowledged": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "siteThemeEnabled": { + "type": "boolean" + }, + "theme": { + "type": "string" + }, + "timetableClassColors": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "type": "number" + } + }, + "timetableGroupDisplay": { + "type": "string" + }, + "timetableView": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "colorScheme", + "createdAt", + "id", + "language", + "notificationPreferences", + "siteThemeAcknowledged", + "siteThemeEnabled", + "theme", + "timetableClassColors", + "timetableGroupDisplay", + "timetableView", + "updatedAt", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "patch": { + "operationId": "patchNotificationsSettings", + "description": "Update the notification preferences of the signed-in user", + "tags": [ + "Notifications" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "colorScheme": { + "enum": [ + "default", + "catppuccin", + "dracula", + "gruvbox", + "nord", + "rosePine", + "solarized", + "tokyoNight" + ], + "type": "string" + }, + "language": { + "type": "string" + }, + "notificationPreferences": { + "type": "object", + "properties": { + "announcement": { + "type": "boolean" + }, + "announcementEmail": { + "type": "boolean", + "description": "Email me about announcements; in-app announcements are unaffected" + }, + "blogPost": { + "type": "boolean" + }, + "channelsEnabled": { + "type": "boolean", + "description": "Legacy master switch; ignored since the channel split — use emailEnabled. A stored false still forces email off, beating the role default" + }, + "doorlockCardUsed": { + "type": "boolean" + }, + "emailEnabled": { + "type": "boolean", + "description": "Receive notification email; the only user-facing channel switch, on by default only for an account linked to a teacher" + }, + "movedLesson": { + "type": "boolean" + }, + "substitution": { + "type": "boolean" + }, + "systemMessage": { + "type": "boolean", + "description": "Ignored: system messages are always delivered" + } + } + }, + "siteThemeAcknowledged": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "siteThemeEnabled": { + "type": "boolean" + }, + "theme": { + "type": "string" + }, + "timetableClassColors": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "type": "number" + } + }, + "timetableGroupDisplay": { + "enum": [ + "highlight", + "hide" + ], + "type": "string" + }, + "timetableView": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "colorScheme": { + "enum": [ + "default", + "catppuccin", + "dracula", + "gruvbox", + "nord", + "rosePine", + "solarized", + "tokyoNight" + ], + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "language": { + "type": "string" + }, + "notificationPreferences": { + "type": "object", + "properties": { + "announcement": { + "type": "boolean" + }, + "announcementEmail": { + "type": "boolean", + "description": "Email me about announcements; in-app announcements are unaffected" + }, + "blogPost": { + "type": "boolean" + }, + "channelsEnabled": { + "type": "boolean", + "description": "Legacy master switch; ignored since the channel split — use emailEnabled. A stored false still forces email off, beating the role default" + }, + "doorlockCardUsed": { + "type": "boolean" + }, + "emailEnabled": { + "type": "boolean", + "description": "Receive notification email; the only user-facing channel switch, on by default only for an account linked to a teacher" + }, + "movedLesson": { + "type": "boolean" + }, + "substitution": { + "type": "boolean" + }, + "systemMessage": { + "type": "boolean", + "description": "Ignored: system messages are always delivered" + } + }, + "required": [ + "announcement", + "announcementEmail", + "blogPost", + "channelsEnabled", + "doorlockCardUsed", + "emailEnabled", + "movedLesson", + "substitution", + "systemMessage" + ] + }, + "siteThemeAcknowledged": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "siteThemeEnabled": { + "type": "boolean" + }, + "theme": { + "type": "string" + }, + "timetableClassColors": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": { + "type": "number" + } + }, + "timetableGroupDisplay": { + "type": "string" + }, + "timetableView": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "colorScheme", + "createdAt", + "id", + "language", + "notificationPreferences", + "siteThemeAcknowledged", + "siteThemeEnabled", + "theme", + "timetableClassColors", + "timetableGroupDisplay", + "timetableView", + "updatedAt", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/test": { + "post": { + "operationId": "postNotificationsTest", + "description": "Development helper: drop a test notification into the caller's own inbox (needs CHRONOS_ENABLE_TEST_NOTIFICATIONS).", + "tags": [ + "Notifications" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "label", + "value" + ] + } + }, + "highlights": { + "type": "array", + "items": { + "type": "string" + } + }, + "slug": { + "type": "string" + }, + "userId": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": {} + }, + { + "type": "null" + } + ] + }, + "read": { + "type": "boolean" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "content", + "createdAt", + "id", + "metadata", + "read", + "title", + "type", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/notifications/unread-count": { + "get": { + "operationId": "getNotificationsUnreadCount", + "description": "Count the signed-in user's unread notifications", + "tags": [ + "Notifications" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "count": { + "type": "number" + } + }, + "required": [ + "count" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/ping": { + "get": { + "operationId": "getPing", + "description": "Health check endpoint that returns a pong response.", + "tags": [ + "Ping" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": [ + "message" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/ping/time": { + "get": { + "operationId": "getPingTime", + "description": "Returns the current server time in the school's configured timezone (Europe/Budapest by default), so a client can render the authoritative local date and UTC offset without trusting its own clock.", + "tags": [ + "Ping" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string" + }, + "iso": { + "type": "string" + }, + "offsetMinutes": { + "type": "number" + }, + "timeZone": { + "type": "string" + }, + "unixMs": { + "type": "number" + } + }, + "required": [ + "date", + "iso", + "offsetMinutes", + "timeZone", + "unixMs" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/ping/uptime": { + "get": { + "operationId": "getPingUptime", + "description": "Get the uptime.", + "tags": [ + "Ping" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "pretty": { + "type": "string" + }, + "uptime_ms": { + "type": "number" + } + }, + "required": [ + "pretty", + "uptime_ms" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/roles": { + "post": { + "operationId": "postRoles", + "description": "Create a new role", + "tags": [ + "Roles" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9_-]+$" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "required": [ + "name" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "can": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + } + }, + "required": [ + "can", + "name" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getRoles", + "description": "List all roles with their permissions", + "tags": [ + "Roles" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "can": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + } + }, + "required": [ + "can", + "name" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/roles/{name}": { + "delete": { + "operationId": "deleteRolesByName", + "description": "Delete a role", + "tags": [ + "Roles" + ], + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ok": { + "const": true + } + }, + "required": [ + "ok" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "patch": { + "operationId": "patchRolesByName", + "description": "Update permissions for a role", + "tags": [ + "Roles" + ], + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "permissions": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "permissions" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "can": { + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + } + }, + "required": [ + "can", + "name" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/roles/permissions": { + "get": { + "operationId": "getRolesPermissions", + "description": "List all known permissions registered by the application", + "tags": [ + "Roles" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/theme": { + "get": { + "operationId": "getTheme", + "description": "Read the site-wide seasonal theme. Public because signed-out visitors need it.", + "tags": [ + "Theme" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "theme": { + "enum": [ + "default", + "newYear", + "valentines", + "march15", + "easter", + "summer", + "halloween", + "christmas" + ], + "type": "string" + } + }, + "required": [ + "theme" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + }, + "patch": { + "operationId": "patchTheme", + "description": "Set the site-wide seasonal theme. Admin-only.", + "tags": [ + "Theme" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "theme": { + "enum": [ + "default", + "newYear", + "valentines", + "march15", + "easter", + "summer", + "halloween", + "christmas" + ], + "type": "string" + } + }, + "required": [ + "theme" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "theme": { + "enum": [ + "default", + "newYear", + "valentines", + "march15", + "easter", + "summer", + "halloween", + "christmas" + ], + "type": "string" + } + }, + "required": [ + "theme" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/timetables/cleanup-orphaned-cohorts": { + "post": { + "operationId": "postTimetableTimetablesCleanupOrphanedCohorts", + "description": "Delete all cohorts that are no longer linked to any timetable (orphaned) and all teachers that are not assigned to any lesson. Users referencing those cohorts will have their cohortId nullified. Teachers still referenced by cohorts, cohort groups, or substitutions are kept.", + "tags": [ + "Timetable" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "affectedUserCount": { + "type": "number" + }, + "deletedCohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "deletedTeacherIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "affectedUserCount", + "deletedCohortIds", + "deletedTeacherIds" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/timetables/{id}": { + "delete": { + "operationId": "deleteTimetableTimetablesById", + "description": "Delete a timetable and all its related data, including orphaned cohorts.", + "tags": [ + "Timetable" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "patch": { + "operationId": "patchTimetableTimetablesById", + "description": "Update a timetable validity dates.", + "tags": [ + "Timetable" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "validFrom": { + "type": "string" + }, + "validTo": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "validTo": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "createdAt", + "id", + "name", + "updatedAt", + "validFrom", + "validTo" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/timetables/latestValid": { + "get": { + "operationId": "getTimetableTimetablesLatestValid", + "description": "Get the latest valid timetable.", + "tags": [ + "Timetable" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "validTo": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "createdAt", + "id", + "name", + "updatedAt", + "validFrom", + "validTo" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/timetables": { + "get": { + "operationId": "getTimetableTimetables", + "description": "Get all timetables from the database.", + "tags": [ + "Timetable" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "validTo": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "createdAt", + "id", + "name", + "updatedAt", + "validFrom", + "validTo" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/timetables/{id}/preview-delete": { + "get": { + "operationId": "getTimetableTimetablesByIdPreviewDelete", + "description": "Preview the impact of deleting a timetable. Orphaned cohorts will be deleted along with the timetable.", + "tags": [ + "Timetable" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "becomesOrphaned": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "becomesOrphaned", + "id", + "name" + ] + } + }, + "isCurrentTimetable": { + "type": "boolean" + }, + "targetTimetable": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + }, + { + "type": "null" + } + ] + }, + "totals": { + "type": "object", + "properties": { + "danglingUsersCleaned": { + "type": "number" + }, + "lessonsDeleted": { + "type": "number" + }, + "movedLessonsDeleted": { + "type": "number" + }, + "orphanedCohorts": { + "type": "number" + }, + "substitutionsDeleted": { + "type": "number" + }, + "survivingCohorts": { + "type": "number" + } + }, + "required": [ + "danglingUsersCleaned", + "lessonsDeleted", + "movedLessonsDeleted", + "orphanedCohorts", + "substitutionsDeleted", + "survivingCohorts" + ] + } + }, + "required": [ + "cohorts", + "isCurrentTimetable", + "targetTimetable", + "totals" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/timetables/valid": { + "get": { + "operationId": "getTimetableTimetablesValid", + "description": "Get all the latest valid timetables.", + "tags": [ + "Timetable" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "validFrom": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "validTo": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "createdAt", + "id", + "name", + "updatedAt", + "validFrom", + "validTo" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/import": { + "post": { + "operationId": "postTimetableImport", + "description": "Import a timetable from an Oman or aSc 2012 XML file.", + "tags": [ + "Timetable", + "Import" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentMediaType": "*/*" + }, + "name": { + "type": "string" + }, + "validFrom": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}$" + }, + "validTo": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}$" + } + }, + "required": [ + "file", + "name", + "validFrom" + ] + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentMediaType": "*/*" + }, + "name": { + "type": "string" + }, + "validFrom": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}$" + }, + "validTo": { + "type": "string", + "pattern": "^\\d{4}-\\d{2}-\\d{2}$" + } + }, + "required": [ + "file", + "name", + "validFrom" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ok": { + "const": true + } + }, + "required": [ + "ok" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/classrooms/getAll": { + "get": { + "operationId": "getTimetableClassroomsGetAll", + "description": "Get all classrooms from the database.", + "tags": [ + "Classroom" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "building_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/classrooms/getAvailable": { + "get": { + "operationId": "getTimetableClassroomsGetAvailable", + "description": "Get classrooms that are free for a given date, day and period.", + "tags": [ + "Classroom" + ], + "parameters": [ + { + "name": "date", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "startingDay", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "startingPeriod", + "in": "query", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "timetableId", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "building_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/cohorts/getAllForTimetable/{timetableId}": { + "get": { + "operationId": "getTimetableCohortsGetAllForTimetableByTimetableId", + "description": "Get cohorts for a given timetable from the database.", + "tags": [ + "Cohort" + ], + "parameters": [ + { + "name": "timetableId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classroomIds": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "teacherId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "timetableId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "classroomIds", + "id", + "name", + "short", + "teacherId", + "timetableId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/groups/getForCohort/{cohortId}": { + "get": { + "operationId": "getTimetableGroupsGetForCohortByCohortId", + "description": "Get the groups of a cohort, marking the current user selection.", + "tags": [ + "Group" + ], + "parameters": [ + { + "name": "cohortId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionLabel": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "selected": { + "type": "boolean" + }, + "studentCount": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "teacherId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "divisionLabel", + "divisionTag", + "entireClass", + "id", + "name", + "selected", + "studentCount", + "teacherId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/groups/select": { + "post": { + "operationId": "postTimetableGroupsSelect", + "description": "Select the group the current user belongs to for a division. Replaces any previous membership in that division.", + "tags": [ + "Group" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "groupId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "groupId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "selectedGroupId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "divisionTag", + "selectedGroupId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/periods/getAll": { + "get": { + "operationId": "getTimetablePeriodsGetAll", + "description": "Get all period definitions used in a given timetable, sorted by period number.", + "tags": [ + "Period" + ], + "parameters": [ + { + "name": "timetableId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/subjects": { + "get": { + "operationId": "getTimetableSubjects", + "description": "Get all subjects from the database.", + "tags": [ + "Subject" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "id", + "name", + "short", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/teachers/getAll": { + "get": { + "operationId": "getTimetableTeachersGetAll", + "description": "Get all teachers from the database.", + "tags": [ + "Teacher" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastName": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "firstName", + "id", + "lastName", + "short" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/teachers": { + "get": { + "operationId": "getTimetableTeachers", + "description": "List all teachers with their email and linked user.", + "tags": [ + "Teacher" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "email": { + "anyOf": [ + { + "type": "string", + "format": "email" + }, + { + "type": "null" + } + ] + }, + "firstName": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastName": { + "type": "string" + }, + "short": { + "type": "string" + }, + "user": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "email", + "id", + "name" + ] + }, + { + "type": "null" + } + ] + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "firstName", + "id", + "lastName", + "short", + "user", + "userId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/teachers/me": { + "get": { + "operationId": "getTimetableTeachersMe", + "description": "Get the signed-in user's linked teacher, if any.", + "tags": [ + "Teacher" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastName": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "firstName", + "id", + "lastName", + "short" + ] + }, + { + "type": "null" + } + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/teachers/{id}": { + "patch": { + "operationId": "patchTimetableTeachersById", + "description": "Update a teacher email and/or linked user.", + "tags": [ + "Teacher" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "anyOf": [ + { + "type": "string", + "format": "email" + }, + { + "type": "null" + } + ] + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "anyOf": [ + { + "type": "string", + "format": "email" + }, + { + "type": "null" + } + ] + }, + "firstName": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastName": { + "type": "string" + }, + "short": { + "type": "string" + }, + "user": { + "anyOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "email", + "id", + "name" + ] + }, + { + "type": "null" + } + ] + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "email", + "firstName", + "id", + "lastName", + "short", + "user", + "userId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/lessons/getForCohort/{cohortId}": { + "get": { + "operationId": "getTimetableLessonsGetForCohortByCohortId", + "description": "Get lessons for a given cohort from the database.", + "tags": [ + "Lesson" + ], + "parameters": [ + { + "name": "cohortId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "timetableId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/lessons/getForId/{lessonId}": { + "get": { + "operationId": "getTimetableLessonsGetForIdByLessonId", + "description": "Get a lesson by its ID from the database.", + "tags": [ + "Lesson" + ], + "parameters": [ + { + "name": "lessonId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "anyOf": [ + { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + }, + "substitutionCohortName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId", + "substitutionCohortName" + ] + }, + { + "type": "null" + } + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/lessons/getForRoom/{classroomId}": { + "get": { + "operationId": "getTimetableLessonsGetForRoomByClassroomId", + "description": "Get lessons for a given classroom from the database.", + "tags": [ + "Lesson" + ], + "parameters": [ + { + "name": "classroomId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "timetableId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/lessons/getForTeacher/{teacherId}": { + "get": { + "operationId": "getTimetableLessonsGetForTeacherByTeacherId", + "description": "Get lessons for a given teacher from the database.", + "tags": [ + "Lesson" + ], + "parameters": [ + { + "name": "teacherId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "timetableId", + "in": "query", + "schema": { + "type": "string", + "format": "uuid" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/lessons/getForTeachers": { + "post": { + "operationId": "postTimetableLessonsGetForTeachers", + "description": "Get lessons for multiple teachers in a single request.", + "tags": [ + "Lesson" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "teacherIds": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "teacherIds" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "lessons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "teacherId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "lessons", + "teacherId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/lessons/getSubstitutionCandidates": { + "post": { + "operationId": "postTimetableLessonsGetSubstitutionCandidates", + "description": "Get available lessons and substitute teacher candidates for substitution editing in one request.", + "tags": [ + "Lesson" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "missingTeacherId": { + "type": "string", + "format": "uuid" + }, + "selectedLessonIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "default": [] + }, + "teacherIds": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "format": "uuid" + } + } + }, + "required": [ + "date", + "missingTeacherId", + "teacherIds" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "availableLessons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "parallelLessons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "substituteCandidates": { + "type": "array", + "items": { + "type": "object", + "properties": { + "hasH1": { + "type": "boolean" + }, + "hasH2": { + "type": "boolean" + }, + "teacher": { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastName": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "firstName", + "id", + "lastName", + "short" + ] + } + }, + "required": [ + "hasH1", + "hasH2", + "teacher" + ] + } + } + }, + "required": [ + "availableLessons", + "parallelLessons", + "substituteCandidates" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/substitutions": { + "post": { + "operationId": "postTimetableSubstitutions", + "description": "Create a new substitution", + "tags": [ + "Substitution" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "lessonIds": { + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "format": "uuid" + } + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "date", + "lessonIds" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "substituter" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getTimetableSubstitutions", + "description": "Get all substitutions from the database.", + "tags": [ + "Substitution" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "lessons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "substitution": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "substituter" + ] + }, + "teacher": { + "anyOf": [ + { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastName": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "firstName", + "id", + "lastName", + "short" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "lessons", + "substitution", + "teacher" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/substitutions/{id}": { + "delete": { + "operationId": "deleteTimetableSubstitutionsById", + "description": "Delete a substitution", + "tags": [ + "Substitution" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putTimetableSubstitutionsById", + "description": "Update a substitution", + "tags": [ + "Substitution" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "lessonIds": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + { + "type": "null" + } + ] + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "lessonIds" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "substituter" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/substitutions/export": { + "get": { + "operationId": "getTimetableSubstitutionsExport", + "description": "Export substitutions as a CSV file over an optional date range.", + "tags": [ + "Substitution" + ], + "parameters": [ + { + "name": "from", + "in": "query", + "schema": { + "type": "string", + "format": "date" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "to", + "in": "query", + "schema": { + "type": "string", + "format": "date" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "contentMediaType": "*/*" + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/substitutions/manual": { + "post": { + "operationId": "postTimetableSubstitutionsManual", + "description": "Create a substitution manually by specifying the teacher, lesson time, subject and cohort directly.", + "tags": [ + "Substitution" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohortId": { + "type": "string", + "format": "uuid" + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "periodId": { + "type": "string", + "format": "uuid" + }, + "subjectId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "teacherId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "cohortId", + "date", + "periodId", + "subjectId", + "substituter", + "teacherId" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "substituter" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/substitutions/relevant": { + "get": { + "operationId": "getTimetableSubstitutionsRelevant", + "description": "Get relevant substitutions from the database.", + "tags": [ + "Substitution" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "lessons": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "substitution": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "substituter" + ] + }, + "teacher": { + "anyOf": [ + { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastName": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "firstName", + "id", + "lastName", + "short" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "lessons", + "substitution", + "teacher" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/substitutions/cohort/{cohortId}": { + "get": { + "operationId": "getTimetableSubstitutionsCohortByCohortId", + "description": "Get relevant substitutions for a given cohort from the database.", + "tags": [ + "Substitution" + ], + "parameters": [ + { + "name": "cohortId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohortId": { + "type": "string", + "format": "uuid" + }, + "substitutions": { + "type": "array", + "items": { + "type": "object", + "properties": { + "lessons": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "substitution": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "substituter": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "substituter" + ] + }, + "teacher": { + "anyOf": [ + { + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastName": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "firstName", + "id", + "lastName", + "short" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "lessons", + "substitution", + "teacher" + ] + } + } + }, + "required": [ + "cohortId", + "substitutions" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/movedLessons": { + "post": { + "operationId": "postTimetableMovedLessons", + "description": "Create a moved lesson: linked to existing lessons, or manual (a subject plus cohorts, with no source lessons).", + "tags": [ + "Moved Lesson" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "lessonIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "manualCohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "manualSourceRoomId": { + "type": "string", + "format": "uuid" + }, + "manualSubjectId": { + "type": "string", + "format": "uuid" + }, + "manualTeacherIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "room": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "startingDay": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "startingPeriod": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "date" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "manualCohortIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "manualSourceRoomId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualSubjectId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualTeacherIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "room": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "startingDay": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "startingPeriod": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "manualCohortIds", + "manualSourceRoomId", + "manualSubjectId", + "manualTeacherIds", + "room", + "startingDay", + "startingPeriod" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getTimetableMovedLessons", + "description": "Get all moved lessons.", + "tags": [ + "Moved Lesson" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classroom": { + "anyOf": [ + { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + }, + { + "type": "null" + } + ] + }, + "dayDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + }, + "lessons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "manual": { + "anyOf": [ + { + "type": "object", + "properties": { + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "sourceRoom": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "id", + "name", + "short", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + } + }, + "required": [ + "cohorts", + "sourceRoom", + "subject", + "teachers" + ] + }, + { + "type": "null" + } + ] + }, + "movedLesson": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "manualCohortIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "manualSourceRoomId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualSubjectId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualTeacherIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "room": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "startingDay": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "startingPeriod": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "manualCohortIds", + "manualSourceRoomId", + "manualSubjectId", + "manualTeacherIds", + "room", + "startingDay", + "startingPeriod" + ] + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "startTime": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "endTime", + "id", + "period", + "startTime", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "classroom", + "dayDefinition", + "lessons", + "manual", + "movedLesson", + "period" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/movedLessons/{id}": { + "delete": { + "operationId": "deleteTimetableMovedLessonsById", + "description": "Delete a moved lesson", + "tags": [ + "Moved Lesson" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putTimetableMovedLessonsById", + "description": "Update a moved lesson. Every field is optional and an omitted one keeps its stored value. A moved lesson still has exactly one source, so switching sources must clear the other one explicitly: send `lessonIds: []` together with the manual fields to switch to manual, or `manualCohortIds: []` together with `lessonIds` to switch to linked.", + "tags": [ + "Moved Lesson" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "lessonIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "manualCohortIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "manualSourceRoomId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualSubjectId": { + "type": "string", + "format": "uuid" + }, + "manualTeacherIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "room": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "startingDay": { + "type": "string", + "format": "uuid" + }, + "startingPeriod": { + "type": "string", + "format": "uuid" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "manualCohortIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "manualSourceRoomId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualSubjectId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualTeacherIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "room": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "startingDay": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "startingPeriod": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "manualCohortIds", + "manualSourceRoomId", + "manualSubjectId", + "manualTeacherIds", + "room", + "startingDay", + "startingPeriod" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/movedLessons/export": { + "get": { + "operationId": "getTimetableMovedLessonsExport", + "description": "Export moved lessons as a CSV file over an optional date range.", + "tags": [ + "Moved Lesson" + ], + "parameters": [ + { + "name": "from", + "in": "query", + "schema": { + "type": "string", + "format": "date" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "to", + "in": "query", + "schema": { + "type": "string", + "format": "date" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "contentMediaType": "*/*" + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/timetable/movedLessons/cohort/{cohortId}": { + "get": { + "operationId": "getTimetableMovedLessonsCohortByCohortId", + "description": "Get all moved lessons for a cohort.", + "tags": [ + "Moved Lesson" + ], + "parameters": [ + { + "name": "cohortId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classroom": { + "anyOf": [ + { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + }, + { + "type": "null" + } + ] + }, + "dayDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + }, + "lessons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "manual": { + "anyOf": [ + { + "type": "object", + "properties": { + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "sourceRoom": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "id", + "name", + "short", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + } + }, + "required": [ + "cohorts", + "sourceRoom", + "subject", + "teachers" + ] + }, + { + "type": "null" + } + ] + }, + "movedLesson": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "manualCohortIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "manualSourceRoomId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualSubjectId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualTeacherIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "room": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "startingDay": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "startingPeriod": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "manualCohortIds", + "manualSourceRoomId", + "manualSubjectId", + "manualTeacherIds", + "room", + "startingDay", + "startingPeriod" + ] + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "startTime": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "endTime", + "id", + "period", + "startTime", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "classroom", + "dayDefinition", + "lessons", + "manual", + "movedLesson", + "period" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/movedLessons/relevant": { + "get": { + "operationId": "getTimetableMovedLessonsRelevant", + "description": "Get relevant moved lessons for the active timetable.", + "tags": [ + "Moved Lesson" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classroom": { + "anyOf": [ + { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + }, + { + "type": "null" + } + ] + }, + "dayDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + }, + "lessons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "manual": { + "anyOf": [ + { + "type": "object", + "properties": { + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "sourceRoom": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "id", + "name", + "short", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + } + }, + "required": [ + "cohorts", + "sourceRoom", + "subject", + "teachers" + ] + }, + { + "type": "null" + } + ] + }, + "movedLesson": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "manualCohortIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "manualSourceRoomId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualSubjectId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualTeacherIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "room": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "startingDay": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "startingPeriod": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "manualCohortIds", + "manualSourceRoomId", + "manualSubjectId", + "manualTeacherIds", + "room", + "startingDay", + "startingPeriod" + ] + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "startTime": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "endTime", + "id", + "period", + "startTime", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "classroom", + "dayDefinition", + "lessons", + "manual", + "movedLesson", + "period" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/timetable/movedLessons/cohort/{cohortId}/relevant": { + "get": { + "operationId": "getTimetableMovedLessonsCohortByCohortIdRelevant", + "description": "Get all relevant moved lessons for a given cohort.", + "tags": [ + "Moved Lesson" + ], + "parameters": [ + { + "name": "cohortId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classroom": { + "anyOf": [ + { + "type": "object", + "properties": { + "building_id": { + "type": "string" + }, + "capacity": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "mapped": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "rotation": { + "type": "number" + }, + "short": { + "type": "string" + }, + "size_x": { + "type": "number" + }, + "size_y": { + "type": "number" + }, + "size_z": { + "type": "number" + }, + "storey": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "type_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "x": { + "type": "number" + }, + "y": { + "type": "number" + } + }, + "required": [ + "building_id", + "capacity", + "description", + "id", + "mapped", + "name", + "rotation", + "short", + "size_x", + "size_y", + "size_z", + "storey", + "type_id", + "x", + "y" + ] + }, + { + "type": "null" + } + ] + }, + "dayDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + }, + "lessons": { + "type": "array", + "items": { + "type": "object", + "properties": { + "classrooms": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "day": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "days": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "days", + "id", + "name", + "short", + "updatedAt" + ] + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "divisionTag": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "entireClass": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + } + }, + "required": [ + "divisionTag", + "entireClass", + "id", + "name" + ] + } + }, + "groupsIds": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "number" + }, + "startTime": { + "type": "string" + } + }, + "required": [ + "endTime", + "id", + "period", + "startTime" + ] + }, + { + "type": "null" + } + ] + }, + "periodsPerWeek": { + "type": "number" + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "termDefinitionId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "weekDefinition": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "weeks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "id", + "name", + "short", + "weeks" + ] + }, + { + "type": "null" + } + ] + }, + "weeksDefinitionId": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "classrooms", + "cohorts", + "groups", + "groupsIds", + "id", + "period", + "periodsPerWeek", + "subject", + "teachers", + "termDefinitionId", + "weekDefinition", + "weeksDefinitionId" + ] + } + }, + "manual": { + "anyOf": [ + { + "type": "object", + "properties": { + "cohorts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + }, + "sourceRoom": { + "anyOf": [ + { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + }, + { + "type": "null" + } + ] + }, + "subject": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "id", + "name", + "short", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + }, + "teachers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "short": { + "type": "string" + } + }, + "required": [ + "id", + "name", + "short" + ] + } + } + }, + "required": [ + "cohorts", + "sourceRoom", + "subject", + "teachers" + ] + }, + { + "type": "null" + } + ] + }, + "movedLesson": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "date": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "manualCohortIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "manualSourceRoomId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualSubjectId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "manualTeacherIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "room": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "startingDay": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "startingPeriod": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "comment", + "date", + "id", + "manualCohortIds", + "manualSourceRoomId", + "manualSubjectId", + "manualTeacherIds", + "room", + "startingDay", + "startingPeriod" + ] + }, + "period": { + "anyOf": [ + { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "endTime": { + "type": "string" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "period": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "startTime": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "createdAt", + "endTime", + "id", + "period", + "startTime", + "updatedAt" + ] + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "classroom", + "dayDefinition", + "lessons", + "manual", + "movedLesson", + "period" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/users/avatar": { + "delete": { + "operationId": "deleteUsersAvatar", + "description": "Remove your own profile picture", + "tags": [ + "Users" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "post": { + "operationId": "postUsersAvatar", + "description": "Replace your own profile picture", + "tags": [ + "Users" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentMediaType": "*/*" + } + }, + "required": [ + "file" + ] + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "contentMediaType": "*/*" + } + }, + "required": [ + "file" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "id", + "image" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/users/avatars/{file}": { + "get": { + "operationId": "getUsersAvatarsByFile", + "description": "Get a stored profile picture", + "tags": [ + "Users" + ], + "parameters": [ + { + "name": "file", + "in": "path", + "required": true, + "schema": { + "type": "string", + "pattern": "^[0-9a-f]{64}\\.(?:jpg|png|webp)$" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "contentMediaType": "*/*" + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/users": { + "get": { + "operationId": "getUsers", + "description": "List users", + "tags": [ + "Users" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "number", + "minimum": 1, + "maximum": 100, + "default": 20 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "number", + "minimum": 0, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "role", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "cohortId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "email": { + "type": "string" + }, + "emailVerified": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "displayName": { + "type": "string" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "cohortId", + "createdAt", + "email", + "emailVerified", + "id", + "image", + "name", + "nickname", + "roles", + "updatedAt", + "displayName", + "permissions" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/users/{id}": { + "patch": { + "operationId": "patchUsersById", + "description": "Update user", + "tags": [ + "Users" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohortId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "nickname": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cohortId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "email": { + "type": "string" + }, + "emailVerified": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "image": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "displayName": { + "type": "string" + }, + "permissions": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "cohortId", + "createdAt", + "email", + "emailVerified", + "id", + "image", + "name", + "nickname", + "roles", + "updatedAt", + "displayName", + "permissions" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/auth-logs": { + "get": { + "operationId": "getWifiAuthLogs", + "description": "List WiFi auth logs.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 10000, + "default": 10000 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "failureReason", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "result", + "in": "query", + "schema": { + "enum": [ + "true", + "false" + ], + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deviceNickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deviceReportedHostname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "failureReason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "number" + }, + "macAddress": { + "type": "string" + }, + "nasComment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "nasIpAddress": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "nasMacAddress": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "result": { + "type": "boolean" + }, + "timestamp": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userComment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "username": { + "type": "string" + }, + "wifiUserId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "deviceNickname", + "deviceReportedHostname", + "failureReason", + "id", + "macAddress", + "nasComment", + "nasIpAddress", + "nasMacAddress", + "result", + "timestamp", + "userComment", + "username", + "wifiUserId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/devices": { + "post": { + "operationId": "postWifiDevices", + "description": "Create a WiFi device or global MAC ban.", + "tags": [ + "WiFi" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "adminNotes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "banned": { + "type": "boolean" + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "wifiUserId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "macAddress" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "adminNotes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "banned": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reportedHostname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "wifiUserId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "adminNotes", + "banned", + "createdAt", + "id", + "lastActiveAt", + "macAddress", + "nickname", + "reportedHostname", + "updatedAt", + "wifiUserId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getWifiDevices", + "description": "List WiFi devices and global MAC bans.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 10000, + "default": 10000 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "wifiUserId", + "in": "query", + "schema": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "const": "" + }, + { + "const": "null" + }, + { + "type": "null" + } + ] + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "adminNotes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "banned": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reportedHostname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "wifiUserId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "adminNotes", + "banned", + "createdAt", + "id", + "lastActiveAt", + "macAddress", + "nickname", + "reportedHostname", + "updatedAt", + "wifiUserId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/devices/{id}": { + "delete": { + "operationId": "deleteWifiDevicesById", + "description": "Delete a WiFi device or global MAC ban.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putWifiDevicesById", + "description": "Update a WiFi device or global MAC ban.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "adminNotes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "banned": { + "type": "boolean" + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "wifiUserId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "adminNotes": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "banned": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reportedHostname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "wifiUserId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "adminNotes", + "banned", + "createdAt", + "id", + "lastActiveAt", + "macAddress", + "nickname", + "reportedHostname", + "updatedAt", + "wifiUserId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/nas": { + "post": { + "operationId": "postWifiNas", + "description": "Register a WiFi NAS device.", + "tags": [ + "WiFi" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "ipAddress": { + "type": "string" + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + } + }, + "required": [ + "ipAddress", + "macAddress" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "ipAddress": { + "type": "string" + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "comment", + "createdAt", + "id", + "ipAddress", + "macAddress", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getWifiNas", + "description": "List authorized WiFi NAS devices.", + "tags": [ + "WiFi" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "ipAddress": { + "type": "string" + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "comment", + "createdAt", + "id", + "ipAddress", + "macAddress", + "updatedAt" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/nas/{id}": { + "delete": { + "operationId": "deleteWifiNasById", + "description": "Delete a WiFi NAS device.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putWifiNasById", + "description": "Update a WiFi NAS device.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "ipAddress": { + "type": "string" + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "ipAddress": { + "type": "string" + }, + "macAddress": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + } + }, + "required": [ + "comment", + "createdAt", + "id", + "ipAddress", + "macAddress", + "updatedAt" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/radius/authorize": { + "post": { + "operationId": "postWifiRadiusAuthorize", + "description": "Authorize a WiFi client for FreeRADIUS.", + "tags": [ + "WiFi" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "destination": { + "type": "string" + }, + "IP": { + "type": "string" + }, + "NAS": { + "type": "string" + }, + "password": { + "type": "string" + }, + "sharedSecret": { + "type": "string" + }, + "source": { + "type": "string" + }, + "username": { + "type": "string" + } + }, + "required": [ + "source", + "username" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "Cleartext-Password": { + "type": "string" + }, + "control:Cleartext-Password": { + "type": "string" + }, + "Session-Timeout": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": [ + "Cleartext-Password", + "control:Cleartext-Password", + "Session-Timeout" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/wifi/role-speed-profiles": { + "post": { + "operationId": "postWifiRoleSpeedProfiles", + "description": "Create a WiFi role speed-profile mapping.", + "tags": [ + "WiFi" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "priority": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991, + "default": 0 + }, + "roleName": { + "type": "string", + "minLength": 1 + }, + "speedProfileId": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "roleName", + "speedProfileId" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "priority": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "roleName": { + "type": "string" + }, + "speedProfileId": { + "type": "string" + } + }, + "required": [ + "priority", + "roleName", + "speedProfileId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getWifiRoleSpeedProfiles", + "description": "List WiFi role speed-profile mappings.", + "tags": [ + "WiFi" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "priority": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "roleName": { + "type": "string" + }, + "speedProfileId": { + "type": "string" + } + }, + "required": [ + "priority", + "roleName", + "speedProfileId" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/role-speed-profiles/{id}": { + "delete": { + "operationId": "deleteWifiRoleSpeedProfilesById", + "description": "Delete a WiFi role speed-profile mapping.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putWifiRoleSpeedProfilesById", + "description": "Update a WiFi role speed-profile mapping.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "priority": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991, + "default": 0 + }, + "roleName": { + "type": "string", + "minLength": 1 + }, + "speedProfileId": { + "type": "string", + "minLength": 1 + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "priority": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "roleName": { + "type": "string" + }, + "speedProfileId": { + "type": "string" + } + }, + "required": [ + "priority", + "roleName", + "speedProfileId" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/self/certificate": { + "get": { + "operationId": "getWifiSelfCertificate", + "description": "Download the CA certificate for the authenticated user's WiFi network.", + "tags": [ + "WiFi" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "*/*": { + "schema": { + "type": "string", + "contentMediaType": "*/*" + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/self/password": { + "put": { + "operationId": "putWifiSelfPassword", + "description": "Change the authenticated user's WiFi account password.", + "tags": [ + "WiFi" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "newPassword": { + "type": "string", + "minLength": 8, + "maxLength": 256 + } + }, + "required": [ + "newPassword" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + } + }, + "required": [ + "success" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/self": { + "post": { + "operationId": "postWifiSelf", + "description": "Create a new WiFi account for the authenticated user.", + "tags": [ + "WiFi" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "password": { + "type": "string", + "minLength": 8, + "maxLength": 256 + } + }, + "required": [ + "password" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "banned": { + "type": "boolean" + }, + "devices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "banned": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "macAddress": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reportedHostname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "banned", + "id", + "lastActiveAt", + "macAddress", + "nickname", + "reportedHostname" + ] + } + }, + "speedLimit": { + "type": "object", + "properties": { + "downloadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "roleName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "source": { + "enum": [ + "override", + "role", + "wlan_default" + ], + "type": "string" + }, + "speedProfileId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "uploadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "downloadSpeedMbps", + "roleName", + "source", + "speedProfileId", + "uploadSpeedMbps" + ] + }, + "username": { + "type": "string" + } + }, + "required": [ + "banned", + "devices", + "speedLimit", + "username" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getWifiSelf", + "description": "Get the authenticated user's WiFi account and devices.", + "tags": [ + "WiFi" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "banned": { + "type": "boolean" + }, + "devices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "banned": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "macAddress": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reportedHostname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "banned", + "id", + "lastActiveAt", + "macAddress", + "nickname", + "reportedHostname" + ] + } + }, + "speedLimit": { + "type": "object", + "properties": { + "downloadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "roleName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "source": { + "enum": [ + "override", + "role", + "wlan_default" + ], + "type": "string" + }, + "speedProfileId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "uploadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "downloadSpeedMbps", + "roleName", + "source", + "speedProfileId", + "uploadSpeedMbps" + ] + }, + "username": { + "type": "string" + } + }, + "required": [ + "banned", + "devices", + "speedLimit", + "username" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/self/devices/{id}": { + "put": { + "operationId": "putWifiSelfDevicesById", + "description": "Rename one of the authenticated user's WiFi devices.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "nickname": { + "anyOf": [ + { + "type": "string", + "maxLength": 100 + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "nickname" + ] + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "banned": { + "type": "boolean" + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "macAddress": { + "type": "string" + }, + "nickname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "reportedHostname": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "banned", + "id", + "lastActiveAt", + "macAddress", + "nickname", + "reportedHostname" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/speed-profiles": { + "post": { + "operationId": "postWifiSpeedProfiles", + "description": "Create a UniFi WiFi speed profile.", + "tags": [ + "WiFi" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "downloadSpeedMbps": { + "type": "integer", + "minimum": -1, + "maximum": 9007199254740991, + "default": -1 + }, + "name": { + "type": "string", + "minLength": 1 + }, + "uploadSpeedMbps": { + "type": "integer", + "minimum": -1, + "maximum": 9007199254740991, + "default": -1 + } + }, + "required": [ + "name" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "downloadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + }, + "isWlanDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "uploadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "downloadSpeedMbps", + "id", + "isWlanDefault", + "name", + "uploadSpeedMbps" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getWifiSpeedProfiles", + "description": "List UniFi WiFi speed profiles.", + "tags": [ + "WiFi" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "downloadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + }, + "isWlanDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "uploadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "downloadSpeedMbps", + "id", + "isWlanDefault", + "name", + "uploadSpeedMbps" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/speed-profiles/{id}": { + "delete": { + "operationId": "deleteWifiSpeedProfilesById", + "description": "Delete a UniFi WiFi speed profile.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putWifiSpeedProfilesById", + "description": "Update a UniFi WiFi speed profile.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "minLength": 1 + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "downloadSpeedMbps": { + "type": "integer", + "minimum": -1, + "maximum": 9007199254740991, + "default": -1 + }, + "name": { + "type": "string", + "minLength": 1 + }, + "uploadSpeedMbps": { + "type": "integer", + "minimum": -1, + "maximum": 9007199254740991, + "default": -1 + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "downloadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string" + }, + "isWlanDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "uploadSpeedMbps": { + "anyOf": [ + { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "downloadSpeedMbps", + "id", + "isWlanDefault", + "name", + "uploadSpeedMbps" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/stats/overview": { + "get": { + "operationId": "getWifiStatsOverview", + "description": "Get WiFi account, device, active-device, and auth statistics.", + "tags": [ + "WiFi" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "stats": { + "type": "object", + "properties": { + "activeDevices": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "authSeries": { + "type": "array", + "items": { + "type": "object", + "properties": { + "accepted": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "date": { + "type": "string" + }, + "rejected": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": [ + "accepted", + "date", + "rejected" + ] + } + }, + "totalDevices": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + }, + "totalUsers": { + "type": "integer", + "minimum": -9007199254740991, + "maximum": 9007199254740991 + } + }, + "required": [ + "activeDevices", + "authSeries", + "totalDevices", + "totalUsers" + ] + } + }, + "required": [ + "stats" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/status": { + "get": { + "operationId": "getWifiStatus", + "description": "Get the WiFi module status and configured SSID.", + "tags": [ + "WiFi" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "ssid": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "required": [ + "enabled", + "ssid" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + } + } + }, + "/wifi/users": { + "post": { + "operationId": "postWifiUsers", + "description": "Create a WiFi user account.", + "tags": [ + "WiFi" + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "allowedMacAddresses": { + "type": "array", + "items": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + } + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "password": { + "type": "string", + "minLength": 8, + "maxLength": 256 + }, + "speedProfileId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "username": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "password", + "username" + ] + } + } + } + }, + "responses": { + "201": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "allowedMacAddresses": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + } + }, + { + "type": "null" + } + ] + }, + "banned": { + "type": "boolean" + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "createdBy": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "creatorName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "speedProfileId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "username": { + "type": "string" + } + }, + "required": [ + "allowedMacAddresses", + "banned", + "comment", + "createdAt", + "createdBy", + "creatorName", + "id", + "lastActiveAt", + "speedProfileId", + "updatedAt", + "userId", + "username" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "get": { + "operationId": "getWifiUsers", + "description": "List WiFi user accounts.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 10000, + "default": 10000 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "offset", + "in": "query", + "schema": { + "type": "integer", + "minimum": 0, + "maximum": 9007199254740991, + "default": 0 + }, + "allowEmptyValue": true, + "allowReserved": true + }, + { + "name": "search", + "in": "query", + "schema": { + "type": "string" + }, + "allowEmptyValue": true, + "allowReserved": true + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "allowedMacAddresses": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + } + }, + { + "type": "null" + } + ] + }, + "banned": { + "type": "boolean" + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "createdBy": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "creatorName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "speedProfileId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "username": { + "type": "string" + } + }, + "required": [ + "allowedMacAddresses", + "banned", + "comment", + "createdAt", + "createdBy", + "creatorName", + "id", + "lastActiveAt", + "speedProfileId", + "updatedAt", + "userId", + "username" + ] + } + }, + "total": { + "type": "number" + } + }, + "required": [ + "items", + "total" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + }, + "/wifi/users/{id}": { + "delete": { + "operationId": "deleteWifiUsersById", + "description": "Delete a WiFi user account.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid" + } + }, + "required": [ + "id" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + }, + "put": { + "operationId": "putWifiUsersById", + "description": "Update a WiFi user account.", + "tags": [ + "WiFi" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "required": false, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "allowedMacAddresses": { + "type": "array", + "items": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + } + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "password": { + "anyOf": [ + { + "type": "string", + "minLength": 8, + "maxLength": 256 + }, + { + "const": "" + } + ] + }, + "speedProfileId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "username": { + "type": "string", + "minLength": 1 + }, + "banned": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "allowedMacAddresses": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string", + "pattern": "^(?:[0-9a-fA-F]{12}|(?:[0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})$" + } + }, + { + "type": "null" + } + ] + }, + "banned": { + "type": "boolean" + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "createdAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "createdBy": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "creatorName": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "id": { + "type": "string", + "format": "uuid" + }, + "lastActiveAt": { + "anyOf": [ + { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + { + "type": "null" + } + ] + }, + "speedProfileId": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "x-native-type": "date" + }, + "userId": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ] + }, + "username": { + "type": "string" + } + }, + "required": [ + "allowedMacAddresses", + "banned", + "comment", + "createdAt", + "createdBy", + "creatorName", + "id", + "lastActiveAt", + "speedProfileId", + "updatedAt", + "userId", + "username" + ] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "401": { + "description": "401", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "403": { + "description": "403", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "409": { + "description": "409", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "429": { + "description": "429", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + }, + "500": { + "description": "500", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "status": { + "type": "integer" + } + }, + "required": [ + "code", + "message", + "status" + ], + "type": "object" + } + } + } + } + }, + "security": [ + { + "sessionAuth": [] + } + ] + } + } + } +}