Installation
Requirements
- Node.js ≥ 20
- A Vista Group API key (operator token) or Vista loyalty cookie
Install the SDK
npm install @theatrical/sdkpnpm add @theatrical/sdkyarn add @theatrical/sdkInstall the CLI
The CLI is a dev dependency — install it globally or per-project.
npm install -g @theatrical/clitheatrical --versionnpm install --save-dev @theatrical/clinpx theatrical --versionInstall React components
npm install @theatrical/react @theatrical/sdkpnpm add @theatrical/react @theatrical/sdkOptional packages
| Package | Purpose |
|---|---|
@theatrical/analytics | Query Vista Horizon data warehouses |
@theatrical/events | Real-time event bridge via polling |
npm install @theatrical/analytics @theatrical/eventsTypeScript
Theatrical requires TypeScript 5.0+. Add @theatrical/sdk types to your tsconfig.json:
{ "compilerOptions": { "strict": true, "moduleResolution": "bundler", "target": "ES2022" }}All Theatrical packages ship with bundled .d.ts declarations — no @types/ packages needed.
Next steps
Head to the Quickstart to make your first API call in under five minutes.