kibana/api_docs/runtime_fields.json
Stacey Gammon 7111bcf5f4
Fix the API docs bug, where optional functions on interfaces were losing their children. (#107236) (#107905)
* Fix the bug and update tests

* update api docs

* Fix tests
# Conflicts:
#	api_docs/charts.mdx
#	api_docs/data.json
#	api_docs/data.mdx
#	api_docs/data_autocomplete.mdx
#	api_docs/data_field_formats.mdx
#	api_docs/data_index_patterns.mdx
#	api_docs/data_query.mdx
#	api_docs/data_search.json
#	api_docs/data_search.mdx
#	api_docs/data_ui.mdx
#	api_docs/deprecations_by_api.mdx
#	api_docs/deprecations_by_plugin.mdx
#	api_docs/es_ui_shared.mdx
#	api_docs/fleet.mdx
#	api_docs/reporting.json
#	api_docs/rule_registry.mdx
#	api_docs/security_solution.json
#	api_docs/security_solution.mdx
#	api_docs/timelines.json
#	api_docs/timelines.mdx
#	api_docs/visualizations.mdx
2021-08-09 12:51:00 -04:00

436 lines
14 KiB
JSON

{
"id": "runtimeFields",
"client": {
"classes": [],
"functions": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeFieldEditor",
"type": "Function",
"tags": [],
"label": "RuntimeFieldEditor",
"description": [],
"signature": [
"({ defaultValue, onChange, docLinks, ctx }: ",
{
"pluginId": "runtimeFields",
"scope": "public",
"docId": "kibRuntimeFieldsPluginApi",
"section": "def-public.Props",
"text": "Props"
},
") => JSX.Element"
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor/runtime_field_editor.tsx",
"deprecated": false,
"children": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeFieldEditor.$1",
"type": "Object",
"tags": [],
"label": "{ defaultValue, onChange, docLinks, ctx }",
"description": [],
"signature": [
{
"pluginId": "runtimeFields",
"scope": "public",
"docId": "kibRuntimeFieldsPluginApi",
"section": "def-public.Props",
"text": "Props"
}
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor/runtime_field_editor.tsx",
"deprecated": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeFieldEditorFlyoutContent",
"type": "Function",
"tags": [],
"label": "RuntimeFieldEditorFlyoutContent",
"description": [],
"signature": [
"({ onSave, onCancel, docLinks, defaultValue: field, ctx, }: ",
{
"pluginId": "runtimeFields",
"scope": "public",
"docId": "kibRuntimeFieldsPluginApi",
"section": "def-public.Props",
"text": "Props"
},
") => JSX.Element"
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false,
"children": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeFieldEditorFlyoutContent.$1",
"type": "Object",
"tags": [],
"label": "{\n onSave,\n onCancel,\n docLinks,\n defaultValue: field,\n ctx,\n}",
"description": [],
"signature": [
{
"pluginId": "runtimeFields",
"scope": "public",
"docId": "kibRuntimeFieldsPluginApi",
"section": "def-public.Props",
"text": "Props"
}
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
}
],
"interfaces": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.FormState",
"type": "Interface",
"tags": [],
"label": "FormState",
"description": [],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_form/runtime_field_form.tsx",
"deprecated": false,
"children": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.FormState.isValid",
"type": "CompoundType",
"tags": [],
"label": "isValid",
"description": [],
"signature": [
"boolean | undefined"
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_form/runtime_field_form.tsx",
"deprecated": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.FormState.isSubmitted",
"type": "boolean",
"tags": [],
"label": "isSubmitted",
"description": [],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_form/runtime_field_form.tsx",
"deprecated": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.FormState.submit",
"type": "Function",
"tags": [],
"label": "submit",
"description": [],
"signature": [
"(e?: React.FormEvent<HTMLFormElement> | React.MouseEvent<Element, MouseEvent> | undefined) => Promise<{ data: ",
{
"pluginId": "runtimeFields",
"scope": "public",
"docId": "kibRuntimeFieldsPluginApi",
"section": "def-public.RuntimeField",
"text": "RuntimeField"
},
"; isValid: boolean; }>"
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_form/runtime_field_form.tsx",
"deprecated": false,
"returnComment": [],
"children": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.e",
"type": "CompoundType",
"tags": [],
"label": "e",
"description": [],
"signature": [
"React.FormEvent<HTMLFormElement> | React.MouseEvent<Element, MouseEvent> | undefined"
],
"path": "src/plugins/es_ui_shared/static/forms/hook_form_lib/types.ts",
"deprecated": false
}
]
}
],
"initialIsOpen": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.Props",
"type": "Interface",
"tags": [],
"label": "Props",
"description": [],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false,
"children": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.Props.onSave",
"type": "Function",
"tags": [],
"label": "onSave",
"description": [
"\nHandler for the \"save\" footer button"
],
"signature": [
"(field: ",
{
"pluginId": "runtimeFields",
"scope": "public",
"docId": "kibRuntimeFieldsPluginApi",
"section": "def-public.RuntimeField",
"text": "RuntimeField"
},
") => void"
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false,
"children": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.Props.onSave.$1",
"type": "Object",
"tags": [],
"label": "field",
"description": [],
"signature": [
{
"pluginId": "runtimeFields",
"scope": "public",
"docId": "kibRuntimeFieldsPluginApi",
"section": "def-public.RuntimeField",
"text": "RuntimeField"
}
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false,
"isRequired": true
}
],
"returnComment": []
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.Props.onCancel",
"type": "Function",
"tags": [],
"label": "onCancel",
"description": [
"\nHandler for the \"cancel\" footer button"
],
"signature": [
"() => void"
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false,
"children": [],
"returnComment": []
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.Props.docLinks",
"type": "Object",
"tags": [],
"label": "docLinks",
"description": [
"\nThe docLinks start service from core"
],
"signature": [
{
"pluginId": "core",
"scope": "public",
"docId": "kibCorePluginApi",
"section": "def-public.DocLinksStart",
"text": "DocLinksStart"
}
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.Props.defaultValue",
"type": "Object",
"tags": [],
"label": "defaultValue",
"description": [
"\nAn optional runtime field to edit"
],
"signature": [
{
"pluginId": "runtimeFields",
"scope": "public",
"docId": "kibRuntimeFieldsPluginApi",
"section": "def-public.RuntimeField",
"text": "RuntimeField"
},
" | undefined"
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.Props.ctx",
"type": "Object",
"tags": [],
"label": "ctx",
"description": [
"\nOptional context object"
],
"signature": [
"{ namesNotAllowed?: string[] | undefined; existingConcreteFields?: Field[] | undefined; } | undefined"
],
"path": "x-pack/plugins/runtime_fields/public/components/runtime_field_editor_flyout_content/runtime_field_editor_flyout_content.tsx",
"deprecated": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeField",
"type": "Interface",
"tags": [],
"label": "RuntimeField",
"description": [],
"path": "x-pack/plugins/runtime_fields/public/types.ts",
"deprecated": false,
"children": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeField.name",
"type": "string",
"tags": [],
"label": "name",
"description": [],
"path": "x-pack/plugins/runtime_fields/public/types.ts",
"deprecated": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeField.type",
"type": "CompoundType",
"tags": [],
"label": "type",
"description": [],
"signature": [
"\"boolean\" | \"date\" | \"keyword\" | \"long\" | \"double\" | \"ip\""
],
"path": "x-pack/plugins/runtime_fields/public/types.ts",
"deprecated": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeField.script",
"type": "Object",
"tags": [],
"label": "script",
"description": [],
"signature": [
"{ source: string; }"
],
"path": "x-pack/plugins/runtime_fields/public/types.ts",
"deprecated": false
}
],
"initialIsOpen": false
}
],
"enums": [],
"misc": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.RUNTIME_FIELD_OPTIONS",
"type": "Array",
"tags": [],
"label": "RUNTIME_FIELD_OPTIONS",
"description": [],
"signature": [
"ComboBoxOption",
"<\"boolean\" | \"date\" | \"keyword\" | \"long\" | \"double\" | \"ip\">[]"
],
"path": "x-pack/plugins/runtime_fields/public/constants.ts",
"deprecated": false,
"initialIsOpen": false
},
{
"parentPluginId": "runtimeFields",
"id": "def-public.RuntimeType",
"type": "Type",
"tags": [],
"label": "RuntimeType",
"description": [],
"signature": [
"\"boolean\" | \"date\" | \"keyword\" | \"long\" | \"double\" | \"ip\""
],
"path": "x-pack/plugins/runtime_fields/public/types.ts",
"deprecated": false,
"initialIsOpen": false
}
],
"objects": [],
"setup": {
"parentPluginId": "runtimeFields",
"id": "def-public.PluginSetup",
"type": "Interface",
"tags": [],
"label": "PluginSetup",
"description": [],
"path": "x-pack/plugins/runtime_fields/public/types.ts",
"deprecated": false,
"children": [
{
"parentPluginId": "runtimeFields",
"id": "def-public.PluginSetup.loadEditor",
"type": "Function",
"tags": [],
"label": "loadEditor",
"description": [],
"signature": [
"() => Promise<",
"LoadEditorResponse",
">"
],
"path": "x-pack/plugins/runtime_fields/public/types.ts",
"deprecated": false,
"children": [],
"returnComment": []
}
],
"lifecycle": "setup",
"initialIsOpen": true
}
},
"server": {
"classes": [],
"functions": [],
"interfaces": [],
"enums": [],
"misc": [],
"objects": []
},
"common": {
"classes": [],
"functions": [],
"interfaces": [],
"enums": [],
"misc": [],
"objects": []
}
}