kibana/x-pack/test/detection_engine_api_integration
Frank Hassanabad 9bf488e826
[Security Solutions] Re-arranges and adds more packages to remove copied code (#100310)
## Summary

* Creates a `securitysolution-list-utils` packaged and moves the first set of utilities into there
* Fixes a slight bug with `kbn-securitysolution-io-ts-list-types` where the wrong name was used
* Moves _all_ of the lists schemas and types into the package `kbn-securitysolution-io-ts-list-types`
* Removes copied code found in a few places

## Tech debt
* Some spots I have to use an `any` in the package as Kibana kbn packages don't have the types I need
* Some spots I copy constants until we can straighten out those pieces.
* I keep copied mock files until we figure out how to share mocks from these packages without adding weight or we create dedicated mock packages for all of this. 


### 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
2021-05-19 15:59:52 -06:00
..
basic Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
common [kbn/test] move types/ftr into src (#99555) 2021-05-17 09:51:53 -07:00
security_and_spaces [Security Solutions] Re-arranges and adds more packages to remove copied code (#100310) 2021-05-19 15:59:52 -06:00
utils.ts [Security Solutions] Re-arranges and adds more packages to remove copied code (#100310) 2021-05-19 15:59:52 -06:00