Skip to content

feat: update API schemas#12

Merged
Philippoes merged 1 commit intomainfrom
feat/schema-changes
Sep 18, 2025
Merged

feat: update API schemas#12
Philippoes merged 1 commit intomainfrom
feat/schema-changes

Conversation

@petar-omni
Copy link
Contributor

This pull request updates the API schemas and refines the SDK by removing legacy yield balances endpoints and adding new query/filter capabilities. It also improves CI/CD and commit workflow configuration, and adds support for a new network type. Below are the most important changes grouped by theme.

API Schema and SDK Improvements

  • Removed legacy yield balances endpoint and all related types from src/api/index.ts and src/api/schemas/index.ts, simplifying the API and type definitions. [1] [2] [3] [4] [5] [6] [7] [8]
  • Added new query parameters to YieldQueryDto for multi-network, multi-type, multi-token, and multi-provider filtering, plus support for sorting yields by status. [1] [2] [3] [4] [5] [6] [7]
  • Added support for the hyperevm network across all relevant schema files, enabling compatibility with this new network type. [1] [2] [3] [4] [5] [6]

Build and Workspace Configuration

  • Updated .github/workflows/ci.yml to run pnpm commands directly instead of using mise x, simplifying the CI workflow.
  • Updated pnpm-workspace.yaml to specify onlyBuiltDependencies, improving build performance and dependency management.
  • Cleaned up mise.toml by removing the pnpm alias configuration.

Developer Workflow

  • Added a commit message hook in .husky/commit-msg to enforce commitlint checks on commit messages.

Release Management

  • Added a changeset for the SDK package to document the API schema update as a patch release.

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2025

🦋 Changeset detected

Latest commit: db7cffb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request updates the API schemas to remove legacy yield balances endpoints and add enhanced query capabilities, while also improving CI/CD workflow configuration and adding support for a new network type.

  • Removes legacy yield balances endpoints and all related types, simplifying the API surface
  • Adds new query parameters for multi-network, multi-type, multi-token, and multi-provider filtering
  • Adds support for the "hyperevm" network across all schema files

Reviewed Changes

Copilot reviewed 27 out of 28 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/api/schemas/yieldsControllerGetYieldsTypesItem.ts Added new yield types enum for controller filtering
src/api/schemas/yieldsControllerGetYieldsSort.ts Added new sorting options for yield status
src/api/schemas/yieldsControllerGetYieldsParams.ts Enhanced with multiple new query parameters for filtering
src/api/schemas/yieldQueryDto.ts Added new filtering and sorting capabilities
src/api/schemas/yieldQueryDtoSort.ts Added sort options for yield queries
src/api/schemas/yieldQueryDtoTypesItem.ts Added yield types enum for DTO
src/api/schemas/*.ts (network files) Added "hyperevm" network support across all network enums
src/api/schemas/index.ts Updated exports to remove legacy types and add new ones
src/api/index.ts Removed legacy yield balances function and related types
src/api/index.msw.ts Removed legacy mock handler and updated network support
.github/workflows/ci.yml Simplified CI workflow to run pnpm commands directly
pnpm-workspace.yaml Added workspace configuration with build dependencies
mise.toml Removed pnpm alias configuration
.husky/commit-msg Added commit message linting hook
.changeset/young-poets-grin.md Added changeset for patch release
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Philippoes Philippoes merged commit 3fc2f8b into main Sep 18, 2025
5 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