Commit caad894
[Threat Hunting Investigations] Use OpenAPI types in more timeline routes (#189977)
## Summary
Fixes: elastic/security-team#10133
Migrates some timeline routes to use the newly generated OpenAPI types.
The changes mostly affect pinned event and note routes to keep the
changes small. Routes that actually accept and return timeline objects
will come in a next step.
### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
---------
Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>1 parent 80f938e commit caad894
File tree
45 files changed
+675
-560
lines changed- oas_docs/output
- x-pack
- plugins/security_solution
- common/api
- timeline
- clean_draft_timelines
- delete_note
- delete_timelines
- export_timelines
- get_notes
- import_timelines
- model
- persist_favorite
- persist_note
- pinned_events
- docs/openapi
- ess
- serverless
- public/timelines
- containers
- pinned_event
- store/middlewares
- server/lib/timeline
- routes
- draft_timelines/clean_draft_timelines
- notes
- pinned_events
- timelines
- delete_timelines
- export_timelines
- persist_favorite
- saved_object
- notes
- pinned_events
- timelines
- test/security_solution_api_integration/test_suites/investigation/saved_objects/trial_license_complete_tier
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+675
-560
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15090 | 15090 | | |
15091 | 15091 | | |
15092 | 15092 | | |
15093 | | - | |
| 15093 | + | |
| 15094 | + | |
15094 | 15095 | | |
15095 | 15096 | | |
15096 | 15097 | | |
| |||
15121 | 15122 | | |
15122 | 15123 | | |
15123 | 15124 | | |
15124 | | - | |
15125 | 15125 | | |
15126 | 15126 | | |
15127 | 15127 | | |
15128 | 15128 | | |
15129 | 15129 | | |
15130 | 15130 | | |
15131 | | - | |
| 15131 | + | |
15132 | 15132 | | |
15133 | 15133 | | |
15134 | 15134 | | |
15135 | 15135 | | |
15136 | | - | |
| 15136 | + | |
15137 | 15137 | | |
15138 | 15138 | | |
15139 | 15139 | | |
| |||
15156 | 15156 | | |
15157 | 15157 | | |
15158 | 15158 | | |
| 15159 | + | |
| 15160 | + | |
| 15161 | + | |
| 15162 | + | |
| 15163 | + | |
| 15164 | + | |
| 15165 | + | |
15159 | 15166 | | |
15160 | 15167 | | |
15161 | 15168 | | |
| |||
15205 | 15212 | | |
15206 | 15213 | | |
15207 | 15214 | | |
15208 | | - | |
15209 | | - | |
15210 | | - | |
15211 | | - | |
15212 | | - | |
15213 | | - | |
15214 | | - | |
15215 | | - | |
15216 | | - | |
15217 | | - | |
15218 | | - | |
15219 | | - | |
15220 | | - | |
| 15215 | + | |
| 15216 | + | |
15221 | 15217 | | |
15222 | 15218 | | |
15223 | 15219 | | |
| |||
15589 | 15585 | | |
15590 | 15586 | | |
15591 | 15587 | | |
15592 | | - | |
15593 | | - | |
15594 | | - | |
15595 | | - | |
15596 | | - | |
15597 | | - | |
15598 | | - | |
15599 | | - | |
15600 | | - | |
| 15588 | + | |
| 15589 | + | |
15601 | 15590 | | |
15602 | 15591 | | |
15603 | 15592 | | |
| |||
32400 | 32389 | | |
32401 | 32390 | | |
32402 | 32391 | | |
| 32392 | + | |
| 32393 | + | |
| 32394 | + | |
| 32395 | + | |
| 32396 | + | |
| 32397 | + | |
| 32398 | + | |
| 32399 | + | |
| 32400 | + | |
| 32401 | + | |
| 32402 | + | |
| 32403 | + | |
| 32404 | + | |
| 32405 | + | |
| 32406 | + | |
| 32407 | + | |
32403 | 32408 | | |
32404 | 32409 | | |
| 32410 | + | |
| 32411 | + | |
| 32412 | + | |
| 32413 | + | |
32405 | 32414 | | |
32406 | 32415 | | |
32407 | 32416 | | |
32408 | 32417 | | |
32409 | 32418 | | |
32410 | 32419 | | |
32411 | 32420 | | |
| 32421 | + | |
32412 | 32422 | | |
32413 | 32423 | | |
32414 | 32424 | | |
| |||
32584 | 32594 | | |
32585 | 32595 | | |
32586 | 32596 | | |
| 32597 | + | |
| 32598 | + | |
| 32599 | + | |
| 32600 | + | |
| 32601 | + | |
| 32602 | + | |
| 32603 | + | |
| 32604 | + | |
| 32605 | + | |
| 32606 | + | |
| 32607 | + | |
| 32608 | + | |
32587 | 32609 | | |
32588 | 32610 | | |
32589 | 32611 | | |
| |||
32644 | 32666 | | |
32645 | 32667 | | |
32646 | 32668 | | |
| 32669 | + | |
| 32670 | + | |
| 32671 | + | |
| 32672 | + | |
| 32673 | + | |
| 32674 | + | |
| 32675 | + | |
| 32676 | + | |
| 32677 | + | |
| 32678 | + | |
| 32679 | + | |
32647 | 32680 | | |
| 32681 | + | |
| 32682 | + | |
| 32683 | + | |
| 32684 | + | |
| 32685 | + | |
| 32686 | + | |
| 32687 | + | |
| 32688 | + | |
| 32689 | + | |
| 32690 | + | |
| 32691 | + | |
| 32692 | + | |
32648 | 32693 | | |
32649 | 32694 | | |
32650 | | - | |
32651 | | - | |
32652 | | - | |
32653 | | - | |
32654 | | - | |
32655 | | - | |
32656 | | - | |
32657 | | - | |
32658 | | - | |
32659 | | - | |
32660 | | - | |
32661 | | - | |
32662 | | - | |
32663 | | - | |
| 32695 | + | |
32664 | 32696 | | |
32665 | | - | |
32666 | | - | |
32667 | | - | |
32668 | | - | |
| 32697 | + | |
32669 | 32698 | | |
32670 | 32699 | | |
32671 | | - | |
32672 | | - | |
32673 | | - | |
32674 | | - | |
| 32700 | + | |
32675 | 32701 | | |
32676 | 32702 | | |
32677 | 32703 | | |
| |||
32716 | 32742 | | |
32717 | 32743 | | |
32718 | 32744 | | |
| 32745 | + | |
| 32746 | + | |
| 32747 | + | |
| 32748 | + | |
| 32749 | + | |
| 32750 | + | |
| 32751 | + | |
| 32752 | + | |
| 32753 | + | |
| 32754 | + | |
| 32755 | + | |
| 32756 | + | |
| 32757 | + | |
32719 | 32758 | | |
32720 | 32759 | | |
32721 | 32760 | | |
| |||
0 commit comments