Home Reference Source

References

summary
public

Base Config Object
Supports classes with a single argument "options"
These will be sorted into a member called "this.config" containing all the same keys

Crucially, these can also be overriden through environment variables
For example, for a config option "timeout" for class Database, this could be overriden through either:
env.TPAPI_TIMEOUT (using a "global module name")

Classes can also add additional prefixes to the supported environment variables through:
new ClassInstance({configPrefixes: ['myCustomPrefix']});
Which would also allow env.MYCUSTOMPREFIX_TIMEOUT to be used

Note that a default value must be supplied for the environment variable to be processed
If the default value is a number, the environment variable will be cast to a number as well

public

F async getCache(): *

Get the configured Cache implementation

public

F parseConfig(options: object): object

Combine given options with environment variables

public

F reusePromise(self: *, fn: function, args: ...any): Promise

Reuse a function until it resolves

public

F reusePromiseForever(self: *, fn: function, args: ...any): Promise

Reuse a function, returning it's result forever

cache

summary
public

Our base Cache implementation
Extend this class with new implementations to create different cache types (in-memory, database, file system etc.)

public

A cache implementation using LevelDown

public

A basic in-memory cache implementation

public

A wrapper class for accessing the cache.

parks

summary
public

C Entity

A super-class that Parks/Resorts/etc.

public

Location class used as base for any themeparks object that has a physical location (parks, resorts, restaurants etc.)

public

C Park

Base Park Object

public

Possible types of categories

public

V entityTags: *

Possible types of tags

public

Possible types of queue entities

parks/bellewaerde

summary
public

Bellewaerde Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

parks/cdaparks

summary
public

CDA Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

parks/efteling

summary
public

Efteling Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

parks/europapark

summary
public

EuropaPark Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

public

EuropaPark Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

public

Rulantica Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

public

C Yullbe

YULLBE Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

parks/hansapark

summary
public

Hansa-Park Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

parks/phantasialand

summary
public

Phantasialand Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

parks/plopsa

summary
public

Holiday Park Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

public

Plopsa Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

public

Plopsaland de Panne Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

parks/toverland

summary
public

Toverland Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

parks/walibi

summary
public

Walibi Belgium Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

public

Walibi Holland Park Object
Make sure all environment variables are set in an .env file which should be in the main location.

public

Walibi RA Park Object
Make sure all environment variables are set in an .env file which should be in the main location.