UNPKG

@trophyso/node

Version:
14 lines (13 loc) 584 B
import type * as TrophyApi from "../index"; export interface WebhooksPointsLevelChangedPayload { /** The webhook event type. */ type: "points.level_changed"; /** The user whose level changed. */ user: TrophyApi.User; /** The points system in which the level changed. */ points: TrophyApi.WebhooksPointsLevelChangedPayloadPoints; /** The user's previous level, or null if the user had no level. */ previousLevel?: TrophyApi.PointsLevel; /** The user's new level, or null if the user no longer has a level. */ newLevel?: TrophyApi.PointsLevel; }