uva-wrapper 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lock +781 -0
- package/dist/account/index.d.ts +8 -0
- package/dist/account/index.js +13 -0
- package/dist/account/v1/getAccount.d.ts +16 -0
- package/dist/account/v1/getAccount.js +18 -0
- package/dist/account/v1/getAccountByPuuid.d.ts +16 -0
- package/dist/account/v1/getAccountByPuuid.js +18 -0
- package/dist/account/v1/index.d.ts +19 -0
- package/dist/account/v1/index.js +43 -0
- package/dist/account/v2/getAccount.d.ts +12 -0
- package/dist/account/v2/getAccount.js +18 -0
- package/dist/account/v2/getAccountByPuuid.d.ts +12 -0
- package/dist/account/v2/getAccountByPuuid.js +18 -0
- package/dist/account/v2/index.d.ts +19 -0
- package/dist/account/v2/index.js +43 -0
- package/dist/constants/api.const.d.ts +1 -0
- package/dist/constants/api.const.js +4 -0
- package/dist/crosshair/index.d.ts +6 -0
- package/dist/crosshair/index.js +11 -0
- package/dist/crosshair/v1/generateCrosshairImage.d.ts +1 -0
- package/dist/crosshair/v1/generateCrosshairImage.js +18 -0
- package/dist/crosshair/v1/index.d.ts +10 -0
- package/dist/crosshair/v1/index.js +29 -0
- package/dist/esports/index.d.ts +6 -0
- package/dist/esports/index.js +11 -0
- package/dist/esports/v1/getEsportsSchedule.d.ts +35 -0
- package/dist/esports/v1/getEsportsSchedule.js +18 -0
- package/dist/esports/v1/index.d.ts +11 -0
- package/dist/esports/v1/index.js +30 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +43 -0
- package/dist/leaderboard/index.d.ts +10 -0
- package/dist/leaderboard/index.js +15 -0
- package/dist/leaderboard/v1/getLeaderboard.d.ts +3 -0
- package/dist/leaderboard/v1/getLeaderboard.js +18 -0
- package/dist/leaderboard/v1/index.d.ts +13 -0
- package/dist/leaderboard/v1/index.js +32 -0
- package/dist/leaderboard/v2/getLeaderboard.d.ts +24 -0
- package/dist/leaderboard/v2/getLeaderboard.js +18 -0
- package/dist/leaderboard/v2/index.d.ts +14 -0
- package/dist/leaderboard/v2/index.js +33 -0
- package/dist/leaderboard/v3/getLeaderboard.d.ts +34 -0
- package/dist/leaderboard/v3/getLeaderboard.js +18 -0
- package/dist/leaderboard/v3/index.d.ts +23 -0
- package/dist/leaderboard/v3/index.js +35 -0
- package/dist/lib/request-handler.d.ts +4 -0
- package/dist/lib/request-handler.js +24 -0
- package/dist/match-details/index.d.ts +8 -0
- package/dist/match-details/index.js +13 -0
- package/dist/match-details/v2/getMatchDetails.d.ts +483 -0
- package/dist/match-details/v2/getMatchDetails.js +18 -0
- package/dist/match-details/v2/index.d.ts +10 -0
- package/dist/match-details/v2/index.js +29 -0
- package/dist/match-details/v4/getMatchDetails.d.ts +280 -0
- package/dist/match-details/v4/getMatchDetails.js +18 -0
- package/dist/match-details/v4/index.d.ts +11 -0
- package/dist/match-details/v4/index.js +30 -0
- package/dist/matches/index.d.ts +8 -0
- package/dist/matches/index.js +13 -0
- package/dist/matches/v3/getMatchesByName.d.ts +482 -0
- package/dist/matches/v3/getMatchesByName.js +22 -0
- package/dist/matches/v3/getMatchesByPuuid.d.ts +482 -0
- package/dist/matches/v3/getMatchesByPuuid.js +22 -0
- package/dist/matches/v3/index.d.ts +25 -0
- package/dist/matches/v3/index.js +49 -0
- package/dist/matches/v4/getMatchesByName.d.ts +280 -0
- package/dist/matches/v4/getMatchesByName.js +23 -0
- package/dist/matches/v4/getMatchesByPuuid.d.ts +280 -0
- package/dist/matches/v4/getMatchesByPuuid.js +23 -0
- package/dist/matches/v4/index.d.ts +29 -0
- package/dist/matches/v4/index.js +53 -0
- package/dist/misc/index.d.ts +6 -0
- package/dist/misc/index.js +11 -0
- package/dist/misc/v1/getContent.d.ts +124 -0
- package/dist/misc/v1/getContent.js +18 -0
- package/dist/misc/v1/getGameVersion.d.ts +10 -0
- package/dist/misc/v1/getGameVersion.js +18 -0
- package/dist/misc/v1/getQueueStatus.d.ts +48 -0
- package/dist/misc/v1/getQueueStatus.js +18 -0
- package/dist/misc/v1/getRawRiotAPIData.d.ts +1 -0
- package/dist/misc/v1/getRawRiotAPIData.js +21 -0
- package/dist/misc/v1/getStatus.d.ts +53 -0
- package/dist/misc/v1/getStatus.js +18 -0
- package/dist/misc/v1/getWebsiteContent.d.ts +11 -0
- package/dist/misc/v1/getWebsiteContent.js +18 -0
- package/dist/misc/v1/getWebsiteEntryById.d.ts +11 -0
- package/dist/misc/v1/getWebsiteEntryById.js +18 -0
- package/dist/misc/v1/index.d.ts +52 -0
- package/dist/misc/v1/index.js +101 -0
- package/dist/mmr/index.d.ts +10 -0
- package/dist/mmr/index.js +15 -0
- package/dist/mmr/v1/getMMRByName.d.ts +17 -0
- package/dist/mmr/v1/getMMRByName.js +18 -0
- package/dist/mmr/v1/getMMRByPuuid.d.ts +17 -0
- package/dist/mmr/v1/getMMRByPuuid.js +18 -0
- package/dist/mmr/v1/index.d.ts +19 -0
- package/dist/mmr/v1/index.js +43 -0
- package/dist/mmr/v2/getMMRByName.d.ts +28 -0
- package/dist/mmr/v2/getMMRByName.js +18 -0
- package/dist/mmr/v2/getMMRByPuuid.d.ts +28 -0
- package/dist/mmr/v2/getMMRByPuuid.js +18 -0
- package/dist/mmr/v2/index.d.ts +19 -0
- package/dist/mmr/v2/index.js +43 -0
- package/dist/mmr/v3/getMMRByName.d.ts +63 -0
- package/dist/mmr/v3/getMMRByName.js +18 -0
- package/dist/mmr/v3/getMMRByPuuid.d.ts +63 -0
- package/dist/mmr/v3/getMMRByPuuid.js +18 -0
- package/dist/mmr/v3/index.d.ts +21 -0
- package/dist/mmr/v3/index.js +45 -0
- package/dist/mmr-history/index.d.ts +8 -0
- package/dist/mmr-history/index.js +13 -0
- package/dist/mmr-history/v1/getMMRHistoryByName.d.ts +26 -0
- package/dist/mmr-history/v1/getMMRHistoryByName.js +18 -0
- package/dist/mmr-history/v1/getMMRHistoryByPuuid.d.ts +26 -0
- package/dist/mmr-history/v1/getMMRHistoryByPuuid.js +18 -0
- package/dist/mmr-history/v1/index.d.ts +25 -0
- package/dist/mmr-history/v1/index.js +43 -0
- package/dist/mmr-history/v2/getMMRHistoryByName.d.ts +29 -0
- package/dist/mmr-history/v2/getMMRHistoryByName.js +18 -0
- package/dist/mmr-history/v2/getMMRHistoryByPuuid.d.ts +29 -0
- package/dist/mmr-history/v2/getMMRHistoryByPuuid.js +18 -0
- package/dist/mmr-history/v2/index.d.ts +21 -0
- package/dist/mmr-history/v2/index.js +45 -0
- package/dist/premier/index.d.ts +6 -0
- package/dist/premier/index.js +11 -0
- package/dist/premier/v1/getPremierTeamById.d.ts +33 -0
- package/dist/premier/v1/getPremierTeamById.js +18 -0
- package/dist/premier/v1/getPremierTeamByName.d.ts +33 -0
- package/dist/premier/v1/getPremierTeamByName.js +18 -0
- package/dist/premier/v1/index.d.ts +30 -0
- package/dist/premier/v1/index.js +59 -0
- package/dist/premier/v1/searchPremierTeams.d.ts +23 -0
- package/dist/premier/v1/searchPremierTeams.js +18 -0
- package/dist/premier-history/index.d.ts +6 -0
- package/dist/premier-history/index.js +11 -0
- package/dist/premier-history/v1/getPremierTeamHistoryById.d.ts +17 -0
- package/dist/premier-history/v1/getPremierTeamHistoryById.js +18 -0
- package/dist/premier-history/v1/getPremierTeamHistoryByName.d.ts +17 -0
- package/dist/premier-history/v1/getPremierTeamHistoryByName.js +18 -0
- package/dist/premier-history/v1/index.d.ts +19 -0
- package/dist/premier-history/v1/index.js +43 -0
- package/dist/premier-leaderboard/index.d.ts +6 -0
- package/dist/premier-leaderboard/index.js +11 -0
- package/dist/premier-leaderboard/v1/getPremierLeaderboard.d.ts +23 -0
- package/dist/premier-leaderboard/v1/getPremierLeaderboard.js +18 -0
- package/dist/premier-leaderboard/v1/index.d.ts +13 -0
- package/dist/premier-leaderboard/v1/index.js +32 -0
- package/dist/premium/index.d.ts +6 -0
- package/dist/premium/index.js +11 -0
- package/dist/premium/v1/addPremiumWebhookUser.d.ts +19 -0
- package/dist/premium/v1/addPremiumWebhookUser.js +21 -0
- package/dist/premium/v1/deletePremiumWebhookUser.d.ts +4 -0
- package/dist/premium/v1/deletePremiumWebhookUser.js +18 -0
- package/dist/premium/v1/getPremiumWebhookSettings.d.ts +1 -0
- package/dist/premium/v1/getPremiumWebhookSettings.js +18 -0
- package/dist/premium/v1/index.d.ts +34 -0
- package/dist/premium/v1/index.js +66 -0
- package/dist/premium/v1/updatePremiumWebhookUser.d.ts +1 -0
- package/dist/premium/v1/updatePremiumWebhookUser.js +18 -0
- package/dist/store/getFeaturedStoreItems.d.ts +53 -0
- package/dist/store/getFeaturedStoreItems.js +18 -0
- package/dist/store/getStoreOffers.d.ts +30 -0
- package/dist/store/getStoreOffers.js +18 -0
- package/dist/store/index.d.ts +16 -0
- package/dist/store/index.js +40 -0
- package/dist/stored-matches/index.d.ts +6 -0
- package/dist/stored-matches/index.js +11 -0
- package/dist/stored-matches/v1/getStoredMatchesByName.d.ts +56 -0
- package/dist/stored-matches/v1/getStoredMatchesByName.js +18 -0
- package/dist/stored-matches/v1/getStoredMatchesByPuuid.d.ts +56 -0
- package/dist/stored-matches/v1/getStoredMatchesByPuuid.js +18 -0
- package/dist/stored-matches/v1/index.d.ts +41 -0
- package/dist/stored-matches/v1/index.js +49 -0
- package/dist/stored-mmr-history/index.d.ts +8 -0
- package/dist/stored-mmr-history/index.js +13 -0
- package/dist/stored-mmr-history/v1/getStoredMMRHistoryByName.d.ts +28 -0
- package/dist/stored-mmr-history/v1/getStoredMMRHistoryByName.js +18 -0
- package/dist/stored-mmr-history/v1/getStoredMMRHistoryByPuuid.d.ts +28 -0
- package/dist/stored-mmr-history/v1/getStoredMMRHistoryByPuuid.js +18 -0
- package/dist/stored-mmr-history/v1/index.d.ts +37 -0
- package/dist/stored-mmr-history/v1/index.js +45 -0
- package/dist/stored-mmr-history/v2/getStoredMMRHistoryByName.d.ts +30 -0
- package/dist/stored-mmr-history/v2/getStoredMMRHistoryByName.js +18 -0
- package/dist/stored-mmr-history/v2/getStoredMMRHistoryByPuuid.d.ts +30 -0
- package/dist/stored-mmr-history/v2/getStoredMMRHistoryByPuuid.js +18 -0
- package/dist/stored-mmr-history/v2/index.d.ts +39 -0
- package/dist/stored-mmr-history/v2/index.js +47 -0
- package/dist/types/response.type.d.ts +15 -0
- package/dist/types/response.type.js +2 -0
- package/dist/vlr/index.d.ts +6 -0
- package/dist/vlr/index.js +11 -0
- package/dist/vlr/v2/getVlrEsportsEvents.d.ts +14 -0
- package/dist/vlr/v2/getVlrEsportsEvents.js +18 -0
- package/dist/vlr/v2/getVlrEventMatches.d.ts +14 -0
- package/dist/vlr/v2/getVlrEventMatches.js +18 -0
- package/dist/vlr/v2/getVlrMatchDetails.d.ts +157 -0
- package/dist/vlr/v2/getVlrMatchDetails.js +18 -0
- package/dist/vlr/v2/getVlrPlayer.d.ts +64 -0
- package/dist/vlr/v2/getVlrPlayer.js +18 -0
- package/dist/vlr/v2/getVlrPlayerMatches.d.ts +22 -0
- package/dist/vlr/v2/getVlrPlayerMatches.js +20 -0
- package/dist/vlr/v2/getVlrTeam.d.ts +39 -0
- package/dist/vlr/v2/getVlrTeam.js +18 -0
- package/dist/vlr/v2/getVlrTeamMatches.d.ts +20 -0
- package/dist/vlr/v2/getVlrTeamMatches.js +20 -0
- package/dist/vlr/v2/getVlrTeamTransactions.d.ts +14 -0
- package/dist/vlr/v2/getVlrTeamTransactions.js +18 -0
- package/dist/vlr/v2/index.d.ts +57 -0
- package/dist/vlr/v2/index.js +111 -0
- package/package.json +36 -0
- package/src/account/index.ts +12 -0
- package/src/account/v1/getAccount.ts +31 -0
- package/src/account/v1/getAccountByPuuid.ts +30 -0
- package/src/account/v1/index.ts +27 -0
- package/src/account/v2/getAccount.ts +27 -0
- package/src/account/v2/getAccountByPuuid.ts +26 -0
- package/src/account/v2/index.ts +27 -0
- package/src/constants/api.const.ts +1 -0
- package/src/crosshair/index.ts +9 -0
- package/src/crosshair/v1/generateCrosshairImage.ts +10 -0
- package/src/crosshair/v1/index.ts +14 -0
- package/src/esports/index.ts +9 -0
- package/src/esports/v1/getEsportsSchedule.ts +49 -0
- package/src/esports/v1/index.ts +15 -0
- package/src/index.ts +57 -0
- package/src/leaderboard/index.ts +15 -0
- package/src/leaderboard/v1/getLeaderboard.ts +17 -0
- package/src/leaderboard/v1/index.ts +17 -0
- package/src/leaderboard/v2/getLeaderboard.ts +40 -0
- package/src/leaderboard/v2/index.ts +31 -0
- package/src/leaderboard/v3/getLeaderboard.ts +57 -0
- package/src/leaderboard/v3/index.ts +37 -0
- package/src/lib/request-handler.ts +29 -0
- package/src/match-details/index.ts +12 -0
- package/src/match-details/v2/getMatchDetails.ts +495 -0
- package/src/match-details/v2/index.ts +14 -0
- package/src/match-details/v4/getMatchDetails.ts +294 -0
- package/src/match-details/v4/index.ts +15 -0
- package/src/matches/index.ts +12 -0
- package/src/matches/v3/getMatchesByName.ts +508 -0
- package/src/matches/v3/getMatchesByPuuid.ts +507 -0
- package/src/matches/v3/index.ts +61 -0
- package/src/matches/v4/getMatchesByName.ts +305 -0
- package/src/matches/v4/getMatchesByPuuid.ts +304 -0
- package/src/matches/v4/index.ts +73 -0
- package/src/misc/index.ts +9 -0
- package/src/misc/v1/getContent.ts +133 -0
- package/src/misc/v1/getGameVersion.ts +19 -0
- package/src/misc/v1/getQueueStatus.ts +57 -0
- package/src/misc/v1/getRawRiotAPIData.ts +20 -0
- package/src/misc/v1/getStatus.ts +62 -0
- package/src/misc/v1/getWebsiteContent.ts +24 -0
- package/src/misc/v1/getWebsiteEntryById.ts +24 -0
- package/src/misc/v1/index.ts +93 -0
- package/src/mmr/index.ts +15 -0
- package/src/mmr/v1/getMMRByName.ts +31 -0
- package/src/mmr/v1/getMMRByPuuid.ts +30 -0
- package/src/mmr/v1/index.ts +27 -0
- package/src/mmr/v2/getMMRByName.ts +42 -0
- package/src/mmr/v2/getMMRByPuuid.ts +41 -0
- package/src/mmr/v2/index.ts +27 -0
- package/src/mmr/v3/getMMRByName.ts +72 -0
- package/src/mmr/v3/getMMRByPuuid.ts +71 -0
- package/src/mmr/v3/index.ts +34 -0
- package/src/mmr-history/index.ts +12 -0
- package/src/mmr-history/v1/getMMRHistoryByName.ts +42 -0
- package/src/mmr-history/v1/getMMRHistoryByPuuid.ts +41 -0
- package/src/mmr-history/v1/index.ts +27 -0
- package/src/mmr-history/v2/getMMRHistoryByName.ts +44 -0
- package/src/mmr-history/v2/getMMRHistoryByPuuid.ts +43 -0
- package/src/mmr-history/v2/index.ts +45 -0
- package/src/premier/index.ts +9 -0
- package/src/premier/v1/getPremierTeamById.ts +47 -0
- package/src/premier/v1/getPremierTeamByName.ts +48 -0
- package/src/premier/v1/index.ts +53 -0
- package/src/premier/v1/searchPremierTeams.ts +39 -0
- package/src/premier-history/index.ts +9 -0
- package/src/premier-history/v1/getPremierTeamHistoryById.ts +31 -0
- package/src/premier-history/v1/getPremierTeamHistoryByName.ts +32 -0
- package/src/premier-history/v1/index.ts +27 -0
- package/src/premier-leaderboard/index.ts +9 -0
- package/src/premier-leaderboard/v1/getPremierLeaderboard.ts +38 -0
- package/src/premier-leaderboard/v1/index.ts +28 -0
- package/src/premium/index.ts +9 -0
- package/src/premium/v1/addPremiumWebhookUser.ts +37 -0
- package/src/premium/v1/deletePremiumWebhookUser.ts +14 -0
- package/src/premium/v1/getPremiumWebhookSettings.ts +10 -0
- package/src/premium/v1/index.ts +61 -0
- package/src/premium/v1/updatePremiumWebhookUser.ts +14 -0
- package/src/store/getFeaturedStoreItems.ts +65 -0
- package/src/store/getStoreOffers.ts +39 -0
- package/src/store/index.ts +24 -0
- package/src/stored-matches/index.ts +9 -0
- package/src/stored-matches/v1/getStoredMatchesByName.ts +79 -0
- package/src/stored-matches/v1/getStoredMatchesByPuuid.ts +78 -0
- package/src/stored-matches/v1/index.ts +61 -0
- package/src/stored-mmr-history/index.ts +12 -0
- package/src/stored-mmr-history/v1/getStoredMMRHistoryByName.ts +48 -0
- package/src/stored-mmr-history/v1/getStoredMMRHistoryByPuuid.ts +47 -0
- package/src/stored-mmr-history/v1/index.ts +40 -0
- package/src/stored-mmr-history/v2/getStoredMMRHistoryByName.ts +51 -0
- package/src/stored-mmr-history/v2/getStoredMMRHistoryByPuuid.ts +50 -0
- package/src/stored-mmr-history/v2/index.ts +55 -0
- package/src/types/response.type.ts +10 -0
- package/src/vlr/index.ts +9 -0
- package/src/vlr/v2/getVlrEsportsEvents.ts +40 -0
- package/src/vlr/v2/getVlrEventMatches.ts +23 -0
- package/src/vlr/v2/getVlrMatchDetails.ts +167 -0
- package/src/vlr/v2/getVlrPlayer.ts +78 -0
- package/src/vlr/v2/getVlrPlayerMatches.ts +36 -0
- package/src/vlr/v2/getVlrTeam.ts +49 -0
- package/src/vlr/v2/getVlrTeamMatches.ts +34 -0
- package/src/vlr/v2/getVlrTeamTransactions.ts +24 -0
- package/src/vlr/v2/index.ts +104 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MiscCategory = void 0;
|
|
4
|
+
const v1_1 = require("./v1");
|
|
5
|
+
class MiscCategory {
|
|
6
|
+
constructor(apiKey) {
|
|
7
|
+
this.apiKey = apiKey;
|
|
8
|
+
this.v1 = new v1_1.v1_MiscCategory(this.apiKey);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MiscCategory = MiscCategory;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
export declare function v1_getContent(apiKey: string, locale?: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getContent_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getContent_ResponseData {
|
|
3
|
+
acts: [
|
|
4
|
+
{
|
|
5
|
+
assetName: string;
|
|
6
|
+
name: string;
|
|
7
|
+
id: string | null;
|
|
8
|
+
localizedNames: Record<string, string> | null;
|
|
9
|
+
}
|
|
10
|
+
];
|
|
11
|
+
ceremonies: [
|
|
12
|
+
{
|
|
13
|
+
assetName: string;
|
|
14
|
+
name: string;
|
|
15
|
+
id: string | null;
|
|
16
|
+
localizedNames: Record<string, string> | null;
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
characters: [
|
|
20
|
+
{
|
|
21
|
+
assetName: string;
|
|
22
|
+
name: string;
|
|
23
|
+
id: string | null;
|
|
24
|
+
localizedNames: Record<string, string> | null;
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
charmLevels: [
|
|
28
|
+
{
|
|
29
|
+
assetName: string;
|
|
30
|
+
name: string;
|
|
31
|
+
id: string | null;
|
|
32
|
+
localizedNames: Record<string, string> | null;
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
charms: [
|
|
36
|
+
{
|
|
37
|
+
assetName: string;
|
|
38
|
+
name: string;
|
|
39
|
+
id: string | null;
|
|
40
|
+
localizedNames: Record<string, string> | null;
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
chromas: [
|
|
44
|
+
{
|
|
45
|
+
assetName: string;
|
|
46
|
+
name: string;
|
|
47
|
+
id: string | null;
|
|
48
|
+
localizedNames: Record<string, string> | null;
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
equips: [
|
|
52
|
+
{
|
|
53
|
+
assetName: string;
|
|
54
|
+
name: string;
|
|
55
|
+
id: string | null;
|
|
56
|
+
localizedNames: Record<string, string> | null;
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
gameModes: [
|
|
60
|
+
{
|
|
61
|
+
assetName: string;
|
|
62
|
+
name: string;
|
|
63
|
+
id: string | null;
|
|
64
|
+
localizedNames: Record<string, string> | null;
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
maps: [
|
|
68
|
+
{
|
|
69
|
+
assetName: string;
|
|
70
|
+
name: string;
|
|
71
|
+
id: string | null;
|
|
72
|
+
localizedNames: Record<string, string> | null;
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
playerCards: [
|
|
76
|
+
{
|
|
77
|
+
assetName: string;
|
|
78
|
+
name: string;
|
|
79
|
+
id: string | null;
|
|
80
|
+
localizedNames: Record<string, string> | null;
|
|
81
|
+
}
|
|
82
|
+
];
|
|
83
|
+
playerTitles: [
|
|
84
|
+
{
|
|
85
|
+
assetName: string;
|
|
86
|
+
name: string;
|
|
87
|
+
id: string | null;
|
|
88
|
+
localizedNames: Record<string, string> | null;
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
skinLevels: [
|
|
92
|
+
{
|
|
93
|
+
assetName: string;
|
|
94
|
+
name: string;
|
|
95
|
+
id: string | null;
|
|
96
|
+
localizedNames: Record<string, string> | null;
|
|
97
|
+
}
|
|
98
|
+
];
|
|
99
|
+
skins: [
|
|
100
|
+
{
|
|
101
|
+
assetName: string;
|
|
102
|
+
name: string;
|
|
103
|
+
id: string | null;
|
|
104
|
+
localizedNames: Record<string, string> | null;
|
|
105
|
+
}
|
|
106
|
+
];
|
|
107
|
+
sprayLevels: [
|
|
108
|
+
{
|
|
109
|
+
assetName: string;
|
|
110
|
+
name: string;
|
|
111
|
+
id: string | null;
|
|
112
|
+
localizedNames: Record<string, string> | null;
|
|
113
|
+
}
|
|
114
|
+
];
|
|
115
|
+
sprays: [
|
|
116
|
+
{
|
|
117
|
+
assetName: string;
|
|
118
|
+
name: string;
|
|
119
|
+
id: string | null;
|
|
120
|
+
localizedNames: Record<string, string> | null;
|
|
121
|
+
}
|
|
122
|
+
];
|
|
123
|
+
version: string;
|
|
124
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_getContent = v1_getContent;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getContent(apiKey, locale) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, "/valorant/v1/content", { locale }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function v1_getGameVersion(apiKey: string, affinity: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getGameVersion_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getGameVersion_ResponseData {
|
|
3
|
+
branch: string;
|
|
4
|
+
build_date: string;
|
|
5
|
+
build_ver: string;
|
|
6
|
+
last_checked: string;
|
|
7
|
+
region: string;
|
|
8
|
+
version: number;
|
|
9
|
+
version_for_api: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_getGameVersion = v1_getGameVersion;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getGameVersion(apiKey, affinity) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/version/${affinity}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare function v1_getQueueStatus(apiKey: string, affinity: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getQueueStatus_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getQueueStatus_ResponseData {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
game_rules: {
|
|
5
|
+
allow_drop_out: boolean;
|
|
6
|
+
allow_lenient_surrender: boolean;
|
|
7
|
+
allow_overtime_draw_vote: boolean;
|
|
8
|
+
assign_random_agents: boolean;
|
|
9
|
+
overtime_win_by_two: boolean;
|
|
10
|
+
overtime_win_by_two_capped: boolean;
|
|
11
|
+
premier_mode: boolean;
|
|
12
|
+
skip_pregame: boolean;
|
|
13
|
+
};
|
|
14
|
+
high_skill: {
|
|
15
|
+
max_party_size: number;
|
|
16
|
+
max_tier: number;
|
|
17
|
+
min_tier: number;
|
|
18
|
+
};
|
|
19
|
+
maps: {
|
|
20
|
+
enabled: boolean;
|
|
21
|
+
map: {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
}[];
|
|
26
|
+
mode: string;
|
|
27
|
+
mode_id: string;
|
|
28
|
+
number_of_teams: number;
|
|
29
|
+
party_size: {
|
|
30
|
+
full_party_bypass: boolean;
|
|
31
|
+
invalid: number[];
|
|
32
|
+
max: number;
|
|
33
|
+
min: number;
|
|
34
|
+
};
|
|
35
|
+
platforms: string[];
|
|
36
|
+
ranked: boolean;
|
|
37
|
+
required_account_level: number;
|
|
38
|
+
skill_disparity: {
|
|
39
|
+
max_tier: {
|
|
40
|
+
id: 1;
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
name: string;
|
|
44
|
+
tier: number;
|
|
45
|
+
}[];
|
|
46
|
+
team_size: number;
|
|
47
|
+
tournament: boolean;
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_getQueueStatus = v1_getQueueStatus;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getQueueStatus(apiKey, affinity) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/queue-status/${affinity}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function v1_getRawRiotAPIData(apiKey: string, region: string, type: string, value: string | string[], platform: string | null, queries: string | null): Promise<import("../../types/response.type").DefaultApiResponse<unknown[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_getRawRiotAPIData = v1_getRawRiotAPIData;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getRawRiotAPIData(apiKey, region, type, value, platform, queries) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, "/valorant/v1/raw", {}, {
|
|
17
|
+
method: "POST",
|
|
18
|
+
body: JSON.stringify({ region, type, value, platform, queries }),
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare function v1_getStatus(apiKey: string, affinity: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getStatus_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getStatus_ResponseData {
|
|
3
|
+
incidents: {
|
|
4
|
+
created_at: string;
|
|
5
|
+
id: number;
|
|
6
|
+
incident_severity: string;
|
|
7
|
+
platforms: string[];
|
|
8
|
+
titles: {
|
|
9
|
+
content: string;
|
|
10
|
+
locale: string;
|
|
11
|
+
}[];
|
|
12
|
+
updates: {
|
|
13
|
+
author: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
id: number;
|
|
16
|
+
publish: boolean;
|
|
17
|
+
publish_locations: string[];
|
|
18
|
+
translations: {
|
|
19
|
+
content: string;
|
|
20
|
+
locale: string;
|
|
21
|
+
}[];
|
|
22
|
+
updated_at: string;
|
|
23
|
+
}[];
|
|
24
|
+
archive_at: string | null;
|
|
25
|
+
maintenance_status: string | null;
|
|
26
|
+
updated_at: string | null;
|
|
27
|
+
}[];
|
|
28
|
+
maintenances: {
|
|
29
|
+
created_at: string;
|
|
30
|
+
id: number;
|
|
31
|
+
incident_severity: string;
|
|
32
|
+
platforms: string[];
|
|
33
|
+
titles: {
|
|
34
|
+
content: string;
|
|
35
|
+
locale: string;
|
|
36
|
+
}[];
|
|
37
|
+
updates: {
|
|
38
|
+
author: string;
|
|
39
|
+
created_at: string;
|
|
40
|
+
id: number;
|
|
41
|
+
publish: boolean;
|
|
42
|
+
publish_locations: string[];
|
|
43
|
+
translations: {
|
|
44
|
+
content: string;
|
|
45
|
+
locale: string;
|
|
46
|
+
}[];
|
|
47
|
+
updated_at: string;
|
|
48
|
+
}[];
|
|
49
|
+
archive_at: string | null;
|
|
50
|
+
maintenance_status: string | null;
|
|
51
|
+
updated_at: string | null;
|
|
52
|
+
}[];
|
|
53
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_getStatus = v1_getStatus;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getStatus(apiKey, affinity) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/status/${affinity}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function v1_getWebsiteContent(apiKey: string, countryCode: string, category?: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getWebsiteContent_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getWebsiteContent_ResponseData {
|
|
3
|
+
category: string;
|
|
4
|
+
date: string;
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
url: string;
|
|
8
|
+
banner_url: string | null;
|
|
9
|
+
description: string | null;
|
|
10
|
+
external_link: string | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_getWebsiteContent = v1_getWebsiteContent;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getWebsiteContent(apiKey, countryCode, category) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/website/${countryCode}`, { category }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function v1_getWebsiteEntryById(apiKey: string, dbId: string, countryCode: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getWebsiteEntryById_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getWebsiteEntryById_ResponseData {
|
|
3
|
+
category: string;
|
|
4
|
+
date: string;
|
|
5
|
+
title: string;
|
|
6
|
+
url: string;
|
|
7
|
+
banner_url: string | null;
|
|
8
|
+
content: string | null;
|
|
9
|
+
description: string | null;
|
|
10
|
+
external_link: string | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_getWebsiteEntryById = v1_getWebsiteEntryById;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getWebsiteEntryById(apiKey, dbId, countryCode) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/website/${countryCode}/${dbId}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare class v1_MiscCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-content-v1
|
|
6
|
+
* @param locale Locale code (e.g., en-US, de-DE) - optional
|
|
7
|
+
* @returns Content retrieved successfully
|
|
8
|
+
*/
|
|
9
|
+
getContent(locale?: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getContent").v1_getContent_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-status-v1
|
|
12
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
13
|
+
* @returns Status retrieved successfully
|
|
14
|
+
*/
|
|
15
|
+
getStatus(affinity: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getStatus").v1_getStatus_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-queue-status-v1
|
|
18
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
19
|
+
* @returns Queue status retrieved successfully
|
|
20
|
+
*/
|
|
21
|
+
getQueueStatus(affinity: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getQueueStatus").v1_getQueueStatus_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-game-version-v1
|
|
24
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
25
|
+
* @returns Version data retrieved successfully
|
|
26
|
+
*/
|
|
27
|
+
getGameVersion(affinity: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getGameVersion").v1_getGameVersion_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-website-content-v1
|
|
30
|
+
* @param countryCode Country code (e.g., en-us, de-de)
|
|
31
|
+
* @param category Category filter (optional)
|
|
32
|
+
* @returns Website content retrieved successfully
|
|
33
|
+
*/
|
|
34
|
+
getWebsiteContent(countryCode: string, category?: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getWebsiteContent").v1_getWebsiteContent_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-website-entry-by-id-v1
|
|
37
|
+
* @param dbId Database ID of the website entry
|
|
38
|
+
* @param countryCode Country code (e.g., en-us, de-de)
|
|
39
|
+
* @returns Website entry retrieved successfully
|
|
40
|
+
*/
|
|
41
|
+
getWebsiteEntryById(dbId: string, countryCode: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getWebsiteEntryById").v1_getWebsiteEntryById_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-raw-riot-api-data-v1
|
|
44
|
+
* @param region
|
|
45
|
+
* @param type
|
|
46
|
+
* @param value
|
|
47
|
+
* @param platform
|
|
48
|
+
* @param queries
|
|
49
|
+
* @returns Raw Riot API data retrieved successfully
|
|
50
|
+
*/
|
|
51
|
+
getRawRiotAPIData(region: string, type: string, value: string | string[], platform: string | null, queries: string | null): Promise<import("../../types/response.type").DefaultApiResponse<unknown[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_MiscCategory = void 0;
|
|
13
|
+
const getContent_1 = require("./getContent");
|
|
14
|
+
const getGameVersion_1 = require("./getGameVersion");
|
|
15
|
+
const getQueueStatus_1 = require("./getQueueStatus");
|
|
16
|
+
const getRawRiotAPIData_1 = require("./getRawRiotAPIData");
|
|
17
|
+
const getStatus_1 = require("./getStatus");
|
|
18
|
+
const getWebsiteContent_1 = require("./getWebsiteContent");
|
|
19
|
+
const getWebsiteEntryById_1 = require("./getWebsiteEntryById");
|
|
20
|
+
class v1_MiscCategory {
|
|
21
|
+
constructor(apiKey) {
|
|
22
|
+
this.apiKey = apiKey;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-content-v1
|
|
26
|
+
* @param locale Locale code (e.g., en-US, de-DE) - optional
|
|
27
|
+
* @returns Content retrieved successfully
|
|
28
|
+
*/
|
|
29
|
+
getContent(locale) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
return yield (0, getContent_1.v1_getContent)(this.apiKey, locale);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-status-v1
|
|
36
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
37
|
+
* @returns Status retrieved successfully
|
|
38
|
+
*/
|
|
39
|
+
getStatus(affinity) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return yield (0, getStatus_1.v1_getStatus)(this.apiKey, affinity);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-queue-status-v1
|
|
46
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
47
|
+
* @returns Queue status retrieved successfully
|
|
48
|
+
*/
|
|
49
|
+
getQueueStatus(affinity) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
return yield (0, getQueueStatus_1.v1_getQueueStatus)(this.apiKey, affinity);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-game-version-v1
|
|
56
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
57
|
+
* @returns Version data retrieved successfully
|
|
58
|
+
*/
|
|
59
|
+
getGameVersion(affinity) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
return yield (0, getGameVersion_1.v1_getGameVersion)(this.apiKey, affinity);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-website-content-v1
|
|
66
|
+
* @param countryCode Country code (e.g., en-us, de-de)
|
|
67
|
+
* @param category Category filter (optional)
|
|
68
|
+
* @returns Website content retrieved successfully
|
|
69
|
+
*/
|
|
70
|
+
getWebsiteContent(countryCode, category) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
return yield (0, getWebsiteContent_1.v1_getWebsiteContent)(this.apiKey, countryCode, category);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-website-entry-by-id-v1
|
|
77
|
+
* @param dbId Database ID of the website entry
|
|
78
|
+
* @param countryCode Country code (e.g., en-us, de-de)
|
|
79
|
+
* @returns Website entry retrieved successfully
|
|
80
|
+
*/
|
|
81
|
+
getWebsiteEntryById(dbId, countryCode) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
return yield (0, getWebsiteEntryById_1.v1_getWebsiteEntryById)(this.apiKey, dbId, countryCode);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-raw-riot-api-data-v1
|
|
88
|
+
* @param region
|
|
89
|
+
* @param type
|
|
90
|
+
* @param value
|
|
91
|
+
* @param platform
|
|
92
|
+
* @param queries
|
|
93
|
+
* @returns Raw Riot API data retrieved successfully
|
|
94
|
+
*/
|
|
95
|
+
getRawRiotAPIData(region, type, value, platform, queries) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
return yield (0, getRawRiotAPIData_1.v1_getRawRiotAPIData)(this.apiKey, region, type, value, platform, queries);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.v1_MiscCategory = v1_MiscCategory;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { v1_MMRCategory } from "./v1";
|
|
2
|
+
import { v2_MMRCategory } from "./v2";
|
|
3
|
+
import { v3_MMRCategory } from "./v3";
|
|
4
|
+
export declare class MMRCategory {
|
|
5
|
+
private readonly apiKey;
|
|
6
|
+
constructor(apiKey: string);
|
|
7
|
+
v1: v1_MMRCategory;
|
|
8
|
+
v2: v2_MMRCategory;
|
|
9
|
+
v3: v3_MMRCategory;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MMRCategory = void 0;
|
|
4
|
+
const v1_1 = require("./v1");
|
|
5
|
+
const v2_1 = require("./v2");
|
|
6
|
+
const v3_1 = require("./v3");
|
|
7
|
+
class MMRCategory {
|
|
8
|
+
constructor(apiKey) {
|
|
9
|
+
this.apiKey = apiKey;
|
|
10
|
+
this.v1 = new v1_1.v1_MMRCategory(this.apiKey);
|
|
11
|
+
this.v2 = new v2_1.v2_MMRCategory(this.apiKey);
|
|
12
|
+
this.v3 = new v3_1.v3_MMRCategory(this.apiKey);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.MMRCategory = MMRCategory;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function v1_getMMRByName(apiKey: string, affinity: string, name: string, tag: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getMMRByName_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getMMRByName_ResponseData {
|
|
3
|
+
currenttier: number;
|
|
4
|
+
currenttierpatched: string;
|
|
5
|
+
elo: number;
|
|
6
|
+
images: {
|
|
7
|
+
large: string;
|
|
8
|
+
small: string;
|
|
9
|
+
triangle_down: string;
|
|
10
|
+
triangle_up: string;
|
|
11
|
+
};
|
|
12
|
+
mmr_change_to_last_game: number;
|
|
13
|
+
name: string;
|
|
14
|
+
old: boolean;
|
|
15
|
+
ranking_in_tier: number;
|
|
16
|
+
tag: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.v1_getMMRByName = v1_getMMRByName;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getMMRByName(apiKey, affinity, name, tag) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/mmr/${affinity}/${name}/${tag}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function v1_getMMRByPuuid(apiKey: string, affinity: string, puuid: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getMMRByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getMMRByPuuid_ResponseData {
|
|
3
|
+
currenttier: number;
|
|
4
|
+
currenttierpatched: string;
|
|
5
|
+
elo: number;
|
|
6
|
+
images: {
|
|
7
|
+
large: string;
|
|
8
|
+
small: string;
|
|
9
|
+
triangle_down: string;
|
|
10
|
+
triangle_up: string;
|
|
11
|
+
};
|
|
12
|
+
mmr_change_to_last_game: number;
|
|
13
|
+
name: string;
|
|
14
|
+
old: boolean;
|
|
15
|
+
ranking_in_tier: number;
|
|
16
|
+
tag: string;
|
|
17
|
+
}
|