@blizzard-api/wow
Version:
A series of helpers to interact with the World of Warcraft Blizzard API
80 lines (79 loc) • 1.87 kB
JavaScript
import { wowBasePath, wowMediaBasePath } from "@blizzard-api/core";
//#region src/covenant/index.ts
/**
* Get a conduit by ID.
* @param conduitId The conduit ID.
* @returns The conduit. See {@link ConduitResponse}.
*/
function conduit(conduitId) {
return {
namespace: "static",
path: `${wowBasePath}/covenant/conduit/${conduitId}`
};
}
/**
* Get a conduit index.
* @returns The conduit index. See {@link ConduitIndexResponse}.
*/
function conduitIndex() {
return {
namespace: "static",
path: `${wowBasePath}/covenant/conduit/index`
};
}
/**
* Get a covenant by ID.
* @param covenantId The covenant ID.
* @returns The covenant. See {@link CovenantResponse}.
*/
function covenant(covenantId) {
return {
namespace: "static",
path: `${wowBasePath}/covenant/${covenantId}`
};
}
/**
* Get a covenant index.
* @returns The covenant index. See {@link CovenantIndexResponse}.
*/
function covenantIndex() {
return {
namespace: "static",
path: `${wowBasePath}/covenant/index`
};
}
/**
* Get covenant media by ID.
* @param covenantId The covenant ID.
* @returns The covenant media. See {@link CovenantMediaResponse}.
*/
function covenantMedia(covenantId) {
return {
namespace: "static",
path: `${wowMediaBasePath}/covenant/${covenantId}`
};
}
/**
* Get a soulbind by ID.
* @param soulbindId The soulbind ID.
* @returns The soulbind. See {@link SoulbindResponse}.
*/
function soulbind(soulbindId) {
return {
namespace: "static",
path: `${wowBasePath}/covenant/soulbind/${soulbindId}`
};
}
/**
* Get a soulbind index.
* @returns The soulbind index. See {@link SoulbindIndexResponse}.
*/
function soulbindIndex() {
return {
namespace: "static",
path: `${wowBasePath}/covenant/soulbind/index`
};
}
//#endregion
export { conduit, conduitIndex, covenant, covenantIndex, covenantMedia, soulbind, soulbindIndex };
//# sourceMappingURL=index.js.map