bungie-api-ts
Version:
TypeScript mappings for the Bungie.net API
132 lines (131 loc) • 4.42 kB
TypeScript
/**
* Bungie.Net API
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* OpenAPI spec version: 2.20.1
* Contact: support@bungie.com
*
* NOTE: This class is auto generated by the bungie-api-ts code generator program.
* https://github.com/DestinyItemManager/bungie-api-ts
* Do not edit these files manually.
*/
import { HttpClient } from '../http.js';
import {
FireteamDateRange,
FireteamPlatform,
FireteamPublicSearchOption,
FireteamResponse,
FireteamSlotSearch,
SearchResultOfFireteamResponse,
SearchResultOfFireteamSummary,
} from './interfaces.js';
import { ServerResponse } from '../common.js';
export interface GetActivePrivateClanFireteamCountParams {
/** The group id of the clan. */
groupId: string;
}
/**
* Gets a count of all active non-public fireteams for the specified clan. Maximum
* value returned is 25.
*/
export declare function getActivePrivateClanFireteamCount(
http: HttpClient,
params: GetActivePrivateClanFireteamCountParams
): Promise<ServerResponse<number>>;
export interface GetAvailableClanFireteamsParams {
/** The activity type to filter by. */
activityType: number;
/** The date range to grab available fireteams. */
dateRange: FireteamDateRange;
/**
* If you wish the result to exclude immediate fireteams, set this to true.
* Immediate-only can be forced using the dateRange enum.
*/
excludeImmediate?: boolean;
/** The group id of the clan. */
groupId: string;
/** An optional language filter. */
langFilter?: string;
/** Zero based page */
page: number;
/** The platform filter. */
platform: FireteamPlatform;
/** Determines public/private filtering. */
publicOnly: FireteamPublicSearchOption;
/** Filters based on available slots */
slotFilter: FireteamSlotSearch;
}
/**
* 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.
*/
export declare function getAvailableClanFireteams(
http: HttpClient,
params: GetAvailableClanFireteamsParams
): Promise<ServerResponse<SearchResultOfFireteamSummary>>;
export interface SearchPublicAvailableClanFireteamsParams {
/** The activity type to filter by. */
activityType: number;
/** The date range to grab available fireteams. */
dateRange: FireteamDateRange;
/**
* If you wish the result to exclude immediate fireteams, set this to true.
* Immediate-only can be forced using the dateRange enum.
*/
excludeImmediate?: boolean;
/** An optional language filter. */
langFilter?: string;
/** Zero based page */
page: number;
/** The platform filter. */
platform: FireteamPlatform;
/** Filters based on available slots */
slotFilter: FireteamSlotSearch;
}
/**
* Gets a listing of all public fireteams starting now with open slots. Caller is
* not checked for join criteria so caching is maximized.
*/
export declare function searchPublicAvailableClanFireteams(
http: HttpClient,
params: SearchPublicAvailableClanFireteamsParams
): Promise<ServerResponse<SearchResultOfFireteamSummary>>;
export interface GetMyClanFireteamsParams {
/**
* If true, filter by clan. Otherwise, ignore the clan and show all of the user's
* fireteams.
*/
groupFilter?: boolean;
/**
* The group id of the clan. (This parameter is ignored unless the optional query
* parameter groupFilter is true).
*/
groupId: string;
/** If true, return fireteams that have been closed. */
includeClosed: boolean;
/** An optional language filter. */
langFilter?: string;
/** Deprecated parameter, ignored. */
page: number;
/** The platform filter. */
platform: FireteamPlatform;
}
/**
* Gets a listing of all fireteams that caller is an applicant, a member, or an
* alternate of.
*/
export declare function getMyClanFireteams(
http: HttpClient,
params: GetMyClanFireteamsParams
): Promise<ServerResponse<SearchResultOfFireteamResponse>>;
export interface GetClanFireteamParams {
/** The unique id of the fireteam. */
fireteamId: string;
/** The group id of the clan. */
groupId: string;
}
/** Gets a specific fireteam. */
export declare function getClanFireteam(
http: HttpClient,
params: GetClanFireteamParams
): Promise<ServerResponse<FireteamResponse>>;