ShowPerformance.listUpcomingByEnvironmentsince 1.0.0
listUpcomingByEnvironment(environmentDomain: string): Promise<{ showPerformances, profiles, venues }>
Every upcoming date of every active show in a universe, soonest first.
| Parameter | Type | Description |
|---|---|---|
environmentDomain | string | The universe's domain, e.g. "comedy.performer.app" or your own domain if you connected one. |
Returns showPerformances: one entry per date, with the show's fields merged in (title, description, image, coverImage, genres, ...), the date's own (id, startTimeUnixTs, endTimeUnixTs, venueId, lineUp), and ticketLink, performLink, formattedDate and formattedTime (in the venue's time zone). profiles and venues are keyed by id, for the line-up and the venue of each date.
const { showPerformances, profiles, venues } =
await sdk.ShowPerformance.listUpcomingByEnvironment("comedy.performer.app");
for (const date of showPerformances) {
const venue = venues[date.venueId];
console.log(`${date.title} · ${date.formattedDate} ${date.formattedTime} · ${venue.name}`);
console.log("Tickets:", date.ticketLink);
console.log("Line-up:", date.lineUp.map(({ profile }) => profiles[profile]?.name));
}