UNPKG

quria

Version:

A user-friendly Destiny 2 API Wrapper written with TypeScript and approved by -Axis Minds- Oryx.

66 lines (65 loc) 4.43 kB
import { ITokens, APIResponse, FireteamDateRange, FireteamPlatform, FireteamPublicSearchOption, FireteamSlotSearch, SearchResultOfFireteamSummary, SearchResultOfFireteamResponse, FireteamResponse } from "../../types"; export declare class Fireteam { private url; private headers; constructor(url: string, headers: Record<string, string>); /** * Gets a count of all active non-public fireteams for the specified clan. Maximum value returned is 25. * @param groupId The group id of the clan. * @returns Gets a count of all active non-public fireteams for the specified clan. Maximum value returned is 25. */ GetActivePrivateClanFireteamCount(groupId: string, tokens?: ITokens): Promise<APIResponse<number>>; /** * Gets a listing of all of this clan's fireteams that are have available slots. Caller is not checked for join criteria so caching is maximized. * @param activityType The activity type to filter by. * @param dateRange The date range to grab available fireteams. * @param excludeImmediate If you wish the result to exclude immediate fireteams, set this to true. Immediate-only can be forced using the dateRange enum. * @param groupId The group id of the clan. * @param langFilter An optional language filter. * @param page Zero based page * @param platform The platform filter. * @param publicOnly Determines public/private filtering. * @param slotFilter Filters based on available slots * @returns Gets a listing of all of this clan's fireteams that are have available slots. Caller is not checked for join criteria so caching is maximized. */ GetAvailableClanFireteams(activityType: number, dateRange: FireteamDateRange, groupId: string, page: number, platform: FireteamPlatform, publicOnly: FireteamPublicSearchOption, slotFilter: FireteamSlotSearch, queryString: { excludeImmediate?: boolean; langFilter?: string; } | null, tokens?: ITokens): Promise<APIResponse<SearchResultOfFireteamSummary>>; /** * Gets a listing of all public fireteams starting now with open slots. Caller is not checked for join criteria so caching is maximized. * @param activityType The activity type to filter by. * @param dateRange The date range to grab available fireteams. * @param excludeImmediate If you wish the result to exclude immediate fireteams, set this to true. Immediate-only can be forced using the dateRange enum. * @param langFilter An optional language filter. * @param page Zero based page * @param platform The platform filter. * @param slotFilter Filters based on available slots * @returns Gets a listing of all public fireteams starting now with open slots. Caller is not checked for join criteria so caching is maximized. */ SearchPublicAvailableClanFireteams(activityType: number, dateRange: FireteamDateRange, page: number, platform: FireteamPlatform, slotFilter: FireteamSlotSearch, queryString: { excludeImmediate?: boolean; langFilter?: string; } | null, tokens?: ITokens): Promise<APIResponse<SearchResultOfFireteamSummary>>; /** * Gets a listing of all fireteams that caller is an applicant, a member, or an alternate of. * @param groupFilter If true, filter by clan. Otherwise, ignore the clan and show all of the user's fireteams. * @param groupId The group id of the clan. (This parameter is ignored unless the optional query parameter groupFilter is true). * @param includeClosed If true, return fireteams that have been closed. * @param langFilter An optional language filter. * @param page Deprecated parameter, ignored. * @param platform The platform filter. * @returns Gets a listing of all fireteams that caller is an applicant, a member, or an alternate of. */ GetMyClanFireteams(groupId: string, includeClosed: boolean, page: number, platform: FireteamPlatform, queryString: { groupFilter?: boolean; langFilter?: string; } | null, tokens?: ITokens): Promise<APIResponse<SearchResultOfFireteamResponse>>; /** * Gets a specific fireteam. * @param fireteamId The unique id of the fireteam. * @param groupId The group id of the clan. * @returns Gets a specific fireteam. */ GetClanFireteam(fireteamId: string, groupId: string, tokens?: ITokens): Promise<APIResponse<FireteamResponse>>; }