* WIP typings for saved object client
* Move more files to TS
* type saved objects client
* clean up typings for saved object client
* tie typings form server and client for saved objects together
* add missing html import typing to x-pack
* Add missing buildSourcePatterns
* Removed accidental comma
* add typings for saved_object_client tests and fix test cases
* duplicate case_conversion helpers for the moment
* Address PR review
* Fix some documentation
* Replace ts-ignore by any imports
* Remove expect.js from test
* Add more typings to prevent CI failure
* Check security privileges before allowing reindexing
* Add global readyForUpgrade flag for Cloud
* Add ml_settings to cluster_settings
* Generalize locking mechanism for stop/starting watcher
* Display ML/Watcher stopping/resuming steps in UI
* Fix type issues
* Handle security being disabled for privilege check
* Use xpack_main.info + add types
* Fix x-pack builds