This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-igaming / MissionsApi

MissionsApi ​

Operator missions and the player's progress. Both methods require login. There is no claim(): the reward is automatic (inferred; see the "Missions" page).

Methods ​

list() ​

list(input?, options?): Promise<Page<Mission>>

Active operator missions, paginated. The gateway lists only the active ones and has no filter by type.

Parameters ​

input? ​

ListMissionsInput

options? ​

CallOptions

Returns ​

Promise<Page<Mission>>

Example ​

ts
const page = await igaming.missions.list({ perPage: 20 })
page.items.forEach((mission) => renderMission(mission.name, mission.targetValue))

Throws ​

CONFIGURATION_ERROR (without a request) for a page that is not an integer ≥ 1 or a perPage outside 1–100 or not an integer; UNAUTHENTICATED without a session.


listMine() ​

listMine(params?, options?): Promise<UserMission[]>

The player's progress on the active missions, without pagination.

Parameters ​

params? ​

NoParams

options? ​

CallOptions

Returns ​

Promise<UserMission[]>

Example ​

ts
const mine = await igaming.missions.listMine()
const open = mine.filter((m) => m.status === 'in_progress')

Throws ​

UNAUTHENTICATED without a session.