Add vtoken scheme map

This commit is contained in:
Mikołaj Pich 2024-05-14 21:00:12 +02:00
parent 75187f4977
commit f71903d7f2
No known key found for this signature in database
3 changed files with 23 additions and 3 deletions

View file

@ -16,9 +16,16 @@ fun generateMessagesJson(messages: List<Message>): String {
fun generateMappingJson( fun generateMappingJson(
endpoints: Map<String, Map<String, Map<String, String>>>, endpoints: Map<String, Map<String, Map<String, String>>>,
vToken: Map<String, Map<String, Map<String, String>>>, vTokenMap: Map<String, Map<String, Map<String, String>>>,
vTokenSchemeMap: Map<String, Map<String, String>>,
): String { ): String {
return json.encodeToString(mapOf("endpoints" to endpoints, "vTokens" to vToken)) return json.encodeToString(
mapOf(
"endpoints" to endpoints,
"vTokens" to vTokenMap,
"vTokenScheme" to vTokenSchemeMap,
)
)
} }
private val supportedTypes130 = listOf( private val supportedTypes130 = listOf(

View file

@ -6,7 +6,11 @@ fun main() {
val filteredMessages = messages.filter { it.isVisible } val filteredMessages = messages.filter { it.isVisible }
val messagesV1 = generateMessagesJson(filteredMessages) val messagesV1 = generateMessagesJson(filteredMessages)
val mappingV1 = generateMappingJson(ApiEndpointsMap, ApiEndpointsVTokenMap) val mappingV1 = generateMappingJson(
endpoints = ApiEndpointsMap,
vTokenMap = ApiEndpointsVTokenMap,
vTokenSchemeMap = ApiEndpointsVTokenSchemeMap,
)
val html = generateHtml(filteredMessages) val html = generateHtml(filteredMessages)
File("../dist/v1.json").writeText(messagesV1) File("../dist/v1.json").writeText(messagesV1)

View file

@ -251,3 +251,12 @@ val ApiEndpointsVTokenMap = mapOf(
), ),
), ),
) )
val ApiEndpointsVTokenSchemeMap = mapOf(
"24.04.0003.58698" to mapOf(
"uonetplus-wiadomosciplus" to "{UUID}-{name}-{appCustomerDb}-{appVersion}",
),
"24.04.0004.58722" to mapOf(
"uonetplus-wiadomosciplus" to "{UUID}-{appCustomerDb}-{appVersion}",
),
)