@blizzard-api/wow
Advanced tools
Comparing version 0.0.1 to 0.0.2
import * as _blizzard_api_core from '@blizzard-api/core'; | ||
interface AchievementCategoryResponse { | ||
id: number; | ||
} | ||
declare const wow: { | ||
achievement: { | ||
achievementCategory: (achievementCategoryId?: number | undefined) => _blizzard_api_core.Resource<never>; | ||
achievement: (achievementId?: number | undefined) => _blizzard_api_core.Resource<never>; | ||
media: (achievementId: number) => _blizzard_api_core.Resource<never>; | ||
}; | ||
achievementCategory: (achievementCategoryId: number) => _blizzard_api_core.Resource<AchievementCategoryResponse>; | ||
achievementCategoryIndex: () => _blizzard_api_core.Resource<void>; | ||
achievement: (achievementId: number) => _blizzard_api_core.Resource<void>; | ||
achievementIndex: () => _blizzard_api_core.Resource<void>; | ||
media: (achievementId: number) => _blizzard_api_core.Resource<void>; | ||
}; | ||
export { wow }; |
@@ -1,21 +0,33 @@ | ||
// src/game-data/base.ts | ||
// src/base.ts | ||
var base = "/data/wow"; | ||
var mediaBase = `${base}/media`; | ||
// src/game-data/achievement.ts | ||
// src/achievements/index.ts | ||
var achievementBase = `${base}/achievement`; | ||
var achievementCategoryBase = `${base}/achievement-category`; | ||
var achievement = { | ||
var achievements = { | ||
achievementCategory: (achievementCategoryId) => { | ||
return { | ||
path: achievementCategoryId ? `${achievementCategoryBase}/${achievementCategoryId}` : `${achievementCategoryBase}/index`, | ||
path: `${achievementCategoryBase}/${achievementCategoryId}`, | ||
namespace: "static" | ||
}; | ||
}, | ||
achievementCategoryIndex: () => { | ||
return { | ||
path: `${achievementCategoryBase}/index`, | ||
namespace: "static" | ||
}; | ||
}, | ||
achievement: (achievementId) => { | ||
return { | ||
path: achievementId ? `${achievementBase}/${achievementId}` : `${achievementBase}/index`, | ||
path: `${achievementBase}/${achievementId}`, | ||
namespace: "static" | ||
}; | ||
}, | ||
achievementIndex: () => { | ||
return { | ||
path: `${achievementBase}/index`, | ||
namespace: "static" | ||
}; | ||
}, | ||
media: (achievementId) => { | ||
@@ -26,10 +38,5 @@ return { path: `${mediaBase}/achievement/${achievementId}`, namespace: "static" }; | ||
// src/game-data/index.ts | ||
var gameDataApi = { | ||
achievement | ||
}; | ||
// src/index.ts | ||
var wow = { | ||
...gameDataApi | ||
...achievements | ||
}; | ||
@@ -36,0 +43,0 @@ export { |
{ | ||
"name": "@blizzard-api/wow", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"license": "MIT", | ||
@@ -48,6 +48,6 @@ "author": "Putro", | ||
"peerDependencies": { | ||
"@blizzard-api/core": "0.0.3" | ||
"@blizzard-api/core": "0.0.4" | ||
}, | ||
"devDependencies": { | ||
"@blizzard-api/core": "0.0.3" | ||
"@blizzard-api/core": "0.0.4" | ||
}, | ||
@@ -54,0 +54,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
9870
121