* feat: add external pagination support * Ordering, no functionality changes * fix: use correct assertion condition Also moved the PaginationOptions type to the base types file * Apply suggestions from code review Co-authored-by: Jaco Greeff <jacogr@gmail.com>