From 29004612d0c28145eb311e111ef0ed9d535eabd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Wed, 12 Jun 2024 10:01:58 +0200 Subject: [PATCH] Add support for v24.05.0000.59033 --- generator/src/main/kotlin/mapping/Endpoints.kt | 3 +++ generator/src/main/kotlin/mapping/ResponseKeys.kt | 9 ++++++--- generator/src/main/kotlin/mapping/VHeaders.kt | 11 +++++++++++ generator/src/main/kotlin/mapping/VTokens.kt | 2 +- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/generator/src/main/kotlin/mapping/Endpoints.kt b/generator/src/main/kotlin/mapping/Endpoints.kt index c3b3814..51d855d 100644 --- a/generator/src/main/kotlin/mapping/Endpoints.kt +++ b/generator/src/main/kotlin/mapping/Endpoints.kt @@ -572,6 +572,9 @@ val ApiEndpointsMap = mapOf( "24.04.0010.58863" to mapOf( "uonetplus-uczenplus" to ApiEndpoints0010StudentPlus, ), + "24.05.0000.59033" to mapOf( + "uonetplus-uczenplus" to ApiEndpoints0010StudentPlus, + ), ) private val UonetPlusUczen_24_04_0010_58863 = mapOf( diff --git a/generator/src/main/kotlin/mapping/ResponseKeys.kt b/generator/src/main/kotlin/mapping/ResponseKeys.kt index d0cfcad..8806f2b 100644 --- a/generator/src/main/kotlin/mapping/ResponseKeys.kt +++ b/generator/src/main/kotlin/mapping/ResponseKeys.kt @@ -1,7 +1,6 @@ package mapping -internal val ApiEndpointsResponseMapping = mapOf( - "24.04.0010.58863" to mapOf( +val responseMapping0010 = mapOf( "uonetplus-wiadomosciplus" to mapOf( "__common__" to mapOf( "rtvrHBuCAwCEEAtIsBtuHJBtFttEtCIJ" to "apiGlobalKey", @@ -66,5 +65,9 @@ internal val ApiEndpointsResponseMapping = mapOf( "FvDrCwEBtwIvECBsIwIuAItCvBvGCvvB" to "zrodlo", ), ), - ), + ) + +internal val ApiEndpointsResponseMapping = mapOf( + "24.04.0010.58863" to responseMapping0010, + "24.05.0000.59033" to responseMapping0010, ) diff --git a/generator/src/main/kotlin/mapping/VHeaders.kt b/generator/src/main/kotlin/mapping/VHeaders.kt index 2f615d4..064219d 100644 --- a/generator/src/main/kotlin/mapping/VHeaders.kt +++ b/generator/src/main/kotlin/mapping/VHeaders.kt @@ -63,4 +63,15 @@ val ApiEndpointsVHeaders = mapOf( "V-TokenApi" to "{UUID}-{appCustomerDb}-{appCustomerDbSig}-{appVersion}-{apiKey}", ), ), + "24.05.0000.59033" to mapOf( + "uonetplus-wiadomosciplus" to mapOf( + "V-TokenApi" to "{UUID}-{appCustomerDb}-{appCustomerDbSig}-{appVersion}-{apiKey}", + ), + "uonetplus-uczen" to mapOf( + "V-TokenApi" to "{%UUID%}-{%vTokenApiIndexed%}", + ), + "uonetplus-uczenplus" to mapOf( + "V-TokenApi" to "{UUID}-{appCustomerDb}-{appCustomerDbSig}-{appVersion}-{apiKey}", + ), + ), ) diff --git a/generator/src/main/kotlin/mapping/VTokens.kt b/generator/src/main/kotlin/mapping/VTokens.kt index 2956853..aa21abb 100644 --- a/generator/src/main/kotlin/mapping/VTokens.kt +++ b/generator/src/main/kotlin/mapping/VTokens.kt @@ -168,7 +168,7 @@ val ApiEndpointsVTokenMap = mapOf( "Oceny" to "LN8LI6", ), ), - "24.04.0010.58863" to mapOf( + "24.05.0000.59033" to mapOf( "uonetplus-uczen" to mapOf( "Autoryzacja.mvc" to "QIQqZdfpO", "Frekwencja.mvc" to "FFWp52i",