Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial server-side support for sharing saved-objects phase 1.5 #66089

Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
278d345
Add error attribute to SavedObject.error type, update unit tests
jportner Apr 25, 2020
9ee94b2
Modify saved object import function contracts to use type registry
jportner Apr 25, 2020
8c4ec16
Add optional `originId` field to saved objects
jportner Apr 25, 2020
c4fa88a
Change saved object export to omit `namespaces` field
jportner Apr 25, 2020
c1735a6
Modify `bulkCreate` to differentiate between conflict types
jportner Apr 25, 2020
519c260
Add `rawSearchFields` option to `SavedObjectsClient.find` function
jportner Apr 25, 2020
7835833
Validate import objects and retries for uniqueness
jportner May 5, 2020
9e87a9a
Server-side support for importing multi-namespace saved objects
jportner May 5, 2020
924ef96
Server-side support for "duplicate" resolution of import conflicts
jportner May 6, 2020
3741526
Fix existing Spaces API integration tests and refactor
jportner May 7, 2020
a49f114
Add and update API integration tests for Saved Objects and Spaces
jportner May 11, 2020
8ab0a11
API docs changes
jportner May 12, 2020
2d84ae2
Add `originId` field to default saved object mappings
jportner May 13, 2020
7954483
Add `destinationId?` to `SavedObjectsImportConflictError` type
jportner May 19, 2020
01ef8bd
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jun 2, 2020
f9cb833
Remove "duplicate" resolution of import conflicts
jportner Jun 2, 2020
69eba2e
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jun 3, 2020
5614bbe
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jun 8, 2020
ab46928
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jun 12, 2020
0f273e5
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jun 15, 2020
19bdeea
Address first round of PR review feedback
jportner Jun 15, 2020
16fc13a
Add `checkConflicts` API to Saved Objects Client
jportner Jun 18, 2020
1dfe7eb
Rename `newId` to `destinationId`
jportner Jun 18, 2020
bb2c7d3
Suppress "ambiguous source" conflict errors
jportner Jun 18, 2020
c9b5391
Merge branch 'master' into HEAD
jportner Jun 26, 2020
76885b2
Unskip tests
jportner Jun 23, 2020
f8776d1
Rename `import/check_conflicts` sub-module
jportner Jun 23, 2020
d65912b
Change import APIs to check for conflicts before creating objects
jportner Jun 24, 2020
4d57561
Fix mock for `find` results
jportner Jun 26, 2020
26db438
Add "true copy" mode for imports
jportner Jun 26, 2020
9289674
Fix `copyToSpace` integration test
jportner Jun 27, 2020
6496c25
Add "true copy" mode for resolving import errors
jportner Jun 28, 2020
0bae0c9
Change `idToOverwrite` field on retry object to `destinationId`
jportner Jun 28, 2020
061f4f7
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jun 29, 2020
2cbdb75
Clean up Jest integration tests
jportner Jun 29, 2020
f5c56cf
Change outbound reference IDs when import IDs are regenerated
jportner Jun 29, 2020
d30bdfe
Make Jest integration test more realistic
jportner Jun 29, 2020
7badeac
Change import APIs to not create any objects until errors resolved
jportner Jun 29, 2020
af9db43
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jun 30, 2020
5e70f38
Fix return conflict errors when importing with unresolved errors
jportner Jun 30, 2020
47590a6
Added `trueCopy` field to import success results and retries
jportner Jun 30, 2020
4a1aec9
Merge branch 'master' into pr/jportner/66089
jportner Jul 7, 2020
19dc294
Fix CI errors after merge
jportner Jul 7, 2020
ad92b1a
Change import API's `importIdMap`
jportner Jul 7, 2020
e45adab
True copy: regenerate IDs for resolved missing_reference errors
jportner Jul 7, 2020
25cc72a
Address 2nd round of reviews / nits
jportner Jul 7, 2020
51e05f5
Rename `trueCopy` mode to `createNewCopies`
jportner Jul 7, 2020
b255efb
Clean up copy_to_spaces tests
jportner Jul 8, 2020
45b37c6
Fix integration tests that broke due to `trueCopy` rename
jportner Jul 8, 2020
3538c2b
Change CTS to omit namespace-agnostic object types before import
jportner Jul 8, 2020
2177c4a
Limit concurrent search requests
jportner Jul 8, 2020
3c632db
Updated dev docs for Import and Copy API routes
jportner Jul 8, 2020
0447690
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jul 13, 2020
dd25fbc
Add inline links from Import docs to Spaces docs
jportner Jul 13, 2020
ba47780
Fix jest test that failed due to recent merge
jportner Jul 13, 2020
5245b66
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jul 14, 2020
6ebf12a
Fix functional test failures after merge
jportner Jul 14, 2020
48feb3e
Fix type check
jportner Jul 14, 2020
8ec0e37
Fix unit test... (╯°□°)╯︵ ┻━┻
jportner Jul 14, 2020
6136bb0
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jul 15, 2020
3303559
Rename `rawSearchFields` to `rootSearchFields`
jportner Jul 15, 2020
90bb5a9
Address most nits from fourth review
jportner Jul 15, 2020
ced0415
Remove deprecations
jportner Jul 15, 2020
3570482
Refactor parameters of import modules
jportner Jul 15, 2020
6a67e37
`@ts-ignore` -> `@ts-expect-error`
jportner Jul 15, 2020
ee8a6aa
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jul 16, 2020
9d7b755
Address fifth round of feedback
jportner Jul 16, 2020
842b0df
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Jul 23, 2020
8cbdc7c
Merge branch 'master' into pr/jportner/66089
jportner Jul 30, 2020
077d52b
Fix type check
jportner Jul 31, 2020
3133deb
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Aug 10, 2020
7e9736c
Merge branch 'security/sharing-saved-objects-1.5' into pr/jportner/66089
jportner Aug 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/development/core/public/kibana-plugin-core-public.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ The plugin integrates with the core system via lifecycle events: `setup`<!-- -->
| [SavedObjectsCreateOptions](./kibana-plugin-core-public.savedobjectscreateoptions.md) | |
| [SavedObjectsFindOptions](./kibana-plugin-core-public.savedobjectsfindoptions.md) | |
| [SavedObjectsFindResponsePublic](./kibana-plugin-core-public.savedobjectsfindresponsepublic.md) | Return type of the Saved Objects <code>find()</code> method.<!-- -->\*Note\*: this type is different between the Public and Server Saved Objects clients. |
| [SavedObjectsImportAmbiguousConflictError](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.md) | Represents a failure to import due to a conflict, which can be resolved in different ways with an overwrite. |
| [SavedObjectsImportConflictError](./kibana-plugin-core-public.savedobjectsimportconflicterror.md) | Represents a failure to import due to a conflict. |
| [SavedObjectsImportError](./kibana-plugin-core-public.savedobjectsimporterror.md) | Represents a failure to import. |
| [SavedObjectsImportMissingReferencesError](./kibana-plugin-core-public.savedobjectsimportmissingreferenceserror.md) | Represents a failure to import due to missing references. |
| [SavedObjectsImportResponse](./kibana-plugin-core-public.savedobjectsimportresponse.md) | The response describing the result of an import. |
| [SavedObjectsImportRetry](./kibana-plugin-core-public.savedobjectsimportretry.md) | Describes a retry operation for importing a saved object. |
| [SavedObjectsImportSuccess](./kibana-plugin-core-public.savedobjectsimportsuccess.md) | Represents a successful import. |
| [SavedObjectsImportUnknownError](./kibana-plugin-core-public.savedobjectsimportunknownerror.md) | Represents a failure to import due to an unknown reason. |
| [SavedObjectsImportUnsupportedTypeError](./kibana-plugin-core-public.savedobjectsimportunsupportedtypeerror.md) | Represents a failure to import due to having an unsupported saved object type. |
| [SavedObjectsMigrationVersion](./kibana-plugin-core-public.savedobjectsmigrationversion.md) | Information about the migrations that have been applied to this SavedObject. When Kibana starts up, KibanaMigrator detects outdated documents and migrates them based on this value. For each migration that has been applied, the plugin's name is used as a key and the latest migration version as the value. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,5 @@
<b>Signature:</b>

```typescript
error?: {
message: string;
statusCode: number;
};
error?: SavedObjectError;
```
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ export interface SavedObject<T = unknown>
| Property | Type | Description |
| --- | --- | --- |
| [attributes](./kibana-plugin-core-public.savedobject.attributes.md) | <code>T</code> | The data for a Saved Object is stored as an object in the <code>attributes</code> property. |
| [error](./kibana-plugin-core-public.savedobject.error.md) | <code>{</code><br/><code> message: string;</code><br/><code> statusCode: number;</code><br/><code> }</code> | |
| [error](./kibana-plugin-core-public.savedobject.error.md) | <code>SavedObjectError</code> | |
| [id](./kibana-plugin-core-public.savedobject.id.md) | <code>string</code> | The ID of this Saved Object, guaranteed to be unique for all objects of the same <code>type</code> |
| [migrationVersion](./kibana-plugin-core-public.savedobject.migrationversion.md) | <code>SavedObjectsMigrationVersion</code> | Information about the migrations that have been applied to this SavedObject. When Kibana starts up, KibanaMigrator detects outdated documents and migrates them based on this value. For each migration that has been applied, the plugin's name is used as a key and the latest migration version as the value. |
| [namespaces](./kibana-plugin-core-public.savedobject.namespaces.md) | <code>string[]</code> | Namespace(s) that this saved object exists in. This attribute is only used for multi-namespace saved object types. |
| [originId](./kibana-plugin-core-public.savedobject.originid.md) | <code>string</code> | The ID of the saved object this originated from. This is set if this object's <code>id</code> was regenerated; that can happen during migration from a legacy single-namespace type, or during import. It is only set during migration or create operations. This is used during import to ensure that ID regeneration is deterministic, so saved objects will be overwritten if they are imported multiple times into a given space. |
| [references](./kibana-plugin-core-public.savedobject.references.md) | <code>SavedObjectReference[]</code> | A reference to another saved object. |
| [type](./kibana-plugin-core-public.savedobject.type.md) | <code>string</code> | The type of Saved Object. Each plugin can define it's own custom Saved Object types. |
| [updated\_at](./kibana-plugin-core-public.savedobject.updated_at.md) | <code>string</code> | Timestamp of the last time this document had been updated. |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObject](./kibana-plugin-core-public.savedobject.md) &gt; [originId](./kibana-plugin-core-public.savedobject.originid.md)

## SavedObject.originId property

The ID of the saved object this originated from. This is set if this object's `id` was regenerated; that can happen during migration from a legacy single-namespace type, or during import. It is only set during migration or create operations. This is used during import to ensure that ID regeneration is deterministic, so saved objects will be overwritten if they are imported multiple times into a given space.

<b>Signature:</b>

```typescript
originId?: string;
```
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface SavedObjectsFindOptions extends SavedObjectsBaseOptions
| [page](./kibana-plugin-core-public.savedobjectsfindoptions.page.md) | <code>number</code> | |
| [perPage](./kibana-plugin-core-public.savedobjectsfindoptions.perpage.md) | <code>number</code> | |
| [preference](./kibana-plugin-core-public.savedobjectsfindoptions.preference.md) | <code>string</code> | An optional ES preference value to be used for the query \* |
| [rawSearchFields](./kibana-plugin-core-public.savedobjectsfindoptions.rawsearchfields.md) | <code>string[]</code> | The fields to perform the parsed query against. Unlike the <code>searchFields</code> argument, these are expected to be raw and will not be modified. If used in conjunction with <code>searchFields</code>, both are concatenated together. |
| [search](./kibana-plugin-core-public.savedobjectsfindoptions.search.md) | <code>string</code> | Search documents using the Elasticsearch Simple Query String syntax. See Elasticsearch Simple Query String <code>query</code> argument for more information |
| [searchFields](./kibana-plugin-core-public.savedobjectsfindoptions.searchfields.md) | <code>string[]</code> | The fields to perform the parsed query against. See Elasticsearch Simple Query String <code>fields</code> argument for more information |
| [sortField](./kibana-plugin-core-public.savedobjectsfindoptions.sortfield.md) | <code>string</code> | |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsFindOptions](./kibana-plugin-core-public.savedobjectsfindoptions.md) &gt; [rawSearchFields](./kibana-plugin-core-public.savedobjectsfindoptions.rawsearchfields.md)

## SavedObjectsFindOptions.rawSearchFields property

The fields to perform the parsed query against. Unlike the `searchFields` argument, these are expected to be raw and will not be modified. If used in conjunction with `searchFields`<!-- -->, both are concatenated together.

<b>Signature:</b>

```typescript
rawSearchFields?: string[];
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportAmbiguousConflictError](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.md) &gt; [destinations](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.destinations.md)

## SavedObjectsImportAmbiguousConflictError.destinations property

<b>Signature:</b>

```typescript
destinations: Array<{
id: string;
title?: string;
updatedAt?: string;
}>;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportAmbiguousConflictError](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.md)

## SavedObjectsImportAmbiguousConflictError interface

Represents a failure to import due to a conflict, which can be resolved in different ways with an overwrite.

<b>Signature:</b>

```typescript
export interface SavedObjectsImportAmbiguousConflictError
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [destinations](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.destinations.md) | <code>Array&lt;{</code><br/><code> id: string;</code><br/><code> title?: string;</code><br/><code> updatedAt?: string;</code><br/><code> }&gt;</code> | |
| [type](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.type.md) | <code>'ambiguous_conflict'</code> | |

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportAmbiguousConflictError](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.md) &gt; [type](./kibana-plugin-core-public.savedobjectsimportambiguousconflicterror.type.md)

## SavedObjectsImportAmbiguousConflictError.type property

<b>Signature:</b>

```typescript
type: 'ambiguous_conflict';
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportConflictError](./kibana-plugin-core-public.savedobjectsimportconflicterror.md) &gt; [destinationId](./kibana-plugin-core-public.savedobjectsimportconflicterror.destinationid.md)

## SavedObjectsImportConflictError.destinationId property

<b>Signature:</b>

```typescript
destinationId?: string;
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export interface SavedObjectsImportConflictError

| Property | Type | Description |
| --- | --- | --- |
| [destinationId](./kibana-plugin-core-public.savedobjectsimportconflicterror.destinationid.md) | <code>string</code> | |
| [type](./kibana-plugin-core-public.savedobjectsimportconflicterror.type.md) | <code>'conflict'</code> | |

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
<b>Signature:</b>

```typescript
error: SavedObjectsImportConflictError | SavedObjectsImportUnsupportedTypeError | SavedObjectsImportMissingReferencesError | SavedObjectsImportUnknownError;
error: SavedObjectsImportConflictError | SavedObjectsImportAmbiguousConflictError | SavedObjectsImportUnsupportedTypeError | SavedObjectsImportMissingReferencesError | SavedObjectsImportUnknownError;
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface SavedObjectsImportError

| Property | Type | Description |
| --- | --- | --- |
| [error](./kibana-plugin-core-public.savedobjectsimporterror.error.md) | <code>SavedObjectsImportConflictError &#124; SavedObjectsImportUnsupportedTypeError &#124; SavedObjectsImportMissingReferencesError &#124; SavedObjectsImportUnknownError</code> | |
| [error](./kibana-plugin-core-public.savedobjectsimporterror.error.md) | <code>SavedObjectsImportConflictError &#124; SavedObjectsImportAmbiguousConflictError &#124; SavedObjectsImportUnsupportedTypeError &#124; SavedObjectsImportMissingReferencesError &#124; SavedObjectsImportUnknownError</code> | |
| [id](./kibana-plugin-core-public.savedobjectsimporterror.id.md) | <code>string</code> | |
| [title](./kibana-plugin-core-public.savedobjectsimporterror.title.md) | <code>string</code> | |
| [type](./kibana-plugin-core-public.savedobjectsimporterror.type.md) | <code>string</code> | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ export interface SavedObjectsImportResponse
| [errors](./kibana-plugin-core-public.savedobjectsimportresponse.errors.md) | <code>SavedObjectsImportError[]</code> | |
| [success](./kibana-plugin-core-public.savedobjectsimportresponse.success.md) | <code>boolean</code> | |
| [successCount](./kibana-plugin-core-public.savedobjectsimportresponse.successcount.md) | <code>number</code> | |
| [successResults](./kibana-plugin-core-public.savedobjectsimportresponse.successresults.md) | <code>SavedObjectsImportSuccess[]</code> | |

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportResponse](./kibana-plugin-core-public.savedobjectsimportresponse.md) &gt; [successResults](./kibana-plugin-core-public.savedobjectsimportresponse.successresults.md)

## SavedObjectsImportResponse.successResults property

<b>Signature:</b>

```typescript
successResults?: SavedObjectsImportSuccess[];
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportRetry](./kibana-plugin-core-public.savedobjectsimportretry.md) &gt; [idToOverwrite](./kibana-plugin-core-public.savedobjectsimportretry.idtooverwrite.md)

## SavedObjectsImportRetry.idToOverwrite property

The object ID that will be overwritten. Only used if `overwrite` == true. This is required to resolve ambiguous conflicts.

<b>Signature:</b>

```typescript
idToOverwrite?: string;
```
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface SavedObjectsImportRetry
| Property | Type | Description |
| --- | --- | --- |
| [id](./kibana-plugin-core-public.savedobjectsimportretry.id.md) | <code>string</code> | |
| [idToOverwrite](./kibana-plugin-core-public.savedobjectsimportretry.idtooverwrite.md) | <code>string</code> | The object ID that will be overwritten. Only used if <code>overwrite</code> == true. This is required to resolve ambiguous conflicts. |
| [overwrite](./kibana-plugin-core-public.savedobjectsimportretry.overwrite.md) | <code>boolean</code> | |
| [replaceReferences](./kibana-plugin-core-public.savedobjectsimportretry.replacereferences.md) | <code>Array&lt;{</code><br/><code> type: string;</code><br/><code> from: string;</code><br/><code> to: string;</code><br/><code> }&gt;</code> | |
| [type](./kibana-plugin-core-public.savedobjectsimportretry.type.md) | <code>string</code> | |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportSuccess](./kibana-plugin-core-public.savedobjectsimportsuccess.md) &gt; [destinationId](./kibana-plugin-core-public.savedobjectsimportsuccess.destinationid.md)

## SavedObjectsImportSuccess.destinationId property

If `destinationId` is specified, the new object has a new ID that is different from the import ID.

<b>Signature:</b>

```typescript
destinationId?: string;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportSuccess](./kibana-plugin-core-public.savedobjectsimportsuccess.md) &gt; [id](./kibana-plugin-core-public.savedobjectsimportsuccess.id.md)

## SavedObjectsImportSuccess.id property

<b>Signature:</b>

```typescript
id: string;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportSuccess](./kibana-plugin-core-public.savedobjectsimportsuccess.md)

## SavedObjectsImportSuccess interface

Represents a successful import.

<b>Signature:</b>

```typescript
export interface SavedObjectsImportSuccess
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [destinationId](./kibana-plugin-core-public.savedobjectsimportsuccess.destinationid.md) | <code>string</code> | If <code>destinationId</code> is specified, the new object has a new ID that is different from the import ID. |
| [id](./kibana-plugin-core-public.savedobjectsimportsuccess.id.md) | <code>string</code> | |
| [type](./kibana-plugin-core-public.savedobjectsimportsuccess.type.md) | <code>string</code> | |

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsImportSuccess](./kibana-plugin-core-public.savedobjectsimportsuccess.md) &gt; [type](./kibana-plugin-core-public.savedobjectsimportsuccess.type.md)

## SavedObjectsImportSuccess.type property

<b>Signature:</b>

```typescript
type: string;
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Import saved objects from given stream. See the [options](./kibana-plugin-core-s
<b>Signature:</b>

```typescript
export declare function importSavedObjectsFromStream({ readStream, objectLimit, overwrite, savedObjectsClient, supportedTypes, namespace, }: SavedObjectsImportOptions): Promise<SavedObjectsImportResponse>;
export declare function importSavedObjectsFromStream({ readStream, objectLimit, overwrite, savedObjectsClient, typeRegistry, namespace, }: SavedObjectsImportOptions): Promise<SavedObjectsImportResponse>;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| { readStream, objectLimit, overwrite, savedObjectsClient, supportedTypes, namespace, } | <code>SavedObjectsImportOptions</code> | |
| { readStream, objectLimit, overwrite, savedObjectsClient, typeRegistry, namespace, } | <code>SavedObjectsImportOptions</code> | |

<b>Returns:</b>

Expand Down
Loading