Bobosky2005/hkjc-api ? reverse-engineered prompt
Reverse engineered prompt
Build me a small TypeScript Node package that talks to the Hong Kong Jockey Club GraphQL API and makes it easy to get horse racing and football data.
I want simple classes I can call from my app, one for horse racing and one for football. For horse racing, it should let me get active meetings, all race details, runners, odds for things like WIN and PLA, and pool investment data. For football, it should get upcoming and live matches, match details, live running match data with scores, historic match results, and result pools. Please make the API pleasant to use, with sensible defaults, good error handling, and clear examples in the README.
If some HKJC queries are picky about limits or order, handle that in the library so the caller does not have to. Add TypeScript types, tests, and a couple of example files. If you need to check the latest HKJC GraphQL behavior online, go ahead and look it up.
Are you gonna build this?
make sure you review the code using coderabbit