@blizzard-api/wow
Advanced tools
Comparing version 2.0.0 to 2.0.1
// src/account-profile/account-profile.ts | ||
var accountProfileBase = "/profile/user/wow"; | ||
function accountProfileSummary(token) { | ||
return { | ||
namespace: "profile", | ||
path: `${accountProfileBase}`, | ||
token | ||
}; | ||
} | ||
function protectedCharacterProfileSummary(realmId, characterId, token) { | ||
return { | ||
namespace: "profile", | ||
path: `${accountProfileBase}/protected-character/${realmId}-${characterId}`, | ||
token | ||
}; | ||
} | ||
function accountCollectionsIndex(token) { | ||
@@ -45,2 +31,9 @@ return { | ||
} | ||
function accountProfileSummary(token) { | ||
return { | ||
namespace: "profile", | ||
path: `${accountProfileBase}`, | ||
token | ||
}; | ||
} | ||
function accountToysCollectionSummary(token) { | ||
@@ -60,2 +53,9 @@ return { | ||
} | ||
function protectedCharacterProfileSummary(realmId, characterId, token) { | ||
return { | ||
namespace: "profile", | ||
path: `${accountProfileBase}/protected-character/${realmId}-${characterId}`, | ||
token | ||
}; | ||
} | ||
@@ -70,2 +70,8 @@ // src/base.ts | ||
var achievementCategoryBase = `${base}/achievement-category`; | ||
function achievement(achievementId) { | ||
return { | ||
namespace: "static", | ||
path: `${achievementBase}/${achievementId}` | ||
}; | ||
} | ||
function achievementCategory(achievementCategoryId) { | ||
@@ -83,8 +89,2 @@ return { | ||
} | ||
function achievement(achievementId) { | ||
return { | ||
namespace: "static", | ||
path: `${achievementBase}/${achievementId}` | ||
}; | ||
} | ||
function achievementIndex() { | ||
@@ -206,12 +206,12 @@ return { | ||
var bathPase = "profile/wow/character"; | ||
function characterEncountersSummary(realmSlug, characterName) { | ||
function characterDungeons(realmSlug, characterName) { | ||
return { | ||
namespace: "profile", | ||
path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters` | ||
path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters/dungeons` | ||
}; | ||
} | ||
function characterDungeons(realmSlug, characterName) { | ||
function characterEncountersSummary(realmSlug, characterName) { | ||
return { | ||
namespace: "profile", | ||
path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters/dungeons` | ||
path: `${bathPase}/${realmSlug}/${characterName.toLowerCase()}/encounters` | ||
}; | ||
@@ -273,12 +273,12 @@ } | ||
// src/character-profile/character-profile.ts | ||
function characterProfileSummary(realmSlug, characterName) { | ||
function characterProfileStatus(realmSlug, characterName) { | ||
return { | ||
namespace: "profile", | ||
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}` | ||
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/status` | ||
}; | ||
} | ||
function characterProfileStatus(realmSlug, characterName) { | ||
function characterProfileSummary(realmSlug, characterName) { | ||
return { | ||
namespace: "profile", | ||
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}/status` | ||
path: `/profile/wow/character/${realmSlug}/${characterName.toLowerCase()}` | ||
}; | ||
@@ -296,12 +296,12 @@ } | ||
// src/character-quests/character-quests.ts | ||
function characterQuests(realmSlug, characterName) { | ||
function characterCompletedQuests(realmSlug, characterName) { | ||
return { | ||
namespace: "profile", | ||
path: `/profile/wow/character/${realmSlug}/${characterName}/quests` | ||
path: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed` | ||
}; | ||
} | ||
function characterCompletedQuests(realmSlug, characterName) { | ||
function characterQuests(realmSlug, characterName) { | ||
return { | ||
namespace: "profile", | ||
path: `/profile/wow/character/${realmSlug}/${characterName}/quests/completed` | ||
path: `/profile/wow/character/${realmSlug}/${characterName}/quests` | ||
}; | ||
@@ -351,12 +351,12 @@ } | ||
// src/connected-realm/connected-realm.ts | ||
function connectedRealmIndex() { | ||
function connectedRealm(connectedRealmId) { | ||
return { | ||
namespace: "dynamic", | ||
path: `${base}/connected-realm/index` | ||
path: `${base}/connected-realm/${connectedRealmId}` | ||
}; | ||
} | ||
function connectedRealm(connectedRealmId) { | ||
function connectedRealmIndex() { | ||
return { | ||
namespace: "dynamic", | ||
path: `${base}/connected-realm/${connectedRealmId}` | ||
path: `${base}/connected-realm/index` | ||
}; | ||
@@ -452,2 +452,13 @@ } | ||
} | ||
function creatureSearch(options) { | ||
return { | ||
namespace: "static", | ||
parameters: { | ||
_page: options._page, | ||
[`name.${options.locale}`]: options.name, | ||
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby | ||
}, | ||
path: `${searchBase}/creature` | ||
}; | ||
} | ||
function creatureType(creatureTypeId) { | ||
@@ -465,13 +476,22 @@ return { | ||
} | ||
function creatureSearch(options) { | ||
// src/guild-crest/guild-crest.ts | ||
function guildCrestBorder(borderId) { | ||
return { | ||
namespace: "static", | ||
parameters: { | ||
_page: options._page, | ||
[`name.${options.locale}`]: options.name, | ||
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby | ||
}, | ||
path: `${searchBase}/creature` | ||
path: `${mediaBase}/guild-crest/border/${borderId}` | ||
}; | ||
} | ||
function guildCrestComponentsIndex() { | ||
return { | ||
namespace: "static", | ||
path: `${base}/guild-crest/index` | ||
}; | ||
} | ||
function guildCrestEmblem(emblemId) { | ||
return { | ||
namespace: "static", | ||
path: `${mediaBase}/guild-crest/emblem/${emblemId}` | ||
}; | ||
} | ||
@@ -486,12 +506,12 @@ // src/guild/guild.ts | ||
} | ||
function guildActivity(realmSlug, nameSlug) { | ||
function guildAchievements(realmSlug, nameSlug) { | ||
return { | ||
namespace: "profile", | ||
path: `${basePath3}/${realmSlug}/${nameSlug}/activity` | ||
path: `${basePath3}/${realmSlug}/${nameSlug}/achievements` | ||
}; | ||
} | ||
function guildAchievements(realmSlug, nameSlug) { | ||
function guildActivity(realmSlug, nameSlug) { | ||
return { | ||
namespace: "profile", | ||
path: `${basePath3}/${realmSlug}/${nameSlug}/achievements` | ||
path: `${basePath3}/${realmSlug}/${nameSlug}/activity` | ||
}; | ||
@@ -506,22 +526,2 @@ } | ||
// src/guild-crest/guild-crest.ts | ||
function guildCrestComponentsIndex() { | ||
return { | ||
namespace: "static", | ||
path: `${base}/guild-crest/index` | ||
}; | ||
} | ||
function guildCrestBorder(borderId) { | ||
return { | ||
namespace: "static", | ||
path: `${mediaBase}/guild-crest/border/${borderId}` | ||
}; | ||
} | ||
function guildCrestEmblem(emblemId) { | ||
return { | ||
namespace: "static", | ||
path: `${mediaBase}/guild-crest/emblem/${emblemId}` | ||
}; | ||
} | ||
// src/heirloom/heirloom.ts | ||
@@ -554,8 +554,2 @@ function heirloom(heirloomId) { | ||
} | ||
function itemSubClass(itemClassId, itemSubclassId) { | ||
return { | ||
namespace: "static", | ||
path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}` | ||
}; | ||
} | ||
function itemClassIndex() { | ||
@@ -573,2 +567,13 @@ return { | ||
} | ||
function itemSearch(options) { | ||
return { | ||
namespace: "static", | ||
parameters: { | ||
_page: options._page, | ||
[`name.${options.locale}`]: options.name, | ||
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby | ||
}, | ||
path: `${searchBase}/item` | ||
}; | ||
} | ||
function itemSet(itemSetId) { | ||
@@ -586,11 +591,6 @@ return { | ||
} | ||
function itemSearch(options) { | ||
function itemSubClass(itemClassId, itemSubclassId) { | ||
return { | ||
namespace: "static", | ||
parameters: { | ||
_page: options._page, | ||
[`name.${options.locale}`]: options.name, | ||
orderby: Array.isArray(options.orderby) ? options.orderby.join(",") : options.orderby | ||
}, | ||
path: `${searchBase}/item` | ||
path: `${base}/item-class/${itemClassId}/item-subclass/${itemSubclassId}` | ||
}; | ||
@@ -817,30 +817,30 @@ } | ||
} | ||
function petIndex() { | ||
function petAbility(petAbilityId) { | ||
return { | ||
namespace: "static", | ||
path: `${base}/pet/index` | ||
path: `${base}/pet-ability/${petAbilityId}` | ||
}; | ||
} | ||
function petMedia(petId) { | ||
function petAbilityIndex() { | ||
return { | ||
namespace: "static", | ||
path: `${mediaBase}/pet/${petId}` | ||
path: `${base}/pet-ability/index` | ||
}; | ||
} | ||
function petAbility(petAbilityId) { | ||
function petAbilityMedia(petAbilityId) { | ||
return { | ||
namespace: "static", | ||
path: `${base}/pet-ability/${petAbilityId}` | ||
path: `${mediaBase}/pet-ability/${petAbilityId}` | ||
}; | ||
} | ||
function petAbilityIndex() { | ||
function petIndex() { | ||
return { | ||
namespace: "static", | ||
path: `${base}/pet-ability/index` | ||
path: `${base}/pet/index` | ||
}; | ||
} | ||
function petAbilityMedia(petAbilityId) { | ||
function petMedia(petId) { | ||
return { | ||
namespace: "static", | ||
path: `${mediaBase}/pet-ability/${petAbilityId}` | ||
path: `${mediaBase}/pet/${petId}` | ||
}; | ||
@@ -1020,8 +1020,2 @@ } | ||
} | ||
function questIndex() { | ||
return { | ||
namespace: "static", | ||
path: `${base}/quest/index` | ||
}; | ||
} | ||
function questArea(questAreaId) { | ||
@@ -1051,2 +1045,8 @@ return { | ||
} | ||
function questIndex() { | ||
return { | ||
namespace: "static", | ||
path: `${base}/quest/index` | ||
}; | ||
} | ||
function questType(questTypeId) { | ||
@@ -1053,0 +1053,0 @@ return { |
{ | ||
"name": "@blizzard-api/wow", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"license": "MIT", | ||
@@ -37,6 +37,6 @@ "author": "Putro", | ||
"peerDependencies": { | ||
"@blizzard-api/core": "2.0.0" | ||
"@blizzard-api/core": "2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@blizzard-api/core": "2.0.0" | ||
"@blizzard-api/core": "2.0.1" | ||
}, | ||
@@ -43,0 +43,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
338087