Skip to content

feat: add list method#586

Merged
CarolinaMoraes merged 4 commits intopreview-templatesfrom
feature/product-400-add-list-method
Aug 22, 2025
Merged

feat: add list method#586
CarolinaMoraes merged 4 commits intopreview-templatesfrom
feature/product-400-add-list-method

Conversation

@CarolinaMoraes
Copy link
Contributor

@CarolinaMoraes CarolinaMoraes commented Aug 21, 2025

Summary by cubic

Adds Templates.list() to fetch templates with cursor-based pagination. Introduces shared pagination types and a query builder util to build query params.

  • New Features

    • Added Templates.list(options?: PaginationOptions) using getPaginationQueryProperties; returns PaginatedList of templates with before/after/limit support.
    • Introduced PaginatedList, PaginationOptions, and ListTemplatesResponse types.
  • Refactors

    • Consolidated tests under Templates block, standardized a TEST_API_KEY, and added unit tests for pagination util and list/get behavior (including query param assertions).

@CarolinaMoraes CarolinaMoraes requested a review from a team as a code owner August 21, 2025 21:00
@CarolinaMoraes CarolinaMoraes changed the base branch from canary to preview-templates August 21, 2025 21:00
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 6 files

React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.

@CarolinaMoraes CarolinaMoraes merged commit 56a848d into preview-templates Aug 22, 2025
6 checks passed
@CarolinaMoraes CarolinaMoraes deleted the feature/product-400-add-list-method branch August 22, 2025 13:06
CarolinaMoraes added a commit that referenced this pull request Aug 25, 2025
CarolinaMoraes added a commit that referenced this pull request Sep 29, 2025
CarolinaMoraes added a commit that referenced this pull request Sep 29, 2025
CarolinaMoraes added a commit that referenced this pull request Sep 29, 2025
CarolinaMoraes added a commit that referenced this pull request Sep 29, 2025
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