Home Reference Source
public class | source

Efteling

Extends:

events~EventEmitterConfigBaseEntityPark → Efteling

Efteling 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.

Most park specific parameters are set already

Constructor Summary

Public Constructor
public

constructor(options: object)

Create a new Efteling Park object

Method Summary

Public Methods
public

Build Efteling fairytale object
This data contains general fairytale names, descriptions etc.

public

Build Efteling merchandise object
This data contains general merchandise names, descriptions etc.

public

Build Efteling restaurant object
This data contains general restaurant names, descriptions etc.

public

async buildRidePOI(): string

Build Efteling ride object
This data contains general ride names, descriptions etc.

public

async buildShowPOI(): string

Build Efteling show object
This data contains general show names, descriptions etc.

public

async getOpHours(): string

Get Efteling Park Hours data
This data contains the hours data, used to display the operating hours of Efteling

public

async getPOIS(): string

Get Efteling POI data
This data contains general ride names, descriptions etc.

public

async getQueue(): string

Get Efteling QueueTimes data
This data contains the queue data, we'll assign them to the earlier fetched pois

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

Get entity's human-friendly language string

public get

Get entity's human-friendly location string

public get

Name: string: *

Get entity's human-friendly name string

public get

Now: string: *

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

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
This data contains all the calendar data of a specific Park

public

async getData(): string

Get All Data of a specific park
This data contains all park's data, which is fetched earlier

public

async getFairytale(): string

Get All Fairytales of park
This data contains all the fairytales.

public

async getHalloween(): string

Get All Halloween of a themepark
This data contains all the merchandise.

public

Get All Merchandise of a themepark
This data contains all the merchandise.

public

Get All Data of a park
This data contains all the Data in park

public

Get All Restaurants of a park
This data contains all the restaurants.

public

async getRide(ride: *): string

public

async getRides(): string

Get All Rides of a park
This data contains all the rides.

public

async getService(): string

Get All Services of park
This data contains all the EP park.

public

async getShows(): string

Get All Shows of a park
This data contains all the rides.

public

async getStatic(): string

Get All Statics of a park
This data contains all the static.

public

Get All Queues of a park
This data contains all the Queues in park

public

async getWaitTimes(): string

Get all queues of a park

Public Constructors

public constructor(options: object) source

Create a new Efteling Park object

Override:

Park#constructor

Params:

NameTypeAttributeDescription
options object

Public Methods

public async buildFairytalePOI(): string source

Build Efteling fairytale object
This data contains general fairytale names, descriptions etc.

Return:

string

All Efteling fairytale POIS

Example:

import tpapi from '@alexvv13/tpapi';

const park = new tpapi.park.Efteling();

park.buildFairyTalePOI().then((pois) => {
console.log(pois)
});

public async buildMerchandisePOI(): string source

Build Efteling merchandise object
This data contains general merchandise names, descriptions etc.

Return:

string

All Efteling merchandise POIS

Example:

import tpapi from '@alexvv13/tpapi';

const park = new tpapi.park.Efteling();

park.buildMercnahdisePOI().then((pois) => {
console.log(pois)
});

public async buildRestaurantPOI(): string source

Build Efteling restaurant object
This data contains general restaurant names, descriptions etc.

Return:

string

All Efteling restaurant POIS

Example:

import tpapi from '@alexvv13/tpapi';

const park = new tpapi.park.Efteling();

park.buildRestaurantPOI().then((pois) => {
console.log(pois)
});

public async buildRidePOI(): string source

Build Efteling ride object
This data contains general ride names, descriptions etc.

Return:

string

All Efteling ride POIS without queuetimes

public async buildShowPOI(): string source

Build Efteling show object
This data contains general show names, descriptions etc.

Return:

string

All Efteling show POIS

Example:

import tpapi from '@alexvv13/tpapi';

const park = new tpapi.park.Efteling();

park.buildShowPOI().then((pois) => {
console.log(pois)
});

public async getOpHours(): string source

Get Efteling Park Hours data
This data contains the hours data, used to display the operating hours of Efteling

Return:

string

All Efteling Operating Hours for 1mo

Example:

import tpapi from '@alexvv13/tpapi';

const park = new tpapi.park.Efteling();

park.getOpHours().then((hours) => {
console.log(hours)
});

public async getPOIS(): string source

Get Efteling POI data
This data contains general ride names, descriptions etc.

Return:

string

All Efteling POIS without queuetimes

public async getQueue(): string source

Get Efteling QueueTimes data
This data contains the queue data, we'll assign them to the earlier fetched pois

Return:

string

All Efteling POIS with queuetimes

Example:

import tpapi from '@alexvv13/tpapi';

const park = new tpapi.park.Efteling();

park.getQueue().then((queue) => {
console.log(queue)
});