Skip to content

feat: Add pagination support#162

Merged
razor-x merged 17 commits intomainfrom
routeless-paths
Feb 27, 2025
Merged

feat: Add pagination support#162
razor-x merged 17 commits intomainfrom
routeless-paths

Conversation

@razor-x
Copy link
Copy Markdown
Member

@razor-x razor-x commented Feb 26, 2025

  • Move Seam extensions into seam.js
  • feat: Allow null routePath for some resources

Allowing some resources to be missing a routePath is actually not the correct approach.
I will update this PR to make pagination a proper idea in blueprint, e.g., the Pagination should be it's own thing and endpoints should include if they support pagination.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blueprint ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 27, 2025 8:53pm

@razor-x
Copy link
Copy Markdown
Member Author

razor-x commented Feb 26, 2025

Allowing some resources to be missing a routePath is actually not the correct approach.
I will update this PR to make pagination a proper idea in blueprint, e.g., the Pagination should be it's own thing and endpoints should include if they support pagination.

@razor-x
Copy link
Copy Markdown
Member Author

razor-x commented Feb 26, 2025

I've updated the PR to extend the blueprint with pagination and added endpoint.hasPagination. I did not finish the implementation yet (stubbed out).

Comment thread src/lib/blueprint.ts Outdated
@razor-x razor-x merged commit fd15473 into main Feb 27, 2025
@razor-x razor-x deleted the routeless-paths branch February 27, 2025 21:15
andrii-balitskyi pushed a commit that referenced this pull request Feb 28, 2025
* Move Seam extensions into seam.js

* feat: Allow null routePath for some resources

* ci: Format code

* Move pagination to blueprint

* Add pagination to fixture

* ci: Generate code

* ci: Format code

* Make pagination nullable

* Add createPagination

* ci: Generate code

* Implement createPagination

* Implement hasPagination

* Update src/lib/blueprint.ts

* Use responseKey over paginationResponseKey

* ci: Generate code

* Use paginationResponseKey via openapi.components.schemas

* Update fixture

---------

Co-authored-by: Seam Bot <seambot@getseam.com>
andrii-balitskyi added a commit that referenced this pull request Mar 5, 2025
…uctures (#163)

* Enhance array properties with item type metadata and nested structures

* ci: Generate code

* Fix lint

* Properly define list types and adjust the code

* Remove jsonType

* ci: Generate code

* feat: Add pagination support (#162)

* Move Seam extensions into seam.js

* feat: Allow null routePath for some resources

* ci: Format code

* Move pagination to blueprint

* Add pagination to fixture

* ci: Generate code

* ci: Format code

* Make pagination nullable

* Add createPagination

* ci: Generate code

* Implement createPagination

* Implement hasPagination

* Update src/lib/blueprint.ts

* Use responseKey over paginationResponseKey

* ci: Generate code

* Use paginationResponseKey via openapi.components.schemas

* Update fixture

---------

Co-authored-by: Seam Bot <seambot@getseam.com>

* 0.36.0

* fix: Merge all schemas with the same action_type in action attempts (#164)

Co-authored-by: Seam Bot <seambot@getseam.com>

* 0.36.1

* Update src/lib/blueprint.ts

Co-authored-by: Evan Sosenko <evan@getseam.com>

* Fix types

---------

Co-authored-by: Seam Bot <seambot@getseam.com>
Co-authored-by: Evan Sosenko <evan@getseam.com>
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