chore: update generated files from PR #11478#37
Conversation
There was a problem hiding this comment.
Static review only, per the environment constraints. I found one client-surface gap: the generated types now expose country-aware API requests, but the package's exported convenience client does not appear to provide any way to send the new country query parameter, so callers using createHeadlessApiClient will still always get site-default country filtering.
| language?: unknown; | ||
| language?: string; | ||
| /** @description ISO 3166-1 alpha-2 country code for the customer. Used to filter rewards by country availability. If not provided, the site default is used */ | ||
| country?: string; |
There was a problem hiding this comment.
This new query parameter is not reachable through the exported convenience client. Every method in src/client.ts currently builds params with only path, and HeadlessApiClientOptions has channel/language but no country, so consumers using createHeadlessApiClient cannot request country-specific reward availability even though the generated API types now support it. Please thread this through the wrapper, either as a client-level option or as per-call query params, before publishing these generated types.
Auto-generated by the CI pipeline.
Source: https://github.com/loyaltylion/hogwarts/pull/11478
These files were regenerated from changes to the API contracts. Review and merge alongside the main PR.
Generated files:
src/types/api.tssrc/types/schemas.ts