-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cases] Separating http request contract from saved object persistenc…
…e layer (#155325) This PR separates the http API io-ts types from the types that are used in the cases service layer to interact with the saved object client. This PR is specifically for the user actions it only affects the types used when interacting with the saved object client and doesn't touch the transformation logic yet. Issue: #153726
- Loading branch information
1 parent
bf588bf
commit ed3d037
Showing
7 changed files
with
235 additions
and
218 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import type { User } from './user'; | ||
|
||
interface UserActionCommonPersistedAttributes { | ||
action: string; | ||
created_at: string; | ||
created_by: User; | ||
owner: string; | ||
} | ||
|
||
export interface UserActionPersistedAttributes extends UserActionCommonPersistedAttributes { | ||
type: string; | ||
payload: Record<string, unknown>; | ||
} |
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
Oops, something went wrong.