From 3a5eea7195ffda109e9c7953ab6a0e69c3c5c3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Thu, 13 Jun 2024 22:41:23 +0200 Subject: [PATCH] Add support for v24.05.0002 --- generator/src/main/kotlin/mapping/Endpoints.kt | 5 +++++ generator/src/main/kotlin/mapping/ResponseKeys.kt | 1 + generator/src/main/kotlin/mapping/VHeaders.kt | 11 +++++++++++ generator/src/main/kotlin/mapping/VTokens.kt | 1 + 4 files changed, 18 insertions(+) diff --git a/generator/src/main/kotlin/mapping/Endpoints.kt b/generator/src/main/kotlin/mapping/Endpoints.kt index 8cf00ba..c7663eb 100644 --- a/generator/src/main/kotlin/mapping/Endpoints.kt +++ b/generator/src/main/kotlin/mapping/Endpoints.kt @@ -643,4 +643,9 @@ val ApiEndpointsMapV4 = ApiEndpointsMap + mapOf( "uonetplus-uczenplus" to ApiEndpoints0010StudentPlus, "uonetplus-wiadomosciplus" to ApiEndpoints00010Messages, ), + "24.05.0002.59079" to mapOf( + "uonetplus-uczen" to UonetPlusUczen_24_04_0010_58863, + "uonetplus-uczenplus" to ApiEndpoints0010StudentPlus, + "uonetplus-wiadomosciplus" to ApiEndpoints00010Messages, + ), ) diff --git a/generator/src/main/kotlin/mapping/ResponseKeys.kt b/generator/src/main/kotlin/mapping/ResponseKeys.kt index f95816f..f364cb0 100644 --- a/generator/src/main/kotlin/mapping/ResponseKeys.kt +++ b/generator/src/main/kotlin/mapping/ResponseKeys.kt @@ -71,4 +71,5 @@ internal val ApiEndpointsResponseMapping = mapOf( "24.04.0010.58863" to LastResponseMapping0010, "24.05.0000.59033" to LastResponseMapping0010, "24.05.0001.59063" to LastResponseMapping0010, + "24.05.0002.59079" to LastResponseMapping0010, ) diff --git a/generator/src/main/kotlin/mapping/VHeaders.kt b/generator/src/main/kotlin/mapping/VHeaders.kt index 9fca2b0..90be3e6 100644 --- a/generator/src/main/kotlin/mapping/VHeaders.kt +++ b/generator/src/main/kotlin/mapping/VHeaders.kt @@ -85,4 +85,15 @@ val ApiEndpointsVHeaders = mapOf( "V-TokenApi" to "{UUID}-{appCustomerDb}-{appCustomerDbSig}-{apiKey}", ), ), + "24.05.0002.59079" to mapOf( + "uonetplus-wiadomosciplus" to mapOf( + "V-TokenApi" to "{UUID}-{appCustomerDb}-{appCustomerDbSig}-{apiKey}", + ), + "uonetplus-uczen" to mapOf( + "V-TokenApi" to "{%UUID%}-{%vTokenApiIndexed%}", + ), + "uonetplus-uczenplus" to mapOf( + "V-TokenApi" to "{UUID}-{appCustomerDb}-{appCustomerDbSig}-{apiKey}", + ), + ), ) diff --git a/generator/src/main/kotlin/mapping/VTokens.kt b/generator/src/main/kotlin/mapping/VTokens.kt index 221ca61..5964c4a 100644 --- a/generator/src/main/kotlin/mapping/VTokens.kt +++ b/generator/src/main/kotlin/mapping/VTokens.kt @@ -232,4 +232,5 @@ val ApiEndpointsVTokenMap = mapOf( "24.04.0010.58863" to LastApiEndpointsVTokenMap, "24.05.0000.59033" to LastApiEndpointsVTokenMap, "24.05.0001.59063" to LastApiEndpointsVTokenMap, + "24.05.0002.59079" to LastApiEndpointsVTokenMap, )