dolorealiquam
Version:
TypeScript mappings for the Bungie.net API
176 lines (175 loc) • 6.46 kB
JavaScript
"use strict";
/**
* 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.1.5
* Contact: support@bungie.com
*
* NOTE: This class is auto generated by the bungie-api-ts code generator program.
* https://github.com/DestinyItemManager/bugie-api-ts
* Do not edit these files manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
/** Get topics from any forum. */
function getTopicsPaged(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Forum/GetTopicsPaged/" + params.page + "/" + params.pageSize + "/" + params.group + "/" + params.sort + "/" + params.quickDate + "/" + params.categoryFilter + "/",
params: {
locales: params.locales,
tagstring: params.tagstring
}
});
}
exports.getTopicsPaged = getTopicsPaged;
/** Gets a listing of all topics marked as part of the core group. */
function getCoreTopicsPaged(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Forum/GetCoreTopicsPaged/" + params.page + "/" + params.sort + "/" + params.quickDate + "/" + params.categoryFilter + "/",
params: {
locales: params.locales
}
});
}
exports.getCoreTopicsPaged = getCoreTopicsPaged;
/**
* Returns a thread of posts at the given parent, optionally returning replies to
* those posts as well as the original parent.
*/
function getPostsThreadedPaged(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Forum/GetPostsThreadedPaged/" + params.parentPostId + "/" + params.page + "/" + params.pageSize + "/" + params.replySize + "/" + params.getParentPost + "/" + params.rootThreadMode + "/" + params.sortMode + "/",
params: {
showbanned: params.showbanned
}
});
}
exports.getPostsThreadedPaged = getPostsThreadedPaged;
/**
* Returns a thread of posts starting at the topicId of the input childPostId,
* optionally returning replies to those posts as well as the original parent.
*/
function getPostsThreadedPagedFromChild(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Forum/GetPostsThreadedPagedFromChild/" + params.childPostId + "/" + params.page + "/" + params.pageSize + "/" + params.replySize + "/" + params.rootThreadMode + "/" + params.sortMode + "/",
params: {
showbanned: params.showbanned
}
});
}
exports.getPostsThreadedPagedFromChild = getPostsThreadedPagedFromChild;
/** Returns the post specified and its immediate parent. */
function getPostAndParent(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Forum/GetPostAndParent/" + params.childPostId + "/",
params: {
showbanned: params.showbanned
}
});
}
exports.getPostAndParent = getPostAndParent;
/**
* Returns the post specified and its immediate parent of posts that are awaiting
* approval.
*/
function getPostAndParentAwaitingApproval(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Forum/GetPostAndParentAwaitingApproval/" + params.childPostId + "/",
params: {
showbanned: params.showbanned
}
});
}
exports.getPostAndParentAwaitingApproval = getPostAndParentAwaitingApproval;
/** Gets the post Id for the given content item's comments, if it exists. */
function getTopicForContent(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Forum/GetTopicForContent/" + params.contentId + "/"
});
}
exports.getTopicForContent = getTopicForContent;
/**
* Gets tag suggestions based on partial text entry, matching them with other tags
* previously used in the forums.
*/
function getForumTagSuggestions(http, params) {
return http({
method: 'GET',
url: 'https://www.bungie.net/Platform/Forum/GetForumTagSuggestions/',
params: {
partialtag: params.partialtag
}
});
}
exports.getForumTagSuggestions = getForumTagSuggestions;
/** Gets the specified forum poll. */
function getPoll(http, params) {
return http({
method: 'GET',
url: "https://www.bungie.net/Platform/Forum/Poll/" + params.topicId + "/"
});
}
exports.getPoll = getPoll;
/**
* Allows a user to slot themselves into a recruitment thread fireteam slot.
* Returns the new state of the fireteam.
*/
function joinFireteamThread(http, params) {
return http({
method: 'POST',
url: "https://www.bungie.net/Platform/Forum/Recruit/Join/" + params.topicId + "/"
});
}
exports.joinFireteamThread = joinFireteamThread;
/**
* Allows a user to remove themselves from a recruitment thread fireteam slot.
* Returns the new state of the fireteam.
*/
function leaveFireteamThread(http, params) {
return http({
method: 'POST',
url: "https://www.bungie.net/Platform/Forum/Recruit/Leave/" + params.topicId + "/"
});
}
exports.leaveFireteamThread = leaveFireteamThread;
/**
* Allows a recruitment thread owner to kick a join user from the fireteam. Returns
* the new state of the fireteam.
*/
function kickBanFireteamApplicant(http, params) {
return http({
method: 'POST',
url: "https://www.bungie.net/Platform/Forum/Recruit/KickBan/" + params.topicId + "/" + params.targetMembershipId + "/"
});
}
exports.kickBanFireteamApplicant = kickBanFireteamApplicant;
/**
* Allows the owner of a fireteam thread to approve all joined members and start a
* private message conversation with them.
*/
function approveFireteamThread(http, params) {
return http({
method: 'POST',
url: "https://www.bungie.net/Platform/Forum/Recruit/Approve/" + params.topicId + "/"
});
}
exports.approveFireteamThread = approveFireteamThread;
/**
* Allows the caller to get a list of to 25 recruitment thread summary information
* objects.
*/
function getRecruitmentThreadSummaries(http, body) {
return http({
method: 'POST',
url: 'https://www.bungie.net/Platform/Forum/Recruit/Summaries/',
body: body
});
}
exports.getRecruitmentThreadSummaries = getRecruitmentThreadSummaries;