chore: update generated files from PR #11467#36
Conversation
There was a problem hiding this comment.
The generated OpenAPI/schema changes are internally consistent, but the new country-aware request contract is not exposed through the package's primary createHeadlessApiClient wrapper. Consumers using the documented client cannot pass country to configuration/customer/reward/rule calls, so country availability filtering will silently keep using the site default.
| 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 country query parameter is generated across the Headless operations, but the public wrapper in src/client.ts still has no country option and all wrapper calls only send path params. That means consumers using the documented createHeadlessApiClient API cannot request a non-default country, so country availability filtering for configuration, customer state, reward redemption, and rule completion remains unreachable unless they bypass the wrapper and call the raw OpenAPI client/fetch path themselves. The generated contract should be paired with wrapper support, for example a client-level country?: string that is threaded into each request's params.query.
Auto-generated by the CI pipeline.
Source: https://github.com/loyaltylion/hogwarts/pull/11467
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