Skip to content

feat: buildPaginationUrl helper to simplify code - #1056

Merged
gabrielmfern merged 2 commits into
canaryfrom
feat/build-pagination-url
Aug 7, 2026
Merged

feat: buildPaginationUrl helper to simplify code#1056
gabrielmfern merged 2 commits into
canaryfrom
feat/build-pagination-url

Conversation

@gabrielmfern

@gabrielmfern gabrielmfern commented Aug 7, 2026

Copy link
Copy Markdown
Member

Summary by cubic

Introduces buildPaginationUrl to build paginated URLs and updates list methods to use it. Removes duplicate query logic and fixes minor type issues without changing behavior.

  • Refactors
    • Added buildPaginationUrl(base, options) in src/common/utils/build-pagination-query.ts (wraps buildPaginationQuery).
    • Updated list endpoints in api-keys, broadcasts, contact-properties, contacts (incl. segments and topics), domains, emails (incl. receiving/attachments), events, logs, oauth-grants, segments, and webhooks to use the helper, and aligned typings with PaginationOptions.

Written for commit 8fe9d40. Summary will update on new commits.

Review in cubic

Signed-off-by: Gabriel Miranda <gabrielmfern@outlook.com>
@gabrielmfern
gabrielmfern requested a review from dielduarte August 7, 2026 18:43
@gabrielmfern gabrielmfern self-assigned this Aug 7, 2026
@gabrielmfern
gabrielmfern requested a review from a team as a code owner August 7, 2026 18:43
@pkg-pr-new

pkg-pr-new Bot commented Aug 7, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@1056

commit: 8fe9d40

Signed-off-by: Gabriel Miranda <gabrielmfern@outlook.com>
@gabrielmfern
gabrielmfern merged commit fc3d3af into canary Aug 7, 2026
16 checks passed
@gabrielmfern
gabrielmfern deleted the feat/build-pagination-url branch August 7, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants