ThemeParks.wiki Parks API - v2.0.0
    Preparing search index...

    Type Alias HistoryParkRawEnvelope

    Full-state change rows for a whole PARK: every entity of the park that has history, in one call, for exactly 1 park-local day. GET /v1/entity/{id}/history returns THIS shape when the entity is a PARK (entityType: "PARK") and HistoryEnvelope for every other entityType, so a client should branch on the presence of entities[] or on the entity's type. A range spanning more than one day is 400 RANGE_TOO_LONG: a day of a park is up to a few hundred entities of archived history and the one-day limit is what bounds it. Ask day by day.

    type HistoryParkRawEnvelope = {
        destinationId: string | null;
        entities: HistoryParkEntityRaw[];
        entityType: string;
        id: string;
        name: string;
        next: string | null;
        parentId: string | null;
        range: HistoryRange;
        timezone: string;
    }
    Index
    destinationId: string | null

    One entry per entity of the park that has history, ascending by name. An entity with no history is ABSENT — never an entry of nulls — because "we hold nothing for this entity" is a different claim from "this entity recorded no change today". The park itself is included when it has history of its own.

    entityType: string
    id: string
    name: string
    next: string | null

    Always null: a park history call covers one park-local day, so there is never a next page.

    parentId: string | null
    timezone: string

    IANA timezone the park-local day is resolved in. The park is the authority on where its day boundaries fall, so every entity below is resolved in THIS zone.