refactor(minor): clear_outbox
refactor(minor): clear_outbox

* Use pluck API instead of building dict and then accesing keys
* Styled query
* Added type hints

frappe/frappe,frappe/frappe,StrellaGroup/frappe,yashodhank/frappe,frappe/frappe,yashodhank/frappe,yashodhank/frappe,StrellaGroup/frappe,yashodhank/frappe,StrellaGroup/frappe