SeatMap

Generated API client

The published package is @sample-tayo/sm-client@0.0.12. It is generated from OpenAPI document version 1 and uses Axios.

Configuration

typescript
import { Configuration } from "@sample-tayo/sm-client";

const configuration = new Configuration({
  basePath: process.env.SEATMAP_API_URL,
  apiKey: process.env.SEATMAP_API_KEY,
});

Use generated operation classes

Import the operation class and DTOs exposed by the package instead of recreating request or response types. The exact operation names in version 0.0.12 are the compatibility boundary for this release.

Error handling

The generated DTOs distinguish validation, authentication, authorization, not-found, conflict, rate-limit, and internal errors. Preserve the returned code when mapping an error into application UI.