@blizzard-api/wow
Version:
A series of helpers to interact with the World of Warcraft Blizzard API
90 lines (89 loc) • 2.1 kB
JavaScript
import { wowBasePath } from "@blizzard-api/core";
//#region src/quest/index.ts
/**
* Get a quest by ID.
* @param questId The quest ID.
* @returns The quest. See {@link QuestResponse}.
*/
function quest(questId) {
return {
namespace: "static",
path: `${wowBasePath}/quest/${questId}`
};
}
/**
* Get a quest area by ID.
* @param questAreaId The quest area ID.
* @returns The quest area. See {@link QuestAreaResponse}.
*/
function questArea(questAreaId) {
return {
namespace: "static",
path: `${wowBasePath}/quest/area/${questAreaId}`
};
}
/**
* Get a quest area index.
* @returns The quest area index. See {@link QuestAreaIndexResponse}.
*/
function questAreaIndex() {
return {
namespace: "static",
path: `${wowBasePath}/quest/area/index`
};
}
/**
* Get a quest category by ID.
* @param questCategoryId The quest category ID.
* @returns The quest category. See {@link QuestCategoryResponse}.
*/
function questCategory(questCategoryId) {
return {
namespace: "static",
path: `${wowBasePath}/quest/category/${questCategoryId}`
};
}
/**
* Get a quest category index.
* @returns The quest category index. See {@link QuestCategoryIndexResponse}.
*/
function questCategoryIndex() {
return {
namespace: "static",
path: `${wowBasePath}/quest/category/index`
};
}
/**
* Get a quest index.
* @returns The quest index. See {@link QuestIndexResponse}.
*/
function questIndex() {
return {
namespace: "static",
path: `${wowBasePath}/quest/index`
};
}
/**
* Get a quest type by ID.
* @param questTypeId The quest type ID.
* @returns The quest type. See {@link QuestTypeResponse}.
*/
function questType(questTypeId) {
return {
namespace: "static",
path: `${wowBasePath}/quest/type/${questTypeId}`
};
}
/**
* Get a quest type index.
* @returns The quest type index. See {@link QuestTypeIndexResponse}.
*/
function questTypeIndex() {
return {
namespace: "static",
path: `${wowBasePath}/quest/type/index`
};
}
//#endregion
export { quest, questArea, questAreaIndex, questCategory, questCategoryIndex, questIndex, questType, questTypeIndex };
//# sourceMappingURL=index.js.map