kibana/api_docs/bfetch.json
2021-06-07 17:55:35 -04:00

1750 lines
53 KiB
JSON

{
"id": "bfetch",
"client": {
"classes": [],
"functions": [
{
"parentPluginId": "bfetch",
"id": "def-public.split",
"type": "Function",
"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,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-public.split.$1",
"type": "string",
"tags": [],
"label": "delimiter",
"description": [],
"signature": [
"string"
],
"source": {
"path": "src/plugins/bfetch/public/streaming/split.ts",
"lineNumber": 25
},
"deprecated": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
}
],
"interfaces": [],
"enums": [],
"misc": [
{
"parentPluginId": "bfetch",
"id": "def-public.BatchedFunc",
"type": "Type",
"tags": [],
"label": "BatchedFunc",
"description": [],
"signature": [
"(payload: Payload, signal?: AbortSignal | undefined) => Promise<Result>"
],
"source": {
"path": "src/plugins/bfetch/public/batching/types.ts",
"lineNumber": 17
},
"deprecated": false,
"initialIsOpen": false
}
],
"objects": [],
"start": {
"parentPluginId": "bfetch",
"id": "def-public.BfetchPublicContract",
"type": "Interface",
"tags": [],
"label": "BfetchPublicContract",
"description": [],
"source": {
"path": "src/plugins/bfetch/public/plugin.ts",
"lineNumber": 23
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-public.BfetchPublicContract.fetchStreaming",
"type": "Function",
"tags": [],
"label": "fetchStreaming",
"description": [],
"signature": [
"(params: ",
"FetchStreamingParams",
") => { xhr: XMLHttpRequest; stream: ",
"Observable",
"<string>; }"
],
"source": {
"path": "src/plugins/bfetch/public/plugin.ts",
"lineNumber": 24
},
"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
}
]
},
{
"parentPluginId": "bfetch",
"id": "def-public.BfetchPublicContract.batchedFunction",
"type": "Function",
"tags": [],
"label": "batchedFunction",
"description": [],
"signature": [
"<Payload, Result extends object>(params: ",
"StreamingBatchedFunctionParams",
"<Payload, Result>) => ",
{
"pluginId": "bfetch",
"scope": "public",
"docId": "kibBfetchPluginApi",
"section": "def-public.BatchedFunc",
"text": "BatchedFunc"
},
"<Payload, Result>"
],
"source": {
"path": "src/plugins/bfetch/public/plugin.ts",
"lineNumber": 25
},
"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
}
]
}
],
"lifecycle": "start",
"initialIsOpen": true
}
},
"server": {
"classes": [],
"functions": [],
"interfaces": [
{
"parentPluginId": "bfetch",
"id": "def-server.BatchProcessingRouteParams",
"type": "Interface",
"tags": [],
"label": "BatchProcessingRouteParams",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "server",
"docId": "kibBfetchPluginApi",
"section": "def-server.BatchProcessingRouteParams",
"text": "BatchProcessingRouteParams"
},
"<BatchItemData, BatchItemResult>"
],
"source": {
"path": "src/plugins/bfetch/server/plugin.ts",
"lineNumber": 41
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-server.BatchProcessingRouteParams.onBatchItem",
"type": "Function",
"tags": [],
"label": "onBatchItem",
"description": [],
"signature": [
"(data: BatchItemData) => Promise<BatchItemResult>"
],
"source": {
"path": "src/plugins/bfetch/server/plugin.ts",
"lineNumber": 42
},
"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
}
]
}
],
"initialIsOpen": false
}
],
"enums": [],
"misc": [
{
"parentPluginId": "bfetch",
"id": "def-server.StreamingRequestHandler",
"type": "Type",
"tags": [],
"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>>"
],
"source": {
"path": "src/plugins/bfetch/server/types.ts",
"lineNumber": 18
},
"deprecated": false,
"initialIsOpen": false
}
],
"objects": [],
"setup": {
"parentPluginId": "bfetch",
"id": "def-server.BfetchServerSetup",
"type": "Interface",
"tags": [],
"label": "BfetchServerSetup",
"description": [],
"source": {
"path": "src/plugins/bfetch/server/plugin.ts",
"lineNumber": 46
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-server.BfetchServerSetup.addBatchProcessingRoute",
"type": "Function",
"tags": [],
"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"
],
"source": {
"path": "src/plugins/bfetch/server/plugin.ts",
"lineNumber": 47
},
"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
}
]
},
{
"parentPluginId": "bfetch",
"id": "def-server.BfetchServerSetup.addStreamingResponseRoute",
"type": "Function",
"tags": [],
"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"
],
"source": {
"path": "src/plugins/bfetch/server/plugin.ts",
"lineNumber": 51
},
"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
}
]
},
{
"parentPluginId": "bfetch",
"id": "def-server.BfetchServerSetup.createStreamingRequestHandler",
"type": "Function",
"tags": [],
"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"
},
"<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>; }>"
],
"source": {
"path": "src/plugins/bfetch/server/plugin.ts",
"lineNumber": 83
},
"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
}
]
}
],
"lifecycle": "setup",
"initialIsOpen": true
},
"start": {
"parentPluginId": "bfetch",
"id": "def-server.BfetchServerStart",
"type": "Interface",
"tags": [],
"label": "BfetchServerStart",
"description": [],
"source": {
"path": "src/plugins/bfetch/server/plugin.ts",
"lineNumber": 96
},
"deprecated": false,
"children": [],
"lifecycle": "start",
"initialIsOpen": true
}
},
"common": {
"classes": [
{
"parentPluginId": "bfetch",
"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>"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 29
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBuffer.Unnamed",
"type": "Function",
"tags": [],
"label": "Constructor",
"description": [],
"signature": [
"any"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 32
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBuffer.Unnamed.$1",
"type": "Object",
"tags": [],
"label": "params",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.ItemBufferParams",
"text": "ItemBufferParams"
},
"<Item>"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 32
},
"deprecated": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBuffer.length",
"type": "number",
"tags": [],
"label": "length",
"description": [
"\nGet current buffer size."
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 37
},
"deprecated": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBuffer.write",
"type": "Function",
"tags": [],
"label": "write",
"description": [
"\nAdd item to the buffer."
],
"signature": [
"(item: Item) => void"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 44
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBuffer.write.$1",
"type": "Uncategorized",
"tags": [],
"label": "item",
"description": [],
"signature": [
"Item"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 44
},
"deprecated": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBuffer.clear",
"type": "Function",
"tags": [],
"label": "clear",
"description": [
"\nRemove all items from the buffer."
],
"signature": [
"() => void"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 58
},
"deprecated": false,
"children": [],
"returnComment": []
},
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBuffer.flush",
"type": "Function",
"tags": [],
"label": "flush",
"description": [
"\nCall `.onflush` method and clear buffer."
],
"signature": [
"() => void"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 65
},
"deprecated": false,
"children": [],
"returnComment": []
}
],
"initialIsOpen": false
},
{
"parentPluginId": "bfetch",
"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>"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/timed_item_buffer.ts",
"lineNumber": 19
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.TimedItemBuffer.Unnamed",
"type": "Function",
"tags": [],
"label": "Constructor",
"description": [],
"signature": [
"any"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/timed_item_buffer.ts",
"lineNumber": 22
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.TimedItemBuffer.Unnamed.$1",
"type": "Object",
"tags": [],
"label": "params",
"description": [],
"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",
"lineNumber": 22
},
"deprecated": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "bfetch",
"id": "def-common.TimedItemBuffer.write",
"type": "Function",
"tags": [],
"label": "write",
"description": [],
"signature": [
"(item: Item) => void"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/timed_item_buffer.ts",
"lineNumber": 26
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.TimedItemBuffer.write.$1",
"type": "Uncategorized",
"tags": [],
"label": "item",
"description": [],
"signature": [
"Item"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/timed_item_buffer.ts",
"lineNumber": 26
},
"deprecated": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "bfetch",
"id": "def-common.TimedItemBuffer.clear",
"type": "Function",
"tags": [],
"label": "clear",
"description": [],
"signature": [
"() => void"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/timed_item_buffer.ts",
"lineNumber": 34
},
"deprecated": false,
"children": [],
"returnComment": []
},
{
"parentPluginId": "bfetch",
"id": "def-common.TimedItemBuffer.flush",
"type": "Function",
"tags": [],
"label": "flush",
"description": [],
"signature": [
"() => void"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/timed_item_buffer.ts",
"lineNumber": 39
},
"deprecated": false,
"children": [],
"returnComment": []
}
],
"initialIsOpen": false
}
],
"functions": [
{
"parentPluginId": "bfetch",
"id": "def-common.createBatchedFunction",
"type": "Function",
"tags": [],
"label": "createBatchedFunction",
"description": [],
"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
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.createBatchedFunction.$1",
"type": "Object",
"tags": [],
"label": "params",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.BatchedFunctionParams",
"text": "BatchedFunctionParams"
},
"<Func, BatchEntry>"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/create_batched_function.ts",
"lineNumber": 22
},
"deprecated": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.normalizeError",
"type": "Function",
"tags": [],
"label": "normalizeError",
"description": [],
"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",
"lineNumber": 11
},
"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
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.removeLeadingSlash",
"type": "Function",
"tags": [],
"label": "removeLeadingSlash",
"description": [],
"signature": [
"(text: string) => string"
],
"source": {
"path": "src/plugins/bfetch/common/util/remove_leading_slash.ts",
"lineNumber": 9
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.removeLeadingSlash.$1",
"type": "string",
"tags": [],
"label": "text",
"description": [],
"signature": [
"string"
],
"source": {
"path": "src/plugins/bfetch/common/util/remove_leading_slash.ts",
"lineNumber": 9
},
"deprecated": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
}
],
"interfaces": [
{
"parentPluginId": "bfetch",
"id": "def-common.BatchedFunctionParams",
"type": "Interface",
"tags": [],
"label": "BatchedFunctionParams",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.BatchedFunctionParams",
"text": "BatchedFunctionParams"
},
"<Func, BatchEntry>"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/create_batched_function.ts",
"lineNumber": 14
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.BatchedFunctionParams.onCall",
"type": "Function",
"tags": [],
"label": "onCall",
"description": [],
"signature": [
"(...args: Parameters<Func>) => [ReturnType<Func>, BatchEntry]"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/create_batched_function.ts",
"lineNumber": 15
},
"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
}
]
},
{
"parentPluginId": "bfetch",
"id": "def-common.BatchedFunctionParams.onBatch",
"type": "Function",
"tags": [],
"label": "onBatch",
"description": [],
"signature": [
"(items: BatchEntry[]) => void"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/create_batched_function.ts",
"lineNumber": 16
},
"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
}
]
},
{
"parentPluginId": "bfetch",
"id": "def-common.BatchedFunctionParams.flushOnMaxItems",
"type": "number",
"tags": [],
"label": "flushOnMaxItems",
"description": [],
"signature": [
"number | undefined"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/create_batched_function.ts",
"lineNumber": 17
},
"deprecated": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.BatchedFunctionParams.maxItemAge",
"type": "number",
"tags": [],
"label": "maxItemAge",
"description": [],
"signature": [
"number | undefined"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/create_batched_function.ts",
"lineNumber": 18
},
"deprecated": false
}
],
"initialIsOpen": false
},
{
"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
},
{
"parentPluginId": "bfetch",
"id": "def-common.BatchRequestData",
"type": "Interface",
"tags": [],
"label": "BatchRequestData",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.BatchRequestData",
"text": "BatchRequestData"
},
"<Item>"
],
"source": {
"path": "src/plugins/bfetch/common/batch.ts",
"lineNumber": 13
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.BatchRequestData.batch",
"type": "Array",
"tags": [],
"label": "batch",
"description": [],
"signature": [
"Item[]"
],
"source": {
"path": "src/plugins/bfetch/common/batch.ts",
"lineNumber": 14
},
"deprecated": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.BatchResponseItem",
"type": "Interface",
"tags": [],
"label": "BatchResponseItem",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.BatchResponseItem",
"text": "BatchResponseItem"
},
"<Result, Error>"
],
"source": {
"path": "src/plugins/bfetch/common/batch.ts",
"lineNumber": 17
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.BatchResponseItem.id",
"type": "number",
"tags": [],
"label": "id",
"description": [],
"source": {
"path": "src/plugins/bfetch/common/batch.ts",
"lineNumber": 18
},
"deprecated": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.BatchResponseItem.result",
"type": "Uncategorized",
"tags": [],
"label": "result",
"description": [],
"signature": [
"Result | undefined"
],
"source": {
"path": "src/plugins/bfetch/common/batch.ts",
"lineNumber": 19
},
"deprecated": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.BatchResponseItem.error",
"type": "Uncategorized",
"tags": [],
"label": "error",
"description": [],
"signature": [
"Error | undefined"
],
"source": {
"path": "src/plugins/bfetch/common/batch.ts",
"lineNumber": 20
},
"deprecated": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.ErrorLike",
"type": "Interface",
"tags": [],
"label": "ErrorLike",
"description": [],
"source": {
"path": "src/plugins/bfetch/common/batch.ts",
"lineNumber": 9
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.ErrorLike.message",
"type": "string",
"tags": [],
"label": "message",
"description": [],
"source": {
"path": "src/plugins/bfetch/common/batch.ts",
"lineNumber": 10
},
"deprecated": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBufferParams",
"type": "Interface",
"tags": [],
"label": "ItemBufferParams",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.ItemBufferParams",
"text": "ItemBufferParams"
},
"<Item>"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 9
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBufferParams.flushOnMaxItems",
"type": "number",
"tags": [],
"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."
],
"signature": [
"number | undefined"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 15
},
"deprecated": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.ItemBufferParams.onFlush",
"type": "Function",
"tags": [],
"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."
],
"signature": [
"(items: Item[]) => void"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/item_buffer.ts",
"lineNumber": 22
},
"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
}
]
}
],
"initialIsOpen": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.StreamingResponseHandler",
"type": "Interface",
"tags": [],
"label": "StreamingResponseHandler",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.StreamingResponseHandler",
"text": "StreamingResponseHandler"
},
"<Payload, Response>"
],
"source": {
"path": "src/plugins/bfetch/common/streaming/types.ts",
"lineNumber": 11
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.StreamingResponseHandler.getResponseStream",
"type": "Function",
"tags": [],
"label": "getResponseStream",
"description": [],
"signature": [
"(payload: Payload) => ",
"Observable",
"<Response>"
],
"source": {
"path": "src/plugins/bfetch/common/streaming/types.ts",
"lineNumber": 12
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.StreamingResponseHandler.getResponseStream.$1",
"type": "Uncategorized",
"tags": [],
"label": "payload",
"description": [],
"signature": [
"Payload"
],
"source": {
"path": "src/plugins/bfetch/common/streaming/types.ts",
"lineNumber": 12
},
"deprecated": false,
"isRequired": true
}
],
"returnComment": []
}
],
"initialIsOpen": false
},
{
"parentPluginId": "bfetch",
"id": "def-common.TimedItemBufferParams",
"type": "Interface",
"tags": [],
"label": "TimedItemBufferParams",
"description": [],
"signature": [
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.TimedItemBufferParams",
"text": "TimedItemBufferParams"
},
"<Item> extends ",
{
"pluginId": "bfetch",
"scope": "common",
"docId": "kibBfetchPluginApi",
"section": "def-common.ItemBufferParams",
"text": "ItemBufferParams"
},
"<Item>"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/timed_item_buffer.ts",
"lineNumber": 11
},
"deprecated": false,
"children": [
{
"parentPluginId": "bfetch",
"id": "def-common.TimedItemBufferParams.maxItemAge",
"type": "number",
"tags": [],
"label": "maxItemAge",
"description": [
"\nFlushes buffer when oldest item reaches age specified by this parameter,\nin milliseconds."
],
"signature": [
"number | undefined"
],
"source": {
"path": "src/plugins/bfetch/common/buffer/timed_item_buffer.ts",
"lineNumber": 16
},
"deprecated": false
}
],
"initialIsOpen": false
}
],
"enums": [],
"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
}
],
"objects": []
}
}