chore: update generated files from PR #11516#44
Conversation
There was a problem hiding this comment.
The generated schema updates are internally consistent on the main new shapes: loyalty_pass_install is threaded through configuration, available rules, and history rule kind unions, and the standalone exports in schemas.ts mirror the component schemas. The main concern is package elegance rather than type syntax: the raw OpenAPI contract now exposes new callable/parameter surface that the hand-written createHeadlessApiClient wrapper does not expose, so the package API is starting to drift from the generated contract.
| @@ -63,6 +63,22 @@ export interface paths { | |||
| patch?: never; | |||
| trace?: never; | |||
| }; | |||
| "/headless/2025-06/{site_id}/customers/{merchant_id}/enroll": { | |||
There was a problem hiding this comment.
This adds the new enroll endpoint to the raw OpenAPI paths, but createHeadlessApiClient still wraps every other path and has no customers.enroll method. Is this generated-only PR intentionally leaving the convenience client one endpoint behind? If not, users of the package API cannot call the new endpoint without dropping out of the client abstraction.
| 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.
country is now part of the generated request contract for configuration/customer/reward/rule calls, but the convenience client has no global country option and no per-call way to pass query params. Since the comment says this controls reward filtering and falls back to the site default when omitted, shoppers using createHeadlessApiClient cannot request country-specific reward availability through the package API.
Auto-generated by the CI pipeline.
Source: https://github.com/loyaltylion/hogwarts/pull/11516
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