forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert change in ESO and prohibit partial updates in alert and action…
… clients
- Loading branch information
Showing
13 changed files
with
330 additions
and
456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
x-pack/plugins/actions/server/saved_objects/saved_objects_client_without_updates.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import { SavedObjectsClientContract, SavedObjectsCreateOptions, SavedObject } from 'kibana/server'; | ||
|
||
type AlertSavedObjectsCreateOptions = Omit<SavedObjectsCreateOptions, 'id' | 'overwrite'>; | ||
type AlertSavedObjectsUpdateOptions = Omit<SavedObjectsCreateOptions, 'id' | 'overwrite'> & | ||
Pick<Required<SavedObjectsCreateOptions>, 'id' | 'overwrite'>; | ||
|
||
export type SavedObjectsClientWithoutUpdates = Omit< | ||
SavedObjectsClientContract, | ||
'create' | 'update' | 'bulkUpdate' | ||
> & { | ||
create<T = unknown>( | ||
type: string, | ||
attributes: T, | ||
options?: AlertSavedObjectsCreateOptions | AlertSavedObjectsUpdateOptions | ||
): Promise<SavedObject<T>>; | ||
}; |
Oops, something went wrong.