chore: update generated files from PR #11454#40
Conversation
There was a problem hiding this comment.
I found one integration issue: the generated OpenAPI types now expose a country query parameter for country-based reward filtering, but the exported createHeadlessApiClient wrapper still has no country option and does not pass query params on its requests. Consumers using the documented client will therefore continue to get site-default country filtering even after this generated type update.
Reviewed statically only, per the environment constraints; I did not run package managers, typecheck, lint, build, or tests.
| 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 parameter is exposed in the raw OpenAPI operation types, but the package's public convenience client does not have any way to send it. createHeadlessApiClient only accepts channel and language at construction time, sends those as headers, and each wrapper method only passes params.path, so calls like configuration.getConfiguration, customers.initializeSession, and reward redemptions will still omit country and get the site-default reward availability. Can we add a matching country?: string option, or per-call parameter if the country can vary by customer/session, and include it in the wrapper requests wherever these generated operations accept it?
Auto-generated by the CI pipeline.
Source: https://github.com/loyaltylion/hogwarts/pull/11454
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