import {EuropaParkBase} from '@alexvv13/tpapi/lib/parks/europapark/europaparkbase.js'
EuropaParkBase
Extends:
Direct Subclass:
EuropaPark Park Object
Make sure all environment variables are set in an .env file which should be in the main location.
Not setting these variables will make the module exit early without returning data.
This class is here to fetch the POI data and to attach queue times data to it.
After the fetches this data is send to the end user and from there he could do whatever he wants to do.
NOTE: Dutch language is supported, however strange things occur, such as deletion of VirtualLine entries making rides appear twice as 'normal'
This class contains some login and refresh functions, but NEVER call them if you don't need them.
Most park specific parameters are set already
Constructor Summary
Public Constructor | ||
public |
constructor(options: object) Create a new EuropaPark Park object |
Member Summary
Public Members | ||
public |
bf: * Setup BlowFish |
Method Summary
Public Methods | ||
public |
async buildHours(): * Generate the calendar objects |
|
public |
async buildMerchandisePOI(): string Build EuropaPark park Merchandise object |
|
public |
async buildRestaurantPOI(): string Build EuropaPark park restaurant object |
|
public |
async buildRidePOI(): string Build EuropaPark park ride object |
|
public |
async buildServicePOI(): string Build EuropaPark park Service object |
|
public |
async buildStaticPOI(): string Build EuropaPark park static object |
|
public |
async fetchHours(date: moment): string Get All Operating Hours of EuropaPark |
|
public |
async getConfig(): * Get Europa Park config keys |
|
public |
async getFirebaseID(): * Get or generate a Firebase device ID |
|
public |
Get All Operating Hours of EuropaPark |
|
public |
async getOpHours(): * Get Operating Calendar for this park |
|
public |
Get All POIS of EuropaPark park |
|
public |
Get All Queues of EuropaPark park |
|
public |
Login to EuropaPark API |
Inherited Summary
From class ConfigBase | ||
public |
config: * Parse the config of a specific park as object |
From class Entity | ||
public get |
Get entity's human-friendly fastpass support string |
|
public get |
Get entity's human-friendly FastPassReturnTimes support string |
|
public get |
LangOptions: string: * Get entity's human-friendly language string |
|
public get |
Get entity's human-friendly location string |
|
public get |
Get entity's human-friendly name string |
|
public get |
Get entity's human-friendly moment now string |
|
public get |
Get entity's human-friendly openingtimes support string |
|
public get |
Get entity's human-friendly ride openingtimes support string |
|
public get |
Get entity's human-friendly waittimes support string |
|
public get |
Get entity's human-friendly timezone string |
|
public |
getTimeNow(): string Return the current time for this entity in its local timezone |
|
public |
getTimeNowMoment(): moment Return the current time for this entity in its local timezone |
|
public |
Get a globally unique ID for this entity |
|
public |
log(args: ...any) Debug log |
From class Park | ||
public |
cache: * Create a new cache object for this park, so we can reuse pois instead of refetch them every time. |
|
public |
Get All Calendar Data of a specific park |
|
public |
Get All Data of a specific park |
|
public |
async getFairytale(): string Get All Fairytales of park |
|
public |
async getHalloween(): string Get All Halloween of a themepark |
|
public |
async getMerchandise(): string Get All Merchandise of a themepark |
|
public |
Get All Data of a park |
|
public |
async getRestaurant(): string Get All Restaurants of a park |
|
public |
|
|
public |
Get All Rides of a park |
|
public |
async getService(): string Get All Services of park |
|
public |
Get All Shows of a park |
|
public |
Get All Statics of a park |
|
public |
Get All Queues of a park |
|
public |
async getWaitTimes(): string Get all queues of a park |
Public Constructors
public constructor(options: object) source
Create a new EuropaPark Park object
Override:
Park#constructorParams:
Name | Type | Attribute | Description |
options | object |
Public Members
Public Methods
public async buildHours(): * source
Generate the calendar objects
@return{object} Object keyed to dates in YYYY-MM-DD format.
Each date entry will contain an array of operating hours.
Return:
* |
public async buildMerchandisePOI(): string source
Build EuropaPark park Merchandise object
This data contains general merchandise names, descriptions etc.
public async buildRestaurantPOI(): string source
Build EuropaPark park restaurant object
This data contains general restaurant names, descriptions etc.
public async buildRidePOI(): string source
Build EuropaPark park ride object
This data contains general ride names, descriptions etc.
public async buildServicePOI(): string source
Build EuropaPark park Service object
This data contains general service names, descriptions etc.
public async buildStaticPOI(): string source
Build EuropaPark park static object
This data contains general ride names, descriptions etc.
public async fetchHours(date: moment): string source
Get All Operating Hours of EuropaPark
This data contains all the Operating Hours in EuropaPark.
Params:
Name | Type | Attribute | Description |
date | moment |
public async getHours(): string source
Get All Operating Hours of EuropaPark
This data contains all the Operating Hours in EuropaPark, fetched with currentyear.
public async getOpHours(): * source
Get Operating Calendar for this park
@return{object} Object keyed to dates in YYYY-MM-DD format.
Each date entry will contain an array of operating hours.
Return:
* |
public async getPOIS(): string source
Get All POIS of EuropaPark park
This data contains all the POIS in EuropaPark