Skip to content

Parity feature implementation against the API #21

Merged
jessehanley merged 3 commits into
bentonow:mainfrom
ziptied:main
Feb 25, 2026
Merged

Parity feature implementation against the API #21
jessehanley merged 3 commits into
bentonow:mainfrom
ziptied:main

Conversation

@ziptied

@ziptied ziptied commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Add optional pagination support to Sequences and Workflows fetch
endpoints by introducing GetSequencesParameters and
GetWorkflowsParameters types with a page?: number field. Update the
BentoSequences.getSequences and BentoWorkflows.getWorkflows methods to
accept an optional parameters object and forward it to the client's GET
call. Adjust imports and types accordingly.

Also expand README docs for Sequences: add a higher-level description,
show example usage with Analytics client, demonstrate passing { page }
for pagination, and enrich example response and createSequenceEmail
documentation to better reflect real-world fields and links to API
docs.

This enables callers to paginate large installs and documents usage in
the SDK README.

Add optional pagination support to Sequences and Workflows fetch
endpoints by introducing GetSequencesParameters and
GetWorkflowsParameters types with a page?: number field. Update the
BentoSequences.getSequences and BentoWorkflows.getWorkflows methods to
accept an optional parameters object and forward it to the client's GET
call. Adjust imports and types accordingly.

Also expand README docs for Sequences: add a higher-level description,
show example usage with Analytics client, demonstrate passing { page }
for pagination, and enrich example response and createSequenceEmail
documentation to better reflect real-world fields and links to API
docs.

This enables callers to paginate large installs and documents usage in
the SDK README.
Ensure query parameters with null or undefined values are skipped when
serializing request bodies into URLSearchParams. This prevents literal
"null" or empty parameters from being sent and aligns behavior with
expected API semantics.

Add tests and test helpers to verify the change:
- export lastFetchUrl from mockFetch helper to inspect the request URL.
- add a test that confirms undefined SDK options (page) are omitted
  from the query string.
- assert site_uuid is correctly set and not the string "null".

This fixes incorrect query parameter serialization and adds coverage
to prevent regressions.
feat(sequences/workflows): add optional pagination to fetch APIs
@greptile-apps

greptile-apps Bot commented Feb 25, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

  • Safe to merge with no risk
  • Clean implementation with proper type safety, comprehensive test coverage (43 passing tests), no TypeScript errors, and backwards-compatible API changes. The null/undefined filtering prevents URL pollution, pagination is optional with sensible defaults, and documentation thoroughly covers the new functionality.
  • No files require special attention

Last reviewed commit: 095ed2b

@jessehanley jessehanley merged commit a1de506 into bentonow:main Feb 25, 2026
3 checks passed
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