From c7169d6e9dec101fc5523f84766b6fd0c3ecb656 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 16 Feb 2019 23:29:42 +0100 Subject: API documentation for KVision 0.0.25 --- api/index-outline.html | 292 ++++++++++++++++++++++++++----------------------- 1 file changed, 155 insertions(+), 137 deletions(-) (limited to 'api/index-outline.html') diff --git a/api/index-outline.html b/api/index-outline.html index 0f57d8aa..aa7f8c94 100644 --- a/api/index-outline.html +++ b/api/index-outline.html @@ -464,8 +464,30 @@ CallAgent()
-fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: RpcHttpMethod = RpcHttpMethod.POST): Promise<String>
+inline fun <reified T : Any> call(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
+inline fun <reified V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
+inline fun <T : Any, reified V : Any> call(url: String, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
+inline fun <reified T : Any, V : Any> call(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
+inline fun <reified T : Any, reified V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
+fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: HttpMethod = HttpMethod.POST): Promise<String>
fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
+fun <T : Any> remoteCall(url: String, data: dynamic = null, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
+fun <V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
+fun <T : Any, V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
+ + + +class CallModule
+ @@ -971,7 +993,6 @@ -object DateConverter
interface DateFormControl : FormControl
@@ -2044,8 +2066,9 @@ KVController()
+lateinit var applicationContext: <ERROR CLASS>
open fun kVMapping(req: <ERROR CLASS>, res: <ERROR CLASS>): Unit
-lateinit var kvServer: KVServer
+lateinit var services: List<KVServiceManager<*>>
@@ -2076,22 +2099,6 @@ -open actual class KVServer
- open actual class KVServiceManager<T : Any>
+class MainModule
+ @@ -3174,23 +3197,6 @@ -class SpringContext
- open class StackPanel : SimplePanel
-com.lightningkite.kotlin.observable.list.ObservableList
- java.util.Date
+kotlin.collections.MutableList
+ kotlin.js.Date
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+inline fun <reified K : Any> Template.setData(obj: K): Unit
@@ -7981,8 +7989,30 @@ CallAgent()
-fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: RpcHttpMethod = RpcHttpMethod.POST): Promise<String>
+inline fun <reified T : Any> call(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
+inline fun <reified V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
+inline fun <T : Any, reified V : Any> call(url: String, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
+inline fun <reified T : Any, V : Any> call(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
+inline fun <reified T : Any, reified V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
+fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: HttpMethod = HttpMethod.POST): Promise<String>
fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
+fun <T : Any> remoteCall(url: String, data: dynamic = null, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
+fun <V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
+fun <T : Any, V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
+ + + +class CallModule
+ @@ -8002,6 +8032,7 @@ const val HTTP_UNAUTHORIZED: Int
+val INJECTOR_KEY: <ERROR CLASS>
open class KVController
@@ -8044,22 +8076,6 @@ -open actual class KVServer
- open actual class KVServiceManager<T : Any>
+class MainModule
+ @@ -8182,26 +8214,13 @@ -class SpringContext
- fun <ERROR CLASS>.addPathPatternsFromServices(services: List<KVServiceManager<*>>): Unit
-fun <RESP> <ERROR CLASS>.withProfile(block: (Profile) -> RESP): RESP
-fun <RESP> withProfile(block: (Profile) -> RESP): RESP
+fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit
+val <ERROR CLASS>.injector: <ERROR CLASS>
+fun <ERROR CLASS>.kvisionInit(): Unit
+fun <ERROR CLASS>.kvisionInit(vararg modules: <ERROR CLASS>): Unit
+suspend fun <RESP> <ERROR CLASS>.withProfile(block: suspend (Profile) -> RESP): RESP
+suspend fun <RESP> withProfile(block: suspend (Profile) -> RESP): RESP
fun <ERROR CLASS>.writeJSON(json: String): Unit
@@ -8428,7 +8447,6 @@ -object DateConverter
object DateSerializer : KSerializer<Date>
-val kvTableConfig: <ERROR CLASS>
@@ -8527,7 +8544,8 @@ val nonstrict: Json
val plain: Json
-inline fun <reified T : Any> T.toObj(): Any
+inline fun <reified T : Any> T.toObj(): dynamic
+fun <T> T.toObj(serializer: SerializationStrategy<T>): dynamic
@@ -8559,19 +8577,6 @@ val auto: CssSize
-com.lightningkite.kotlin.observable.list.ObservableList
- fun isIE11(): Boolean
kotlin.Int
+kotlin.collections.MutableList
+ val normal: CssSize
fun obj(init: dynamic.() -> Unit): dynamic
org.w3c.files.File
-- cgit