Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IngredientSearchRequestOptions

The options for an ingredient API request

Hierarchy

Index

Properties

allowCache?: boolean

Whether to allow this request to pull from cache if available

apiKey?: string

The API key to use in this request

The key has to be registered in the config.
If this is not given, the registered key with the most free requests will be selected.
displayName?: string

Only match ingredients containing this string in their name as displayed in-game

case-insensitive
identifications?: IdentificationQuery

Only match ingredients with these identifications

ignoreVersion?: boolean

Whether to ignore version errors

You can use this to resolve temporary conflicts while the library awaits being updated. Otherwise it should stay enabled.
default

false

level?: number | OpenRange

Only match ingredients of this level

Values have to be integers and the Range has to have at least one bound.

name?: string

Only match ingredients containing this string in their name

case-insensitive
positionModifiers?: PositionModifierQuery

Only match ingredients with these positional modifiers

priority?: boolean

Whether this request should be put to the front of the queue, executing before any non-priority requests are handled

default

false

restrictedIds?: RestrictedIdQuery

Only match ingredients with these restricted identifications

retries?: number

The amount of times to retry the request on error

Only match ingredients that match this Filter

Only match ingredients using this sprite

tier?: number | OpenRange

Only match ingredients of this tier

Values have to be integers between 0 and 3 and the Range has to have at least one bound.

timeout?: number

The amount of milliseconds a until the request should be rejected

Be aware that each retry has it's own timeout, meaning 30,000 ms of timeout may lead to a 90,000 ms wait until a request is rejected on 2 retries.

Generated using TypeDoc