@theatrical/sdk
The SDK is the foundation of the Theatrical toolkit. It provides a typed client for all Vista Group API resources, with automatic authentication, Zod runtime validation, and a typed error hierarchy.
Install
npm install @theatrical/sdkResources
| Resource | Methods |
|---|---|
client.sessions | list, listPaginated, listAll, get, availability |
client.films | nowShowing, comingSoon, get, getDetail, search, advancedSearch |
client.sites | list, get, nearby, screens |
client.orders | create, get, addTickets, addItems, applyLoyalty, confirm, cancel, refund, complete, history |
client.loyalty | authenticate, getMember, getPointsBalance, getHistory, listRedemptionOptions, redeemPoints |
client.subscriptions | listPlans, getMemberSubscription, getUsage, checkBenefitEligibility, suspend, cancel |
client.pricing | ticketTypes, calculate, applyCoupons |
client.fnb | menu, categories, itemDetail, combos, addToOrder |
Full API reference
API reference pages are in progress. See the Quickstart for working examples.