2021-03-03 04:02:17 +01:00
{
"id" : "bfetch" ,
"client" : {
"classes" : [ ] ,
"functions" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-public.split" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
"label" : "split" ,
"description" : [
"\nReceives observable that emits strings, and returns a new observable\nthat also returns strings separated by delimiter.\n\nInput stream:\n\n asdf.f -> df..aaa. -> dfsdf\n\nOutput stream, assuming \".\" is used as delimiter:\n\n asdf -> fdf -> aaa -> dfsdf\n"
] ,
"signature" : [
"(delimiter?: string) => (in$: " ,
"Observable" ,
"<string>) => " ,
"Observable" ,
"<string>"
] ,
"source" : {
"path" : "src/plugins/bfetch/public/streaming/split.ts" ,
"lineNumber" : 25
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-04-15 17:36:10 +02:00
"id" : "def-public.split.$1" ,
2021-03-03 04:02:17 +01:00
"type" : "string" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "delimiter" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"string"
] ,
"source" : {
"path" : "src/plugins/bfetch/public/streaming/split.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 25
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"isRequired" : true
2021-03-03 04:02:17 +01:00
}
] ,
"returnComment" : [ ] ,
"initialIsOpen" : false
}
] ,
"interfaces" : [ ] ,
"enums" : [ ] ,
"misc" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-public.BatchedFunc" ,
"type" : "Type" ,
"tags" : [ ] ,
2021-05-06 21:29:47 +02:00
"label" : "BatchedFunc" ,
2021-03-03 04:02:17 +01:00
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
2021-06-07 23:55:35 +02:00
"(payload: Payload, signal?: AbortSignal | undefined) => Promise<Result>"
2021-05-06 21:29:47 +02:00
] ,
2021-03-03 04:02:17 +01:00
"source" : {
"path" : "src/plugins/bfetch/public/batching/types.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 17
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"initialIsOpen" : false
}
] ,
"objects" : [ ] ,
"start" : {
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-public.BfetchPublicContract" ,
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "BfetchPublicContract" ,
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/public/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 23
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-public.BfetchPublicContract.fetchStreaming" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "fetchStreaming" ,
"description" : [ ] ,
"signature" : [
"(params: " ,
2021-04-15 17:36:10 +02:00
"FetchStreamingParams" ,
2021-03-03 04:02:17 +01:00
") => { xhr: XMLHttpRequest; stream: " ,
"Observable" ,
2021-06-07 23:55:35 +02:00
"<string>; }"
2021-05-06 21:29:47 +02:00
] ,
"source" : {
"path" : "src/plugins/bfetch/public/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 24
2021-05-06 21:29:47 +02:00
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-public.params" ,
"type" : "Object" ,
"tags" : [ ] ,
"label" : "params" ,
"description" : [ ] ,
"signature" : [
"FetchStreamingParams"
] ,
"source" : {
"path" : "src/plugins/bfetch/public/plugin.ts" ,
"lineNumber" : 24
} ,
"deprecated" : false
}
]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-public.BfetchPublicContract.batchedFunction" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "batchedFunction" ,
"description" : [ ] ,
"signature" : [
"<Payload, Result extends object>(params: " ,
2021-04-15 17:36:10 +02:00
"StreamingBatchedFunctionParams" ,
2021-03-03 04:02:17 +01:00
"<Payload, Result>) => " ,
{
"pluginId" : "bfetch" ,
"scope" : "public" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-public.BatchedFunc" ,
"text" : "BatchedFunc"
} ,
"<Payload, Result>"
2021-05-06 21:29:47 +02:00
] ,
"source" : {
"path" : "src/plugins/bfetch/public/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 25
2021-05-06 21:29:47 +02:00
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-public.params" ,
"type" : "Object" ,
"tags" : [ ] ,
"label" : "params" ,
"description" : [ ] ,
"signature" : [
"StreamingBatchedFunctionParams" ,
"<Payload, Result>"
] ,
"source" : {
"path" : "src/plugins/bfetch/public/plugin.ts" ,
"lineNumber" : 26
} ,
"deprecated" : false
}
]
2021-03-03 04:02:17 +01:00
}
] ,
"lifecycle" : "start" ,
"initialIsOpen" : true
}
} ,
"server" : {
"classes" : [ ] ,
"functions" : [ ] ,
"interfaces" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-server.BatchProcessingRouteParams" ,
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "BatchProcessingRouteParams" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "server" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-server.BatchProcessingRouteParams" ,
"text" : "BatchProcessingRouteParams"
} ,
"<BatchItemData, BatchItemResult>"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 41
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-server.BatchProcessingRouteParams.onBatchItem" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "onBatchItem" ,
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"(data: BatchItemData) => Promise<BatchItemResult>"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 42
2021-03-03 04:02:17 +01:00
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-server.data" ,
"type" : "Uncategorized" ,
"tags" : [ ] ,
"label" : "data" ,
"description" : [ ] ,
"signature" : [
"BatchItemData"
] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
"lineNumber" : 42
} ,
"deprecated" : false
}
]
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
}
] ,
"enums" : [ ] ,
"misc" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-server.StreamingRequestHandler" ,
"type" : "Type" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "StreamingRequestHandler" ,
"description" : [
"\nRequest handler modified to allow to return an observable.\n\nSee {@link BfetchServerSetup.createStreamingRequestHandler} for usage example."
] ,
"signature" : [
"(context: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCorePluginApi" ,
"section" : "def-server.RequestHandlerContext" ,
"text" : "RequestHandlerContext"
} ,
", request: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<P, Q, B, Method>) => " ,
"Observable" ,
"<Response> | Promise<" ,
"Observable" ,
"<Response>>"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/server/types.ts" ,
"lineNumber" : 18
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"initialIsOpen" : false
}
] ,
"objects" : [ ] ,
"setup" : {
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-server.BfetchServerSetup" ,
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "BfetchServerSetup" ,
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 46
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-server.BfetchServerSetup.addBatchProcessingRoute" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "addBatchProcessingRoute" ,
"description" : [ ] ,
"signature" : [
"<BatchItemData extends object, BatchItemResult extends object>(path: string, handler: (request: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<unknown, unknown, unknown, any>) => " ,
{
"pluginId" : "bfetch" ,
"scope" : "server" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-server.BatchProcessingRouteParams" ,
"text" : "BatchProcessingRouteParams"
} ,
"<BatchItemData, BatchItemResult>) => void"
2021-05-06 21:29:47 +02:00
] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 47
2021-05-06 21:29:47 +02:00
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-server.path" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "path" ,
"description" : [ ] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
"lineNumber" : 48
} ,
"deprecated" : false
} ,
{
"parentPluginId" : "bfetch" ,
"id" : "def-server.handler" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "handler" ,
"description" : [ ] ,
"signature" : [
"(request: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<unknown, unknown, unknown, any>) => " ,
{
"pluginId" : "bfetch" ,
"scope" : "server" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-server.BatchProcessingRouteParams" ,
"text" : "BatchProcessingRouteParams"
} ,
"<BatchItemData, BatchItemResult>"
] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
"lineNumber" : 49
} ,
"deprecated" : false
}
]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-server.BfetchServerSetup.addStreamingResponseRoute" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "addStreamingResponseRoute" ,
"description" : [ ] ,
"signature" : [
"<Payload, Response>(path: string, params: (request: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<unknown, unknown, unknown, any>) => " ,
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.StreamingResponseHandler" ,
"text" : "StreamingResponseHandler"
} ,
"<Payload, Response>) => void"
2021-05-06 21:29:47 +02:00
] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 51
2021-05-06 21:29:47 +02:00
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-server.path" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "path" ,
"description" : [ ] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
"lineNumber" : 52
} ,
"deprecated" : false
} ,
{
"parentPluginId" : "bfetch" ,
"id" : "def-server.params" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "params" ,
"description" : [ ] ,
"signature" : [
"(request: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<unknown, unknown, unknown, any>) => " ,
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.StreamingResponseHandler" ,
"text" : "StreamingResponseHandler"
} ,
"<Payload, Response>"
] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
"lineNumber" : 53
} ,
"deprecated" : false
}
]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-server.BfetchServerSetup.createStreamingRequestHandler" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "createStreamingRequestHandler" ,
"description" : [
"\nCreate a streaming request handler to be able to use an Observable to return chunked content to the client.\nThis is meant to be used with the `fetchStreaming` API of the `bfetch` client-side plugin.\n"
] ,
"signature" : [
"<Response, P, Q, B, Context extends " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCorePluginApi" ,
"section" : "def-server.RequestHandlerContext" ,
"text" : "RequestHandlerContext"
} ,
" = " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCorePluginApi" ,
"section" : "def-server.RequestHandlerContext" ,
"text" : "RequestHandlerContext"
} ,
", Method extends " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.RouteMethod" ,
"text" : "RouteMethod"
} ,
" = any>(streamHandler: " ,
{
"pluginId" : "bfetch" ,
"scope" : "server" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-server.StreamingRequestHandler" ,
"text" : "StreamingRequestHandler"
} ,
"<Response, P, Q, B, Method>) => " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.RequestHandler" ,
"text" : "RequestHandler"
2021-06-07 23:55:35 +02:00
} ,
"<P, Q, B, Context, Method, { custom: <T extends string | Record<string, any> | Error | { message: string | Error; attributes?: Record<string, any> | undefined; } | Buffer | " ,
"Stream" ,
" | undefined>(options: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.CustomHttpResponseOptions" ,
"text" : "CustomHttpResponseOptions"
} ,
"<T>) => " ,
"KibanaResponse" ,
"<T>; badRequest: (options?: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ErrorHttpResponseOptions" ,
"text" : "ErrorHttpResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<" ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ResponseError" ,
"text" : "ResponseError"
} ,
">; unauthorized: (options?: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ErrorHttpResponseOptions" ,
"text" : "ErrorHttpResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<" ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ResponseError" ,
"text" : "ResponseError"
} ,
">; forbidden: (options?: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ErrorHttpResponseOptions" ,
"text" : "ErrorHttpResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<" ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ResponseError" ,
"text" : "ResponseError"
} ,
">; notFound: (options?: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ErrorHttpResponseOptions" ,
"text" : "ErrorHttpResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<" ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ResponseError" ,
"text" : "ResponseError"
} ,
">; conflict: (options?: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ErrorHttpResponseOptions" ,
"text" : "ErrorHttpResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<" ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ResponseError" ,
"text" : "ResponseError"
} ,
">; customError: (options: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.CustomHttpResponseOptions" ,
"text" : "CustomHttpResponseOptions"
} ,
"<" ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ResponseError" ,
"text" : "ResponseError"
} ,
">) => " ,
"KibanaResponse" ,
"<" ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.ResponseError" ,
"text" : "ResponseError"
} ,
">; redirected: (options: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.RedirectResponseOptions" ,
"text" : "RedirectResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<string | Record<string, any> | Buffer | " ,
"Stream" ,
">; ok: (options?: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.HttpResponseOptions" ,
"text" : "HttpResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<string | Record<string, any> | Buffer | " ,
"Stream" ,
">; accepted: (options?: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.HttpResponseOptions" ,
"text" : "HttpResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<string | Record<string, any> | Buffer | " ,
"Stream" ,
">; noContent: (options?: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.HttpResponseOptions" ,
"text" : "HttpResponseOptions"
} ,
") => " ,
"KibanaResponse" ,
"<undefined>; }>"
2021-05-06 21:29:47 +02:00
] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 83
2021-05-06 21:29:47 +02:00
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-server.streamHandler" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "streamHandler" ,
"description" : [ ] ,
"signature" : [
"(context: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCorePluginApi" ,
"section" : "def-server.RequestHandlerContext" ,
"text" : "RequestHandlerContext"
} ,
", request: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<P, Q, B, Method>) => " ,
"Observable" ,
"<Response> | Promise<" ,
"Observable" ,
"<Response>>"
] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
"lineNumber" : 91
} ,
"deprecated" : false
}
]
2021-03-03 04:02:17 +01:00
}
] ,
"lifecycle" : "setup" ,
"initialIsOpen" : true
} ,
"start" : {
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-server.BfetchServerStart" ,
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "BfetchServerStart" ,
"description" : [ ] ,
"source" : {
"path" : "src/plugins/bfetch/server/plugin.ts" ,
2021-06-07 21:02:57 +02:00
"lineNumber" : 96
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false ,
"children" : [ ] ,
2021-03-03 04:02:17 +01:00
"lifecycle" : "start" ,
"initialIsOpen" : true
}
} ,
"common" : {
"classes" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.ItemBuffer" ,
"type" : "Class" ,
"tags" : [ ] ,
"label" : "ItemBuffer" ,
"description" : [
"\nA simple buffer that collects items. Can be cleared or flushed; and can\nautomatically flush when specified number of items is reached."
] ,
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.ItemBuffer" ,
"text" : "ItemBuffer"
} ,
"<Item>"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
"lineNumber" : 29
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.ItemBuffer.Unnamed" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "Constructor" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"any"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
"lineNumber" : 32
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-04-15 17:36:10 +02:00
"id" : "def-common.ItemBuffer.Unnamed.$1" ,
2021-03-03 04:02:17 +01:00
"type" : "Object" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "params" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.ItemBufferParams" ,
"text" : "ItemBufferParams"
} ,
"<Item>"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 32
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"isRequired" : true
2021-03-03 04:02:17 +01:00
}
] ,
2021-05-06 21:29:47 +02:00
"returnComment" : [ ]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.ItemBuffer.length" ,
"type" : "number" ,
"tags" : [ ] ,
2021-05-06 21:29:47 +02:00
"label" : "length" ,
2021-03-03 04:02:17 +01:00
"description" : [
"\nGet current buffer size."
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 37
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.ItemBuffer.write" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "write" ,
"description" : [
"\nAdd item to the buffer."
] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"(item: Item) => void"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
"lineNumber" : 44
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-04-15 17:36:10 +02:00
"id" : "def-common.ItemBuffer.write.$1" ,
2021-03-03 04:02:17 +01:00
"type" : "Uncategorized" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "item" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"Item"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 44
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"isRequired" : true
2021-03-03 04:02:17 +01:00
}
] ,
2021-05-06 21:29:47 +02:00
"returnComment" : [ ]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.ItemBuffer.clear" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "clear" ,
"description" : [
"\nRemove all items from the buffer."
] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"() => void"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 58
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.ItemBuffer.flush" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "flush" ,
"description" : [
"\nCall `.onflush` method and clear buffer."
] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"() => void"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 65
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ]
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.TimedItemBuffer" ,
"type" : "Class" ,
"tags" : [ ] ,
"label" : "TimedItemBuffer" ,
"description" : [ ] ,
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.TimedItemBuffer" ,
"text" : "TimedItemBuffer"
} ,
"<Item> extends " ,
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.ItemBuffer" ,
"text" : "ItemBuffer"
} ,
"<Item>"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
"lineNumber" : 19
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.TimedItemBuffer.Unnamed" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "Constructor" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"any"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
"lineNumber" : 22
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-04-15 17:36:10 +02:00
"id" : "def-common.TimedItemBuffer.Unnamed.$1" ,
2021-03-03 04:02:17 +01:00
"type" : "Object" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "params" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.TimedItemBufferParams" ,
"text" : "TimedItemBufferParams"
} ,
"<Item>"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 22
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"isRequired" : true
2021-03-03 04:02:17 +01:00
}
] ,
2021-05-06 21:29:47 +02:00
"returnComment" : [ ]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.TimedItemBuffer.write" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "write" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"(item: Item) => void"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
"lineNumber" : 26
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-04-15 17:36:10 +02:00
"id" : "def-common.TimedItemBuffer.write.$1" ,
2021-03-03 04:02:17 +01:00
"type" : "Uncategorized" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "item" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"Item"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 26
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"isRequired" : true
2021-03-03 04:02:17 +01:00
}
] ,
2021-05-06 21:29:47 +02:00
"returnComment" : [ ]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.TimedItemBuffer.clear" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "clear" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"() => void"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 34
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.TimedItemBuffer.flush" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "flush" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"() => void"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 39
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ]
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
}
] ,
"functions" : [
2021-03-06 02:12:28 +01:00
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.createBatchedFunction" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
"label" : "createBatchedFunction" ,
"description" : [ ] ,
2021-03-06 02:12:28 +01:00
"signature" : [
"<Func extends Fn, BatchEntry>(params: " ,
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.BatchedFunctionParams" ,
"text" : "BatchedFunctionParams"
} ,
"<Func, BatchEntry>) => [Func, " ,
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.TimedItemBuffer" ,
"text" : "TimedItemBuffer"
} ,
"<BatchEntry>]"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 21
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
"id" : "def-common.createBatchedFunction.$1" ,
"type" : "Object" ,
"tags" : [ ] ,
"label" : "params" ,
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
2021-05-06 21:29:47 +02:00
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.BatchedFunctionParams" ,
"text" : "BatchedFunctionParams"
} ,
"<Func, BatchEntry>"
2021-03-03 04:02:17 +01:00
] ,
"source" : {
2021-05-06 21:29:47 +02:00
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 22
} ,
"deprecated" : false ,
"isRequired" : true
2021-03-03 04:02:17 +01:00
}
] ,
2021-05-06 21:29:47 +02:00
"returnComment" : [ ] ,
"initialIsOpen" : false
} ,
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.normalizeError" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "normalizeError" ,
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"<E extends " ,
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.ErrorLike" ,
"text" : "ErrorLike"
} ,
" = " ,
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.ErrorLike" ,
"text" : "ErrorLike"
} ,
">(err: any) => E"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/util/normalize_error.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 11
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.normalizeError.$1" ,
"type" : "Any" ,
"tags" : [ ] ,
"label" : "err" ,
"description" : [ ] ,
"signature" : [
"any"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/util/normalize_error.ts" ,
"lineNumber" : 11
} ,
"deprecated" : false ,
"isRequired" : true
}
] ,
2021-03-03 04:02:17 +01:00
"returnComment" : [ ] ,
"initialIsOpen" : false
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.removeLeadingSlash" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
"label" : "removeLeadingSlash" ,
"description" : [ ] ,
"signature" : [
"(text: string) => string"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/util/remove_leading_slash.ts" ,
"lineNumber" : 9
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-04-15 17:36:10 +02:00
"id" : "def-common.removeLeadingSlash.$1" ,
2021-03-03 04:02:17 +01:00
"type" : "string" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "text" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
"string"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/util/remove_leading_slash.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 9
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"isRequired" : true
2021-03-03 04:02:17 +01:00
}
] ,
"returnComment" : [ ] ,
"initialIsOpen" : false
}
] ,
"interfaces" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchedFunctionParams" ,
2021-03-03 04:02:17 +01:00
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "BatchedFunctionParams" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
2021-03-06 02:12:28 +01:00
"section" : "def-common.BatchedFunctionParams" ,
"text" : "BatchedFunctionParams"
2021-03-03 04:02:17 +01:00
} ,
2021-03-06 02:12:28 +01:00
"<Func, BatchEntry>"
2021-03-03 04:02:17 +01:00
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 14
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchedFunctionParams.onCall" ,
2021-03-03 04:02:17 +01:00
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "onCall" ,
2021-03-03 04:02:17 +01:00
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"(...args: Parameters<Func>) => [ReturnType<Func>, BatchEntry]"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 15
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.args" ,
"type" : "Uncategorized" ,
"tags" : [ ] ,
"label" : "args" ,
"description" : [ ] ,
"signature" : [
"Func extends (...args: infer P) => any ? P : never"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 15
} ,
"deprecated" : false
}
]
2021-03-06 02:12:28 +01:00
} ,
2021-03-03 04:02:17 +01:00
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchedFunctionParams.onBatch" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "onBatch" ,
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"(items: BatchEntry[]) => void"
] ,
2021-03-06 02:12:28 +01:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 16
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.items" ,
"type" : "Array" ,
"tags" : [ ] ,
"label" : "items" ,
"description" : [ ] ,
"signature" : [
"BatchEntry[]"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 16
} ,
"deprecated" : false
}
]
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchedFunctionParams.flushOnMaxItems" ,
2021-03-03 04:02:17 +01:00
"type" : "number" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "flushOnMaxItems" ,
2021-03-06 02:12:28 +01:00
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"number | undefined"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 17
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchedFunctionParams.maxItemAge" ,
"type" : "number" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "maxItemAge" ,
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"number | undefined"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/buffer/create_batched_function.ts" ,
"lineNumber" : 18
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
} ,
2021-06-07 21:02:57 +02:00
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.BatchItemWrapper" ,
"type" : "Interface" ,
"tags" : [ ] ,
"label" : "BatchItemWrapper" ,
"description" : [ ] ,
"source" : {
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 23
} ,
"deprecated" : false ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.BatchItemWrapper.compressed" ,
"type" : "boolean" ,
"tags" : [ ] ,
"label" : "compressed" ,
"description" : [ ] ,
"source" : {
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 24
} ,
"deprecated" : false
} ,
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.BatchItemWrapper.payload" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "payload" ,
"description" : [ ] ,
"source" : {
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 25
} ,
"deprecated" : false
}
] ,
"initialIsOpen" : false
} ,
2021-03-03 04:02:17 +01:00
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchRequestData" ,
2021-03-03 04:02:17 +01:00
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "BatchRequestData" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
2021-03-06 02:12:28 +01:00
"section" : "def-common.BatchRequestData" ,
"text" : "BatchRequestData"
2021-03-03 04:02:17 +01:00
} ,
"<Item>"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 13
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchRequestData.batch" ,
"type" : "Array" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "batch" ,
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"Item[]"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 14
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchResponseItem" ,
2021-03-03 04:02:17 +01:00
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "BatchResponseItem" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
2021-03-06 02:12:28 +01:00
"section" : "def-common.BatchResponseItem" ,
"text" : "BatchResponseItem"
2021-03-03 04:02:17 +01:00
} ,
2021-03-06 02:12:28 +01:00
"<Result, Error>"
2021-03-03 04:02:17 +01:00
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 17
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchResponseItem.id" ,
"type" : "number" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "id" ,
2021-03-03 04:02:17 +01:00
"description" : [ ] ,
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 18
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchResponseItem.result" ,
"type" : "Uncategorized" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "result" ,
2021-03-03 04:02:17 +01:00
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"Result | undefined"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 19
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false
2021-03-03 04:02:17 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.BatchResponseItem.error" ,
"type" : "Uncategorized" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "error" ,
2021-03-03 04:02:17 +01:00
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"Error | undefined"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 20
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.ErrorLike" ,
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "ErrorLike" ,
"description" : [ ] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/batch.ts" ,
"lineNumber" : 9
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-03 04:02:17 +01:00
"id" : "def-common.ErrorLike.message" ,
"type" : "string" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-03 04:02:17 +01:00
"label" : "message" ,
"description" : [ ] ,
"source" : {
"path" : "src/plugins/bfetch/common/batch.ts" ,
2021-03-06 02:12:28 +01:00
"lineNumber" : 10
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.ItemBufferParams" ,
2021-03-03 04:02:17 +01:00
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "ItemBufferParams" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
2021-03-06 02:12:28 +01:00
"section" : "def-common.ItemBufferParams" ,
"text" : "ItemBufferParams"
2021-03-03 04:02:17 +01:00
} ,
"<Item>"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
"lineNumber" : 9
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.ItemBufferParams.flushOnMaxItems" ,
"type" : "number" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "flushOnMaxItems" ,
"description" : [
"\nFlushes buffer automatically if number of items in the buffer reaches\nthis number. Omit it or set to `Infinity` to never flush on max buffer\nsize automatically."
] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"number | undefined"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
"lineNumber" : 15
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false
2021-03-06 02:12:28 +01:00
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.ItemBufferParams.onFlush" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "onFlush" ,
"description" : [
"\nCallback that is called every time buffer is flushed. It receives a single\nargument which is a list of all buffered items. If `.flush()` is called\nwhen buffer is empty, `.onflush` is called with empty array."
] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"(items: Item[]) => void"
] ,
2021-03-06 02:12:28 +01:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
"lineNumber" : 22
} ,
2021-06-07 23:55:35 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.items" ,
"type" : "Array" ,
"tags" : [ ] ,
"label" : "items" ,
"description" : [ ] ,
"signature" : [
"Item[]"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/buffer/item_buffer.ts" ,
"lineNumber" : 22
} ,
"deprecated" : false
}
]
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.StreamingResponseHandler" ,
2021-03-03 04:02:17 +01:00
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "StreamingResponseHandler" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-03 04:02:17 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
2021-03-06 02:12:28 +01:00
"section" : "def-common.StreamingResponseHandler" ,
"text" : "StreamingResponseHandler"
2021-03-03 04:02:17 +01:00
} ,
2021-03-06 02:12:28 +01:00
"<Payload, Response>"
2021-03-03 04:02:17 +01:00
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/streaming/types.ts" ,
"lineNumber" : 11
} ,
"deprecated" : false ,
2021-03-03 04:02:17 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.StreamingResponseHandler.getResponseStream" ,
"type" : "Function" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "getResponseStream" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-06 02:12:28 +01:00
"signature" : [
"(payload: Payload) => " ,
"Observable" ,
"<Response>"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/streaming/types.ts" ,
"lineNumber" : 12
} ,
"deprecated" : false ,
2021-03-06 02:12:28 +01:00
"children" : [
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-04-15 17:36:10 +02:00
"id" : "def-common.StreamingResponseHandler.getResponseStream.$1" ,
2021-03-06 02:12:28 +01:00
"type" : "Uncategorized" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "payload" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-06 02:12:28 +01:00
"signature" : [
"Payload"
] ,
"source" : {
"path" : "src/plugins/bfetch/common/streaming/types.ts" ,
"lineNumber" : 12
2021-05-06 21:29:47 +02:00
} ,
"deprecated" : false ,
"isRequired" : true
2021-03-06 02:12:28 +01:00
}
] ,
2021-05-06 21:29:47 +02:00
"returnComment" : [ ]
2021-03-06 02:12:28 +01:00
}
] ,
"initialIsOpen" : false
} ,
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.TimedItemBufferParams" ,
"type" : "Interface" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "TimedItemBufferParams" ,
2021-05-06 21:29:47 +02:00
"description" : [ ] ,
2021-03-06 02:12:28 +01:00
"signature" : [
{
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.TimedItemBufferParams" ,
"text" : "TimedItemBufferParams"
2021-03-03 04:02:17 +01:00
} ,
2021-03-06 02:12:28 +01:00
"<Item> extends " ,
2021-03-03 04:02:17 +01:00
{
2021-03-06 02:12:28 +01:00
"pluginId" : "bfetch" ,
"scope" : "common" ,
"docId" : "kibBfetchPluginApi" ,
"section" : "def-common.ItemBufferParams" ,
"text" : "ItemBufferParams"
2021-03-03 04:02:17 +01:00
} ,
2021-03-06 02:12:28 +01:00
"<Item>"
] ,
2021-05-06 21:29:47 +02:00
"source" : {
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
"lineNumber" : 11
} ,
"deprecated" : false ,
2021-03-06 02:12:28 +01:00
"children" : [
2021-03-03 04:02:17 +01:00
{
2021-05-06 21:29:47 +02:00
"parentPluginId" : "bfetch" ,
2021-03-06 02:12:28 +01:00
"id" : "def-common.TimedItemBufferParams.maxItemAge" ,
"type" : "number" ,
2021-05-06 21:29:47 +02:00
"tags" : [ ] ,
2021-03-06 02:12:28 +01:00
"label" : "maxItemAge" ,
"description" : [
"\nFlushes buffer when oldest item reaches age specified by this parameter,\nin milliseconds."
] ,
2021-05-06 21:29:47 +02:00
"signature" : [
"number | undefined"
] ,
2021-03-03 04:02:17 +01:00
"source" : {
2021-03-06 02:12:28 +01:00
"path" : "src/plugins/bfetch/common/buffer/timed_item_buffer.ts" ,
"lineNumber" : 16
2021-03-03 04:02:17 +01:00
} ,
2021-05-06 21:29:47 +02:00
"deprecated" : false
2021-03-03 04:02:17 +01:00
}
] ,
"initialIsOpen" : false
}
] ,
"enums" : [ ] ,
2021-06-07 21:02:57 +02:00
"misc" : [
{
"parentPluginId" : "bfetch" ,
"id" : "def-common.DISABLE_BFETCH_COMPRESSION" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "DISABLE_BFETCH_COMPRESSION" ,
"description" : [ ] ,
"signature" : [
"\"bfetch:disableCompression\""
] ,
"source" : {
"path" : "src/plugins/bfetch/common/constants.ts" ,
"lineNumber" : 9
} ,
"deprecated" : false ,
"initialIsOpen" : false
}
] ,
2021-03-03 04:02:17 +01:00
"objects" : [ ]
}
}