Skip to content

fix(fmodata): align webhook types with FM OData API response#127

Merged
eluce2 merged 1 commit intomainfrom
fix/webhook-response-types
Mar 9, 2026
Merged

fix(fmodata): align webhook types with FM OData API response#127
eluce2 merged 1 commit intomainfrom
fix/webhook-response-types

Conversation

@eluce2
Copy link
Collaborator

@eluce2 eluce2 commented Mar 9, 2026

Summary

Closes #126

  • WebhookListResponse: Statusstatus, WebHookwebhooks
  • WebhookInfo: webHookIDwebhookID, urlwebhook
  • WebhookAddResponse: webHookResultwebhookResult, inner webHookIDwebhookID
  • Updated mock fixtures, unit tests, capture script, docs
  • Added scripts/verify-webhook-types.ts e2e script that hits real API to verify types match

Test plan

  • 799 unit tests pass
  • Lint clean
  • verify-webhook-types.ts confirms all types match real FM OData API

🤖 Generated with Claude Code


Note

Medium Risk
This is a breaking, public API surface change: webhook response property names are renamed to match the real FileMaker OData responses, which will require downstream code updates. Runtime behavior is largely unchanged, but any consumers reading the old keys (or tests/fixtures relying on them) will break.

Overview
BREAKING: Webhook response typings now match the FM OData API’s actual JSON keys, renaming WebhookListResponse (Statusstatus, WebHookwebhooks), WebhookInfo (webHookIDwebhookID, urlwebhook), and WebhookAddResponse (webHookResult.webHookIDwebhookResult.webhookID).

Docs/README examples, mock response fixtures, and webhook unit tests/scripts were updated to use the new property names, and a new scripts/verify-webhook-types.ts was added to validate raw webhook endpoint responses against the TypeScript expectations.

Written by Cursor Bugbot for commit c5efdbd. This will update automatically on new commits. Configure here.

…126)

WebhookListResponse, WebhookInfo, WebhookAddResponse property names
didn't match what FM OData API actually returns. Verified via e2e test
against live server. Renames: Status→status, WebHook→webhooks,
webHookID→webhookID, url→webhook, webHookResult→webhookResult.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
proofkit-docs Ready Ready Preview Mar 9, 2026 1:37am

Request Review

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 9, 2026

Open in StackBlitz

@proofkit/better-auth

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/better-auth@127

@proofkit/cli

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/cli@127

create-proofkit

pnpm add https://pkg.pr.new/proofgeist/proofkit/create-proofkit@127

@proofkit/fmdapi

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmdapi@127

@proofkit/fmodata

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmodata@127

@proofkit/typegen

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/typegen@127

@proofkit/webviewer

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/webviewer@127

commit: 4712e18

@eluce2 eluce2 merged commit 6894d01 into main Mar 9, 2026
15 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.

WebhookListResponse and WebhookInfo types don't match FM API response

1 participant