Skip to content

Commit 995e02e

Browse files
committed
update generated doc
1 parent c0725d3 commit 995e02e

15 files changed

Lines changed: 292 additions & 8 deletions

docs/development/core/public/kibana-plugin-public.savedobjectsclient.find.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ Search for objects
99
<b>Signature:</b>
1010

1111
```typescript
12-
find: <T extends SavedObjectAttributes>(options: Pick<SavedObjectFindOptionsServer, "search" | "filter" | "type" | "page" | "fields" | "searchFields" | "defaultSearchOperator" | "hasReference" | "sortField" | "perPage">) => Promise<SavedObjectsFindResponsePublic<T>>;
12+
find: <T extends SavedObjectAttributes>(options: Pick<SavedObjectFindOptionsServer, "search" | "filter" | "type" | "page" | "perPage" | "sortField" | "fields" | "searchFields" | "hasReference" | "defaultSearchOperator">) => Promise<SavedObjectsFindResponsePublic<T>>;
1313
```

docs/development/core/public/kibana-plugin-public.savedobjectsclient.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export declare class SavedObjectsClient
2020
| [bulkGet](./kibana-plugin-public.savedobjectsclient.bulkget.md) | | <code>(objects?: {</code><br/><code> id: string;</code><br/><code> type: string;</code><br/><code> }[]) =&gt; Promise&lt;SavedObjectsBatchResponse&lt;SavedObjectAttributes&gt;&gt;</code> | Returns an array of objects by id |
2121
| [create](./kibana-plugin-public.savedobjectsclient.create.md) | | <code>&lt;T extends SavedObjectAttributes&gt;(type: string, attributes: T, options?: SavedObjectsCreateOptions) =&gt; Promise&lt;SimpleSavedObject&lt;T&gt;&gt;</code> | Persists an object |
2222
| [delete](./kibana-plugin-public.savedobjectsclient.delete.md) | | <code>(type: string, id: string) =&gt; Promise&lt;{}&gt;</code> | Deletes an object |
23-
| [find](./kibana-plugin-public.savedobjectsclient.find.md) | | <code>&lt;T extends SavedObjectAttributes&gt;(options: Pick&lt;SavedObjectFindOptionsServer, &quot;search&quot; &#124; &quot;filter&quot; &#124; &quot;type&quot; &#124; &quot;page&quot; &#124; &quot;fields&quot; &#124; &quot;searchFields&quot; &#124; &quot;defaultSearchOperator&quot; &#124; &quot;hasReference&quot; &#124; &quot;sortField&quot; &#124; &quot;perPage&quot;&gt;) =&gt; Promise&lt;SavedObjectsFindResponsePublic&lt;T&gt;&gt;</code> | Search for objects |
23+
| [find](./kibana-plugin-public.savedobjectsclient.find.md) | | <code>&lt;T extends SavedObjectAttributes&gt;(options: Pick&lt;SavedObjectFindOptionsServer, &quot;search&quot; &#124; &quot;filter&quot; &#124; &quot;type&quot; &#124; &quot;page&quot; &#124; &quot;perPage&quot; &#124; &quot;sortField&quot; &#124; &quot;fields&quot; &#124; &quot;searchFields&quot; &#124; &quot;hasReference&quot; &#124; &quot;defaultSearchOperator&quot;&gt;) =&gt; Promise&lt;SavedObjectsFindResponsePublic&lt;T&gt;&gt;</code> | Search for objects |
2424
| [get](./kibana-plugin-public.savedobjectsclient.get.md) | | <code>&lt;T extends SavedObjectAttributes&gt;(type: string, id: string) =&gt; Promise&lt;SimpleSavedObject&lt;T&gt;&gt;</code> | Fetches a single object |
2525

2626
## Methods
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [ConfigDeprecation](./kibana-plugin-server.configdeprecation.md)
4+
5+
## ConfigDeprecation type
6+
7+
Configuration deprecation returned from [ConfigDeprecationProvider](./kibana-plugin-server.configdeprecationprovider.md) that handles a single deprecation from the configuration.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare type ConfigDeprecation = (config: Record<string, any>, fromPath: string, logger: ConfigDeprecationLogger) => Record<string, any>;
13+
```
14+
15+
## Remarks
16+
17+
This should only be manually implemented if [ConfigDeprecationFactory](./kibana-plugin-server.configdeprecationfactory.md) does not provide the proper helpers for a specific deprecation need.
18+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [ConfigDeprecationFactory](./kibana-plugin-server.configdeprecationfactory.md)
4+
5+
## ConfigDeprecationFactory interface
6+
7+
Provides helpers to generates the most commonly used [ConfigDeprecation](./kibana-plugin-server.configdeprecation.md) when invoking a [ConfigDeprecationProvider](./kibana-plugin-server.configdeprecationprovider.md)<!-- -->.
8+
9+
See methods documentation for more detailed examples.
10+
11+
<b>Signature:</b>
12+
13+
```typescript
14+
export interface ConfigDeprecationFactory
15+
```
16+
17+
## Methods
18+
19+
| Method | Description |
20+
| --- | --- |
21+
| [rename(oldKey, newKey)](./kibana-plugin-server.configdeprecationfactory.rename.md) | Rename a configuration property from inside a plugin's configuration path. Will log a deprecation warning if the oldKey was found and deprecation applied. |
22+
| [renameFromRoot(oldKey, newKey)](./kibana-plugin-server.configdeprecationfactory.renamefromroot.md) | Rename a configuration property from the root configuration. Will log a deprecation warning if the oldKey was found and deprecation applied.<!-- -->This should be only used when renaming properties from different configuration's path. To rename properties from inside a plugin's configuration, use 'rename' instead. |
23+
| [unused(unusedKey)](./kibana-plugin-server.configdeprecationfactory.unused.md) | Remove a configuration property from inside a plugin's configuration path. Will log a deprecation warning if the unused key was found and deprecation applied. |
24+
| [unusedFromRoot(unusedKey)](./kibana-plugin-server.configdeprecationfactory.unusedfromroot.md) | Remove a configuration property from the root configuration. Will log a deprecation warning if the unused key was found and deprecation applied.<!-- -->This should be only used when removing properties from outside of a plugin's configuration. To remove properties from inside a plugin's configuration, use 'unused' instead. |
25+
26+
## Example
27+
28+
29+
```typescript
30+
const provider: ConfigDeprecationProvider = ({ rename, unused }) => [
31+
rename('oldKey', 'newKey'),
32+
unused('deprecatedKey'),
33+
]
34+
35+
```
36+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [ConfigDeprecationFactory](./kibana-plugin-server.configdeprecationfactory.md) &gt; [rename](./kibana-plugin-server.configdeprecationfactory.rename.md)
4+
5+
## ConfigDeprecationFactory.rename() method
6+
7+
Rename a configuration property from inside a plugin's configuration path. Will log a deprecation warning if the oldKey was found and deprecation applied.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
rename(oldKey: string, newKey: string): ConfigDeprecation;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| oldKey | <code>string</code> | |
20+
| newKey | <code>string</code> | |
21+
22+
<b>Returns:</b>
23+
24+
`ConfigDeprecation`
25+
26+
## Example
27+
28+
Rename 'myplugin.oldKey' to 'myplugin.newKey'
29+
30+
```typescript
31+
const provider: ConfigDeprecationProvider = ({ rename }) => [
32+
rename('oldKey', 'newKey'),
33+
]
34+
35+
```
36+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [ConfigDeprecationFactory](./kibana-plugin-server.configdeprecationfactory.md) &gt; [renameFromRoot](./kibana-plugin-server.configdeprecationfactory.renamefromroot.md)
4+
5+
## ConfigDeprecationFactory.renameFromRoot() method
6+
7+
Rename a configuration property from the root configuration. Will log a deprecation warning if the oldKey was found and deprecation applied.
8+
9+
This should be only used when renaming properties from different configuration's path. To rename properties from inside a plugin's configuration, use 'rename' instead.
10+
11+
<b>Signature:</b>
12+
13+
```typescript
14+
renameFromRoot(oldKey: string, newKey: string): ConfigDeprecation;
15+
```
16+
17+
## Parameters
18+
19+
| Parameter | Type | Description |
20+
| --- | --- | --- |
21+
| oldKey | <code>string</code> | |
22+
| newKey | <code>string</code> | |
23+
24+
<b>Returns:</b>
25+
26+
`ConfigDeprecation`
27+
28+
## Example
29+
30+
Rename 'oldplugin.key' to 'newplugin.key'
31+
32+
```typescript
33+
const provider: ConfigDeprecationProvider = ({ renameFromRoot }) => [
34+
renameFromRoot('oldplugin.key', 'newplugin.key'),
35+
]
36+
37+
```
38+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [ConfigDeprecationFactory](./kibana-plugin-server.configdeprecationfactory.md) &gt; [unused](./kibana-plugin-server.configdeprecationfactory.unused.md)
4+
5+
## ConfigDeprecationFactory.unused() method
6+
7+
Remove a configuration property from inside a plugin's configuration path. Will log a deprecation warning if the unused key was found and deprecation applied.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
unused(unusedKey: string): ConfigDeprecation;
13+
```
14+
15+
## Parameters
16+
17+
| Parameter | Type | Description |
18+
| --- | --- | --- |
19+
| unusedKey | <code>string</code> | |
20+
21+
<b>Returns:</b>
22+
23+
`ConfigDeprecation`
24+
25+
## Example
26+
27+
Flags 'myplugin.deprecatedKey' as unused
28+
29+
```typescript
30+
const provider: ConfigDeprecationProvider = ({ unused }) => [
31+
unused('deprecatedKey'),
32+
]
33+
34+
```
35+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [ConfigDeprecationFactory](./kibana-plugin-server.configdeprecationfactory.md) &gt; [unusedFromRoot](./kibana-plugin-server.configdeprecationfactory.unusedfromroot.md)
4+
5+
## ConfigDeprecationFactory.unusedFromRoot() method
6+
7+
Remove a configuration property from the root configuration. Will log a deprecation warning if the unused key was found and deprecation applied.
8+
9+
This should be only used when removing properties from outside of a plugin's configuration. To remove properties from inside a plugin's configuration, use 'unused' instead.
10+
11+
<b>Signature:</b>
12+
13+
```typescript
14+
unusedFromRoot(unusedKey: string): ConfigDeprecation;
15+
```
16+
17+
## Parameters
18+
19+
| Parameter | Type | Description |
20+
| --- | --- | --- |
21+
| unusedKey | <code>string</code> | |
22+
23+
<b>Returns:</b>
24+
25+
`ConfigDeprecation`
26+
27+
## Example
28+
29+
Flags 'somepath.deprecatedProperty' as unused
30+
31+
```typescript
32+
const provider: ConfigDeprecationProvider = ({ unusedFromRoot }) => [
33+
unusedFromRoot('somepath.deprecatedProperty'),
34+
]
35+
36+
```
37+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [ConfigDeprecationLogger](./kibana-plugin-server.configdeprecationlogger.md)
4+
5+
## ConfigDeprecationLogger type
6+
7+
Logger interface used when invoking a [ConfigDeprecation](./kibana-plugin-server.configdeprecation.md)
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare type ConfigDeprecationLogger = (message: string) => void;
13+
```
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-server](./kibana-plugin-server.md) &gt; [ConfigDeprecationProvider](./kibana-plugin-server.configdeprecationprovider.md)
4+
5+
## ConfigDeprecationProvider type
6+
7+
A provider that should returns a list of [ConfigDeprecation](./kibana-plugin-server.configdeprecation.md)<!-- -->.
8+
9+
See [ConfigDeprecationFactory](./kibana-plugin-server.configdeprecationfactory.md) for more usage examples.
10+
11+
<b>Signature:</b>
12+
13+
```typescript
14+
export declare type ConfigDeprecationProvider = (factory: ConfigDeprecationFactory) => ConfigDeprecation[];
15+
```
16+
17+
## Example
18+
19+
20+
```typescript
21+
const provider: ConfigDeprecationProvider = ({ rename, unused }) => [
22+
rename('oldKey', 'newKey'),
23+
unused('deprecatedKey'),
24+
myCustomDeprecation,
25+
]
26+
27+
```
28+

0 commit comments

Comments
 (0)