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

    Type Alias Entity

    Entity: {
        destinationId?: string | null;
        id: string;
        location?: EntityLocation;
        name: LocalisedString;
        parentId?: string | null;
        parkId?: string | null;
        tags?: TagData[];
        timezone: string;
    } & (
        | { attractionType: AttractionType; entityType: "ATTRACTION" }
        | {
            attractionType?: AttractionType;
            entityType: "DESTINATION" | "PARK" | "RESTAURANT" | "SHOW" | "HOTEL";
        }
    )

    Type Declaration

    • OptionaldestinationId?: string | null

      Destination identifier, must always be set when entityType is not DESTINATION

    • id: string

      Unique entity identifier

    • Optionallocation?: EntityLocation

      Entity location coordinates

    • name: LocalisedString

      Entity name

    • OptionalparentId?: string | null

      Parent entity identifier, must always be set when entityType is not DESTINATION

    • OptionalparkId?: string | null

      Park identifier, must be set if any parent entity in the hierarchy is a park

    • Optionaltags?: TagData[]

      Array of tags associated with the entity

    • timezone: string

      Entity timezone

    • { attractionType: AttractionType; entityType: "ATTRACTION" }
      • attractionType: AttractionType

        Type of attraction, required when entityType is ATTRACTION

      • entityType: "ATTRACTION"

        Type of entity

    • {
          attractionType?: AttractionType;
          entityType: "DESTINATION" | "PARK" | "RESTAURANT" | "SHOW" | "HOTEL";
      }
      • OptionalattractionType?: AttractionType

        Type of attraction, required when entityType is ATTRACTION

      • entityType: "DESTINATION" | "PARK" | "RESTAURANT" | "SHOW" | "HOTEL"

        Type of entity