Skip to content

feat(dashboard): use openapi-fetch for typed API clients#227

Merged
tonyxiao merged 1 commit intov2from
tx/dashboard-openapi-fetch
Apr 2, 2026
Merged

feat(dashboard): use openapi-fetch for typed API clients#227
tonyxiao merged 1 commit intov2from
tx/dashboard-openapi-fetch

Conversation

@tonyxiao
Copy link
Copy Markdown
Collaborator

@tonyxiao tonyxiao commented Apr 2, 2026

Summary

  • Replace manual fetch calls in apps/dashboard/src/lib/api.ts with typed openapi-fetch clients backed by the generated OpenAPI types from engine and service
  • Add tsconfig path aliases in apps/dashboard/tsconfig.json to resolve @stripe/sync-engine/openapi and @stripe/sync-service/openapi without modifying package.json exports
  • Path parameters (e.g. {id}) are now type-checked; request/response shapes are inferred from the spec

Test plan

  • Dashboard builds and dev server starts without errors
  • Pipeline list/create/pause/resume/delete calls work end-to-end via the typed clients

🤖 Generated with Claude Code

Replace manual fetch calls in api.ts with openapi-fetch clients backed
by the generated OpenAPI types from engine and service packages. Adds
tsconfig path aliases to resolve the generated type files without
modifying the engine/service package.json exports.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@tonyxiao tonyxiao merged commit 45d46d0 into v2 Apr 2, 2026
10 checks passed
@tonyxiao tonyxiao deleted the tx/dashboard-openapi-fetch branch April 2, 2026 21:58
tonyxiao pushed a commit that referenced this pull request Apr 15, 2026
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.

1 participant