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,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.v2_getVlrEventMatches = v2_getVlrEventMatches;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getVlrEventMatches(apiKey, eventId) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/esports/vlr/events/${eventId}/matches`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export declare function v2_getVlrMatchDetails(apiKey: string, matchId: number): Promise<import("../../types/response.type").DefaultApiResponse<v2_getVlrMatchDetails_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getVlrMatchDetails_ResponseData {
|
|
3
|
+
games: {
|
|
4
|
+
map: string;
|
|
5
|
+
rounds: {
|
|
6
|
+
round: number;
|
|
7
|
+
winning_site: string;
|
|
8
|
+
winning_team: number;
|
|
9
|
+
}[];
|
|
10
|
+
teams: {
|
|
11
|
+
is_winner: boolean;
|
|
12
|
+
name: string;
|
|
13
|
+
players: {
|
|
14
|
+
agent: string;
|
|
15
|
+
player: {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
nation: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
};
|
|
21
|
+
stats: {
|
|
22
|
+
acs: number | null;
|
|
23
|
+
adr: number | null;
|
|
24
|
+
assists: number | null;
|
|
25
|
+
deaths: number | null;
|
|
26
|
+
first_deaths: number | null;
|
|
27
|
+
first_kills: number | null;
|
|
28
|
+
fk_diff: number | null;
|
|
29
|
+
hs_pct: number | null;
|
|
30
|
+
kast: number | null;
|
|
31
|
+
kd_diff: number | null;
|
|
32
|
+
kills: number | null;
|
|
33
|
+
rating: number | null;
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
36
|
+
score: number | null;
|
|
37
|
+
score_ct: number | null;
|
|
38
|
+
score_t: number | null;
|
|
39
|
+
}[];
|
|
40
|
+
duration_in_s: number | null;
|
|
41
|
+
picked_by: number | null;
|
|
42
|
+
}[];
|
|
43
|
+
head_to_head: {
|
|
44
|
+
date: string;
|
|
45
|
+
event: {
|
|
46
|
+
icon: string;
|
|
47
|
+
name: string;
|
|
48
|
+
series: string;
|
|
49
|
+
};
|
|
50
|
+
match: {
|
|
51
|
+
id: number;
|
|
52
|
+
slug: string;
|
|
53
|
+
};
|
|
54
|
+
score: {
|
|
55
|
+
team_1: number;
|
|
56
|
+
team_2: number;
|
|
57
|
+
winner_team: number;
|
|
58
|
+
};
|
|
59
|
+
}[];
|
|
60
|
+
metadata: {
|
|
61
|
+
date: string;
|
|
62
|
+
event: {
|
|
63
|
+
icon: string;
|
|
64
|
+
id: number;
|
|
65
|
+
series: string;
|
|
66
|
+
slug: string;
|
|
67
|
+
title: string;
|
|
68
|
+
};
|
|
69
|
+
format: string;
|
|
70
|
+
note: string;
|
|
71
|
+
patch: string;
|
|
72
|
+
status: string;
|
|
73
|
+
};
|
|
74
|
+
past_matches: {
|
|
75
|
+
matches: {
|
|
76
|
+
date: string;
|
|
77
|
+
is_win: boolean;
|
|
78
|
+
match: {
|
|
79
|
+
id: number;
|
|
80
|
+
slug: string;
|
|
81
|
+
};
|
|
82
|
+
opponent: {
|
|
83
|
+
logo: string;
|
|
84
|
+
name: string;
|
|
85
|
+
};
|
|
86
|
+
score: {
|
|
87
|
+
against: number;
|
|
88
|
+
for: number;
|
|
89
|
+
};
|
|
90
|
+
}[];
|
|
91
|
+
team: number;
|
|
92
|
+
}[];
|
|
93
|
+
streams: {
|
|
94
|
+
link: string;
|
|
95
|
+
name: string;
|
|
96
|
+
}[];
|
|
97
|
+
teams: {
|
|
98
|
+
icon: string;
|
|
99
|
+
id: number;
|
|
100
|
+
name: string;
|
|
101
|
+
slug: string;
|
|
102
|
+
url: string;
|
|
103
|
+
score: number | null;
|
|
104
|
+
}[];
|
|
105
|
+
vods: {
|
|
106
|
+
link: string;
|
|
107
|
+
name: string;
|
|
108
|
+
}[];
|
|
109
|
+
economy: {
|
|
110
|
+
teams: {
|
|
111
|
+
eco: {
|
|
112
|
+
rounds: number;
|
|
113
|
+
won: number;
|
|
114
|
+
};
|
|
115
|
+
full_buy: {
|
|
116
|
+
rounds: number;
|
|
117
|
+
won: number;
|
|
118
|
+
};
|
|
119
|
+
pistol_won: number;
|
|
120
|
+
semi_eco: {
|
|
121
|
+
rounds: number;
|
|
122
|
+
won: number;
|
|
123
|
+
};
|
|
124
|
+
team_name: string;
|
|
125
|
+
}[];
|
|
126
|
+
} | null;
|
|
127
|
+
performance: {
|
|
128
|
+
kill_matrix: {
|
|
129
|
+
deaths: number;
|
|
130
|
+
killer: number;
|
|
131
|
+
kills: number;
|
|
132
|
+
victim: number;
|
|
133
|
+
}[];
|
|
134
|
+
player_performances: {
|
|
135
|
+
clutches: {
|
|
136
|
+
"1v1": number;
|
|
137
|
+
"1v2": number;
|
|
138
|
+
"1v3": number;
|
|
139
|
+
"1v4": number;
|
|
140
|
+
"1v5": number;
|
|
141
|
+
};
|
|
142
|
+
defuses: number;
|
|
143
|
+
econ_rating: number;
|
|
144
|
+
multi_kills: {
|
|
145
|
+
"2k": number;
|
|
146
|
+
"3k": number;
|
|
147
|
+
"4k": number;
|
|
148
|
+
"5k": number;
|
|
149
|
+
};
|
|
150
|
+
plants: number;
|
|
151
|
+
player: {
|
|
152
|
+
id: number;
|
|
153
|
+
name: string;
|
|
154
|
+
};
|
|
155
|
+
}[];
|
|
156
|
+
} | null;
|
|
157
|
+
}
|
|
@@ -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.v2_getVlrMatchDetails = v2_getVlrMatchDetails;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getVlrMatchDetails(apiKey, matchId) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/esports/vlr/matches/${matchId}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare function v2_getVlrPlayer(apiKey: string, player: number, timespan?: "30d" | "60d" | "90d" | "all"): Promise<import("../../types/response.type").DefaultApiResponse<unknown> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getVlrPlayer_ResponseData {
|
|
3
|
+
agent_stats: {
|
|
4
|
+
agent: string;
|
|
5
|
+
stats: {
|
|
6
|
+
acs: number;
|
|
7
|
+
adr: number;
|
|
8
|
+
apr: number;
|
|
9
|
+
assists: number;
|
|
10
|
+
deaths: number;
|
|
11
|
+
fdpr: number;
|
|
12
|
+
first_deaths: number;
|
|
13
|
+
first_kills: number;
|
|
14
|
+
fkpr: number;
|
|
15
|
+
kast: number;
|
|
16
|
+
kd: number;
|
|
17
|
+
kills: number;
|
|
18
|
+
kpr: number;
|
|
19
|
+
rating: number;
|
|
20
|
+
};
|
|
21
|
+
usage: {
|
|
22
|
+
count: number;
|
|
23
|
+
percentage: number;
|
|
24
|
+
rounds: number;
|
|
25
|
+
};
|
|
26
|
+
}[];
|
|
27
|
+
current_teams: {
|
|
28
|
+
id: number;
|
|
29
|
+
logo: string;
|
|
30
|
+
name: string;
|
|
31
|
+
}[];
|
|
32
|
+
event_placements: {
|
|
33
|
+
event: {
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
slug: string;
|
|
37
|
+
};
|
|
38
|
+
placements: {
|
|
39
|
+
placement: string;
|
|
40
|
+
stage: string;
|
|
41
|
+
prize: string;
|
|
42
|
+
team: string;
|
|
43
|
+
}[];
|
|
44
|
+
year: string;
|
|
45
|
+
}[];
|
|
46
|
+
id: number;
|
|
47
|
+
name: string;
|
|
48
|
+
past_teams: {
|
|
49
|
+
id: number;
|
|
50
|
+
logo: string;
|
|
51
|
+
name: string;
|
|
52
|
+
}[];
|
|
53
|
+
socials: {
|
|
54
|
+
platform: string;
|
|
55
|
+
url: string;
|
|
56
|
+
}[];
|
|
57
|
+
avatar: string;
|
|
58
|
+
country: {
|
|
59
|
+
code: string;
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
real_name: string;
|
|
63
|
+
total_winnings: string;
|
|
64
|
+
}
|
|
@@ -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.v2_getVlrPlayer = v2_getVlrPlayer;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getVlrPlayer(apiKey, player, timespan) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/esports/vlr/players/${player}`, { timespan }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare function v2_getVlrPlayerMatches(apiKey: string, player: number, page?: number): Promise<import("../../types/response.type").DefaultApiResponse<v2_getVlrPlayerMatches_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getVlrPlayerMatches_ResponseData {
|
|
3
|
+
league: {
|
|
4
|
+
icon: string;
|
|
5
|
+
name: string;
|
|
6
|
+
series: string;
|
|
7
|
+
};
|
|
8
|
+
match: {
|
|
9
|
+
id: number;
|
|
10
|
+
slug: string;
|
|
11
|
+
};
|
|
12
|
+
teams: [
|
|
13
|
+
{
|
|
14
|
+
icon: string;
|
|
15
|
+
name: string;
|
|
16
|
+
tag: string;
|
|
17
|
+
score: number | null;
|
|
18
|
+
}
|
|
19
|
+
];
|
|
20
|
+
vods: string[];
|
|
21
|
+
date: string | null;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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.v2_getVlrPlayerMatches = v2_getVlrPlayerMatches;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getVlrPlayerMatches(apiKey, player, page) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/esports/vlr/players/${player}/matches`, {
|
|
17
|
+
page: page === null || page === void 0 ? void 0 : page.toString(),
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare function v2_getVlrTeam(apiKey: string, teamId: number): Promise<import("../../types/response.type").DefaultApiResponse<v2_getVlrTeam_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getVlrTeam_ResponseData {
|
|
3
|
+
event_placements: {
|
|
4
|
+
event: {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
};
|
|
9
|
+
placements: {
|
|
10
|
+
placement: string;
|
|
11
|
+
stage: string;
|
|
12
|
+
prize: string | null;
|
|
13
|
+
team: string | null;
|
|
14
|
+
}[];
|
|
15
|
+
year: string;
|
|
16
|
+
}[];
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
roster: {
|
|
20
|
+
alias: string;
|
|
21
|
+
id: number;
|
|
22
|
+
is_captain: boolean;
|
|
23
|
+
role: string;
|
|
24
|
+
avatar: string | null;
|
|
25
|
+
country_code: string | null;
|
|
26
|
+
real_name: string | null;
|
|
27
|
+
}[];
|
|
28
|
+
socials: {
|
|
29
|
+
platform: string;
|
|
30
|
+
url: string;
|
|
31
|
+
}[];
|
|
32
|
+
country: {
|
|
33
|
+
code: string;
|
|
34
|
+
name: string;
|
|
35
|
+
} | null;
|
|
36
|
+
logo: string | null;
|
|
37
|
+
tag: string | null;
|
|
38
|
+
total_winnings: string | null;
|
|
39
|
+
}
|
|
@@ -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.v2_getVlrTeam = v2_getVlrTeam;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getVlrTeam(apiKey, teamId) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/esports/vlr/teams/${teamId}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare function v2_getVlrTeamMatches(apiKey: string, teamId: number, page?: number): Promise<import("../../types/response.type").DefaultApiResponse<v2_getVlrTeamMatches_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getVlrTeamMatches_ResponseData {
|
|
3
|
+
league: {
|
|
4
|
+
icon: string;
|
|
5
|
+
name: string;
|
|
6
|
+
series: string;
|
|
7
|
+
};
|
|
8
|
+
match: {
|
|
9
|
+
id: number;
|
|
10
|
+
slug: string;
|
|
11
|
+
};
|
|
12
|
+
teams: {
|
|
13
|
+
logo: string;
|
|
14
|
+
name: string;
|
|
15
|
+
tag: string;
|
|
16
|
+
score: number;
|
|
17
|
+
}[];
|
|
18
|
+
vods: string[];
|
|
19
|
+
date: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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.v2_getVlrTeamMatches = v2_getVlrTeamMatches;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getVlrTeamMatches(apiKey, teamId, page) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/esports/vlr/teams/${teamId}/matches`, {
|
|
17
|
+
page: page === null || page === void 0 ? void 0 : page.toString(),
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function v2_getVlrTeamTransactions(apiKey: string, teamId: number): Promise<import("../../types/response.type").DefaultApiResponse<v2_getVlrTeamTransactions_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getVlrTeamTransactions_ResponseData {
|
|
3
|
+
action: string;
|
|
4
|
+
player: {
|
|
5
|
+
alias: string;
|
|
6
|
+
id: number;
|
|
7
|
+
slug: string;
|
|
8
|
+
country_code: string;
|
|
9
|
+
real_name: string;
|
|
10
|
+
};
|
|
11
|
+
position: string;
|
|
12
|
+
date: string;
|
|
13
|
+
reference_url: string;
|
|
14
|
+
}
|
|
@@ -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.v2_getVlrTeamTransactions = v2_getVlrTeamTransactions;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getVlrTeamTransactions(apiKey, teamId) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/esports/vlr/teams/${teamId}/transactions`);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare class v2_VlrCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-esports-events-v2
|
|
6
|
+
* @param region
|
|
7
|
+
* @param type
|
|
8
|
+
* @param page
|
|
9
|
+
* @returns Esports events retrieved successfully
|
|
10
|
+
*/
|
|
11
|
+
getEsportsEvents(region?: "north_america" | "europe" | "brazil" | "asia_pacific" | "korea" | "japan" | "latin_america" | "oceania" | "mena" | "gc" | "collegiate", type?: "completed" | "upcoming", page?: number): Promise<import("../../types/response.type").DefaultApiResponse<import("./getVlrEsportsEvents").v2_getVlrEsportsEvents_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-event-matches-v2
|
|
14
|
+
* @param eventId
|
|
15
|
+
* @returns Esports event matches retrieved successfully
|
|
16
|
+
*/
|
|
17
|
+
getEventMatches(eventId: number): Promise<import("../../types/response.type").DefaultApiResponse<import("./getVlrEventMatches").v2_getVlrEventMatches_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-match-details-v2
|
|
20
|
+
* @param matchId
|
|
21
|
+
* @returns Esports match details retrieved successfully
|
|
22
|
+
*/
|
|
23
|
+
getMatchDetails(matchId: number): Promise<import("../../types/response.type").DefaultApiResponse<import("./getVlrMatchDetails").v2_getVlrMatchDetails_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-team-v2
|
|
26
|
+
* @param teamId
|
|
27
|
+
* @returns Esports team profile retrieved successfully
|
|
28
|
+
*/
|
|
29
|
+
getTeam(teamId: number): Promise<import("../../types/response.type").DefaultApiResponse<import("./getVlrTeam").v2_getVlrTeam_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-team-matches-v2
|
|
32
|
+
* @param teamId
|
|
33
|
+
* @param page
|
|
34
|
+
* @returns Esports team matches retrieved successfully
|
|
35
|
+
*/
|
|
36
|
+
getTeamMatches(teamId: number, page?: number): Promise<import("../../types/response.type").DefaultApiResponse<import("./getVlrTeamMatches").v2_getVlrTeamMatches_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-team-transactions-v2
|
|
39
|
+
* @param teamId
|
|
40
|
+
* @returns Esports team transactions retrieved successfully
|
|
41
|
+
*/
|
|
42
|
+
getTeamTransactions(teamId: number): Promise<import("../../types/response.type").DefaultApiResponse<import("./getVlrTeamTransactions").v2_getVlrTeamTransactions_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-player-v2
|
|
45
|
+
* @param player
|
|
46
|
+
* @param timespan
|
|
47
|
+
* @returns Esports player profile retrieved successfully
|
|
48
|
+
*/
|
|
49
|
+
getPlayer(player: number, timespan?: "30d" | "60d" | "90d" | "all"): Promise<import("../../types/response.type").DefaultApiResponse<unknown> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-player-matches-v2
|
|
52
|
+
* @param player
|
|
53
|
+
* @param page
|
|
54
|
+
* @returns Esports player matches retrieved successfully
|
|
55
|
+
*/
|
|
56
|
+
getPlayerMatches(player: number, page?: number): Promise<import("../../types/response.type").DefaultApiResponse<import("./getVlrPlayerMatches").v2_getVlrPlayerMatches_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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.v2_VlrCategory = void 0;
|
|
13
|
+
const getVlrEsportsEvents_1 = require("./getVlrEsportsEvents");
|
|
14
|
+
const getVlrEventMatches_1 = require("./getVlrEventMatches");
|
|
15
|
+
const getVlrMatchDetails_1 = require("./getVlrMatchDetails");
|
|
16
|
+
const getVlrPlayer_1 = require("./getVlrPlayer");
|
|
17
|
+
const getVlrPlayerMatches_1 = require("./getVlrPlayerMatches");
|
|
18
|
+
const getVlrTeam_1 = require("./getVlrTeam");
|
|
19
|
+
const getVlrTeamMatches_1 = require("./getVlrTeamMatches");
|
|
20
|
+
const getVlrTeamTransactions_1 = require("./getVlrTeamTransactions");
|
|
21
|
+
class v2_VlrCategory {
|
|
22
|
+
constructor(apiKey) {
|
|
23
|
+
this.apiKey = apiKey;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-esports-events-v2
|
|
27
|
+
* @param region
|
|
28
|
+
* @param type
|
|
29
|
+
* @param page
|
|
30
|
+
* @returns Esports events retrieved successfully
|
|
31
|
+
*/
|
|
32
|
+
getEsportsEvents(region, type, page) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
return yield (0, getVlrEsportsEvents_1.v2_getVlrEsportsEvents)(this.apiKey, region, type, page);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-event-matches-v2
|
|
39
|
+
* @param eventId
|
|
40
|
+
* @returns Esports event matches retrieved successfully
|
|
41
|
+
*/
|
|
42
|
+
getEventMatches(eventId) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return yield (0, getVlrEventMatches_1.v2_getVlrEventMatches)(this.apiKey, eventId);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-match-details-v2
|
|
49
|
+
* @param matchId
|
|
50
|
+
* @returns Esports match details retrieved successfully
|
|
51
|
+
*/
|
|
52
|
+
getMatchDetails(matchId) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
return yield (0, getVlrMatchDetails_1.v2_getVlrMatchDetails)(this.apiKey, matchId);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-team-v2
|
|
59
|
+
* @param teamId
|
|
60
|
+
* @returns Esports team profile retrieved successfully
|
|
61
|
+
*/
|
|
62
|
+
getTeam(teamId) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
return yield (0, getVlrTeam_1.v2_getVlrTeam)(this.apiKey, teamId);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-team-matches-v2
|
|
69
|
+
* @param teamId
|
|
70
|
+
* @param page
|
|
71
|
+
* @returns Esports team matches retrieved successfully
|
|
72
|
+
*/
|
|
73
|
+
getTeamMatches(teamId, page) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
return yield (0, getVlrTeamMatches_1.v2_getVlrTeamMatches)(this.apiKey, teamId, page);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-team-transactions-v2
|
|
80
|
+
* @param teamId
|
|
81
|
+
* @returns Esports team transactions retrieved successfully
|
|
82
|
+
*/
|
|
83
|
+
getTeamTransactions(teamId) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
return yield (0, getVlrTeamTransactions_1.v2_getVlrTeamTransactions)(this.apiKey, teamId);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-player-v2
|
|
90
|
+
* @param player
|
|
91
|
+
* @param timespan
|
|
92
|
+
* @returns Esports player profile retrieved successfully
|
|
93
|
+
*/
|
|
94
|
+
getPlayer(player, timespan) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return yield (0, getVlrPlayer_1.v2_getVlrPlayer)(this.apiKey, player, timespan);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-vlr-player-matches-v2
|
|
101
|
+
* @param player
|
|
102
|
+
* @param page
|
|
103
|
+
* @returns Esports player matches retrieved successfully
|
|
104
|
+
*/
|
|
105
|
+
getPlayerMatches(player, page) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
return yield (0, getVlrPlayerMatches_1.v2_getVlrPlayerMatches)(this.apiKey, player, page);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.v2_VlrCategory = v2_VlrCategory;
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "uva-wrapper",
|
|
3
|
+
"version": "4.9.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "yarn && tsc"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"valorant",
|
|
11
|
+
"unofficial-valorant-api",
|
|
12
|
+
"api",
|
|
13
|
+
"wrapper"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/leontm-dev/uva-wrapper",
|
|
16
|
+
"author": {
|
|
17
|
+
"email": "lanneken09@gmail.com",
|
|
18
|
+
"name": "LeonTM",
|
|
19
|
+
"url": "https://leontm.me"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"description": "A type-safe API wrapper for Hendrik3's unofficial-valorant-api",
|
|
23
|
+
"dependencies": {},
|
|
24
|
+
"bugs": {
|
|
25
|
+
"email": "lanneken09@gmail.com",
|
|
26
|
+
"url": "https://github.com/leontm-dev/uva-wrapper/issues"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@jest/globals": "^30.4.1",
|
|
30
|
+
"@types/node": "^26.1.1",
|
|
31
|
+
"jest": "^30.4.2",
|
|
32
|
+
"ts-node": "^10.9.2",
|
|
33
|
+
"typescript": "7.0.2"
|
|
34
|
+
},
|
|
35
|
+
"readme": "https://github.com/leontm-dev/uva-wrapper/blob/main/README.md"
|
|
36
|
+
}
|