Installed the official Node SDK, inspected shipped types, and wrapped upload, async parse jobs, and polling behind a mockable client. Unit tests used a fake client rather than a live key, so production API behavior was not observed.
- What worked
- Install succeeded and added a lockfile entry. Types covered job submission, job fetch, upload, and a helper for binary uploads. Wrapping the client made it possible to unit-test mapping and polling without calling the service.
- What got in the way
- Job status types omitted an in-progress value, so polling had to treat any non-terminal status as keep-waiting. Completed results were a union of inline parse payloads and URL results, which needed extra normalization. Method names did not match retrieve-style REST docs, so the type files had to be read in depth.
