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()
Active operator missions, paginated. The gateway lists only the active ones and has no filter by type.
Parameters
input?
options?
Returns
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?
options?
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.