UNPKG

friend-connect

Version:

**BEFORE YOU USE THIS TOOL, PLEASE READ THE FOLLOWING: WE _AS CONTRIBUTORS_ ARE NOT RESPONSIBLE FOR ANY DAMAGE OR LOSS CAUSED BY THIS APP. USE AN ALT ACCOUNT, JUST IN CASE THERE IS AN ISSUE WITH THIS METHOD.**

30 lines (29 loc) 1.41 kB
import { XboxClient } from ".."; import { GUID, UserIdentifier } from "../types"; import { Achievement } from "../xboxRestTypes"; interface TitleHistoryQueryStringParameters { /** * Return items beginning after the given number of items. For example, skipItems="3" will retrieve items beginning with the fourth item retrieved. */ skipItems: `${number}`; /** * Return the items starting at the given continuation token. */ continuationToken?: string; /** * Maximum number of items to return from the collection, which can be combined with skipItems and continuationToken to return a range of items. The service may provide a default value if maxItems is not present, and may return fewer than maxItems, even if the last page of results has not yet been returned. */ maxItems?: `${number}`; } export default class Achievements { private readonly xbox; static readonly uri: string; constructor(xboxLiveClient: XboxClient); getAchievements(identifier: UserIdentifier, language?: string): Promise<Achievement[]>; getAchievement(identifier: UserIdentifier, serviceConfigId: GUID, achievementId: number, language?: string): Promise<Achievement>; /** * Returns a 403 atm */ getTitleHistory(identifier?: UserIdentifier, query?: TitleHistoryQueryStringParameters): Promise<unknown>; } export {};