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.v1_getMMRByPuuid = v1_getMMRByPuuid;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getMMRByPuuid(apiKey, affinity, puuid) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/by-puuid/mmr/${affinity}/${puuid}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class v1_MMRCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-name-v1
|
|
6
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
7
|
+
* @param name Riot ID name
|
|
8
|
+
* @param tag Riot ID tag
|
|
9
|
+
* @returns MMR data retrieved successfully
|
|
10
|
+
*/
|
|
11
|
+
getByName(affinity: string, name: string, tag: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getMMRByName").v1_getMMRByName_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-puuid-v1
|
|
14
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
15
|
+
* @param puuid Player UUID
|
|
16
|
+
* @returns MMR data retrieved successfully
|
|
17
|
+
*/
|
|
18
|
+
getByPuuid(affinity: string, puuid: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getMMRByPuuid").v1_getMMRByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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_MMRCategory = void 0;
|
|
13
|
+
const getMMRByName_1 = require("./getMMRByName");
|
|
14
|
+
const getMMRByPuuid_1 = require("./getMMRByPuuid");
|
|
15
|
+
class v1_MMRCategory {
|
|
16
|
+
constructor(apiKey) {
|
|
17
|
+
this.apiKey = apiKey;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-name-v1
|
|
21
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
22
|
+
* @param name Riot ID name
|
|
23
|
+
* @param tag Riot ID tag
|
|
24
|
+
* @returns MMR data retrieved successfully
|
|
25
|
+
*/
|
|
26
|
+
getByName(affinity, name, tag) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield (0, getMMRByName_1.v1_getMMRByName)(this.apiKey, affinity, name, tag);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-puuid-v1
|
|
33
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
34
|
+
* @param puuid Player UUID
|
|
35
|
+
* @returns MMR data retrieved successfully
|
|
36
|
+
*/
|
|
37
|
+
getByPuuid(affinity, puuid) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return yield (0, getMMRByPuuid_1.v1_getMMRByPuuid)(this.apiKey, affinity, puuid);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.v1_MMRCategory = v1_MMRCategory;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare function v2_getMMRByName(apiKey: string, affinity: string, name: string, tag: string): Promise<import("../../types/response.type").DefaultApiResponse<v2_getMMRByName_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getMMRByName_ResponseData {
|
|
3
|
+
by_season: unknown;
|
|
4
|
+
current_data: {
|
|
5
|
+
currenttier: number;
|
|
6
|
+
currenttierpatched: string;
|
|
7
|
+
elo: number;
|
|
8
|
+
games_needed_for_rating: number;
|
|
9
|
+
images: {
|
|
10
|
+
large: string;
|
|
11
|
+
small: string;
|
|
12
|
+
triangle_down: string;
|
|
13
|
+
triangle_up: string;
|
|
14
|
+
};
|
|
15
|
+
mmr_change_to_last_game: number;
|
|
16
|
+
old: boolean;
|
|
17
|
+
ranking_in_tier: number;
|
|
18
|
+
};
|
|
19
|
+
highest_rank: {
|
|
20
|
+
old: boolean;
|
|
21
|
+
patched_tier: string;
|
|
22
|
+
season: string;
|
|
23
|
+
tier: number;
|
|
24
|
+
};
|
|
25
|
+
name: string;
|
|
26
|
+
puuid: string;
|
|
27
|
+
tag: string;
|
|
28
|
+
}
|
|
@@ -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_getMMRByName = v2_getMMRByName;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getMMRByName(apiKey, affinity, name, tag) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/mmr/${affinity}/${name}/${tag}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare function v2_getMMRByPuuid(apiKey: string, affinity: string, puuid: string): Promise<import("../../types/response.type").DefaultApiResponse<v2_getMMRByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getMMRByPuuid_ResponseData {
|
|
3
|
+
by_season: unknown;
|
|
4
|
+
current_data: {
|
|
5
|
+
currenttier: number;
|
|
6
|
+
currenttierpatched: string;
|
|
7
|
+
elo: number;
|
|
8
|
+
games_needed_for_rating: number;
|
|
9
|
+
images: {
|
|
10
|
+
large: string;
|
|
11
|
+
small: string;
|
|
12
|
+
triangle_down: string;
|
|
13
|
+
triangle_up: string;
|
|
14
|
+
};
|
|
15
|
+
mmr_change_to_last_game: number;
|
|
16
|
+
old: boolean;
|
|
17
|
+
ranking_in_tier: number;
|
|
18
|
+
};
|
|
19
|
+
highest_rank: {
|
|
20
|
+
old: boolean;
|
|
21
|
+
patched_tier: string;
|
|
22
|
+
season: string;
|
|
23
|
+
tier: number;
|
|
24
|
+
};
|
|
25
|
+
name: string;
|
|
26
|
+
puuid: string;
|
|
27
|
+
tag: string;
|
|
28
|
+
}
|
|
@@ -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_getMMRByPuuid = v2_getMMRByPuuid;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getMMRByPuuid(apiKey, affinity, puuid) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/by-puuid/mmr/${affinity}/${puuid}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class v2_MMRCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-name-v2
|
|
6
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
7
|
+
* @param name Riot ID name
|
|
8
|
+
* @param tag Riot ID tag
|
|
9
|
+
* @returns MMR data retrieved successfully
|
|
10
|
+
*/
|
|
11
|
+
getByName(affinity: string, name: string, tag: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getMMRByName").v2_getMMRByName_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-puuid-v2
|
|
14
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
15
|
+
* @param puuid Player UUID
|
|
16
|
+
* @returns MMR data retrieved successfully
|
|
17
|
+
*/
|
|
18
|
+
getByPuuid(affinity: string, puuid: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getMMRByPuuid").v2_getMMRByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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_MMRCategory = void 0;
|
|
13
|
+
const getMMRByName_1 = require("./getMMRByName");
|
|
14
|
+
const getMMRByPuuid_1 = require("./getMMRByPuuid");
|
|
15
|
+
class v2_MMRCategory {
|
|
16
|
+
constructor(apiKey) {
|
|
17
|
+
this.apiKey = apiKey;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-name-v2
|
|
21
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
22
|
+
* @param name Riot ID name
|
|
23
|
+
* @param tag Riot ID tag
|
|
24
|
+
* @returns MMR data retrieved successfully
|
|
25
|
+
*/
|
|
26
|
+
getByName(affinity, name, tag) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield (0, getMMRByName_1.v2_getMMRByName)(this.apiKey, affinity, name, tag);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-puuid-v2
|
|
33
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
34
|
+
* @param puuid Player UUID
|
|
35
|
+
* @returns MMR data retrieved successfully
|
|
36
|
+
*/
|
|
37
|
+
getByPuuid(affinity, puuid) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return yield (0, getMMRByPuuid_1.v2_getMMRByPuuid)(this.apiKey, affinity, puuid);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.v2_MMRCategory = v2_MMRCategory;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare function v3_getMMRByName(apiKey: string, affinity: string, platform: string, name: string, tag: string): Promise<import("../../types/response.type").DefaultApiResponse<v3_getMMRByName_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v3_getMMRByName_ResponseData {
|
|
3
|
+
account: {
|
|
4
|
+
name: string;
|
|
5
|
+
puuid: string;
|
|
6
|
+
tag: string;
|
|
7
|
+
};
|
|
8
|
+
current: {
|
|
9
|
+
elo: number;
|
|
10
|
+
games_needed_for_rating: number;
|
|
11
|
+
last_change: number;
|
|
12
|
+
rank_protection_shields: number;
|
|
13
|
+
rr: number;
|
|
14
|
+
tier: {
|
|
15
|
+
id: number;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
leaderboard_placement: {
|
|
19
|
+
/**
|
|
20
|
+
* Required range: x >= 0
|
|
21
|
+
*/
|
|
22
|
+
rank: number;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
} | null;
|
|
25
|
+
};
|
|
26
|
+
seasonal: {
|
|
27
|
+
act_wins: {
|
|
28
|
+
id: number;
|
|
29
|
+
name: string;
|
|
30
|
+
}[];
|
|
31
|
+
end_rr: number;
|
|
32
|
+
end_tier: {
|
|
33
|
+
id: number;
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
36
|
+
games: number;
|
|
37
|
+
ranking_schema: string;
|
|
38
|
+
season: {
|
|
39
|
+
id: string;
|
|
40
|
+
short: string;
|
|
41
|
+
};
|
|
42
|
+
wins: number;
|
|
43
|
+
leaderboard_placement: {
|
|
44
|
+
/**
|
|
45
|
+
* Required range: x >= 0
|
|
46
|
+
*/
|
|
47
|
+
rank: number;
|
|
48
|
+
updated_at: string;
|
|
49
|
+
} | null;
|
|
50
|
+
}[];
|
|
51
|
+
peak: {
|
|
52
|
+
ranking_schema: string;
|
|
53
|
+
rr: number;
|
|
54
|
+
season: {
|
|
55
|
+
id: string;
|
|
56
|
+
short: string;
|
|
57
|
+
};
|
|
58
|
+
tier: {
|
|
59
|
+
id: number;
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
} | null;
|
|
63
|
+
}
|
|
@@ -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.v3_getMMRByName = v3_getMMRByName;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v3_getMMRByName(apiKey, affinity, platform, name, tag) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v3/mmr/${affinity}/${platform}/${name}/${tag}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare function v3_getMMRByPuuid(apiKey: string, affinity: string, platform: string, puuid: string): Promise<import("../../types/response.type").DefaultApiResponse<v3_getMMRByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v3_getMMRByPuuid_ResponseData {
|
|
3
|
+
account: {
|
|
4
|
+
name: string;
|
|
5
|
+
puuid: string;
|
|
6
|
+
tag: string;
|
|
7
|
+
};
|
|
8
|
+
current: {
|
|
9
|
+
elo: number;
|
|
10
|
+
games_needed_for_rating: number;
|
|
11
|
+
last_change: number;
|
|
12
|
+
rank_protection_shields: number;
|
|
13
|
+
rr: number;
|
|
14
|
+
tier: {
|
|
15
|
+
id: number;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
leaderboard_placement: {
|
|
19
|
+
/**
|
|
20
|
+
* Required range: x >= 0
|
|
21
|
+
*/
|
|
22
|
+
rank: number;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
} | null;
|
|
25
|
+
};
|
|
26
|
+
seasonal: {
|
|
27
|
+
act_wins: {
|
|
28
|
+
id: number;
|
|
29
|
+
name: string;
|
|
30
|
+
}[];
|
|
31
|
+
end_rr: number;
|
|
32
|
+
end_tier: {
|
|
33
|
+
id: number;
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
36
|
+
games: number;
|
|
37
|
+
ranking_schema: string;
|
|
38
|
+
season: {
|
|
39
|
+
id: string;
|
|
40
|
+
short: string;
|
|
41
|
+
};
|
|
42
|
+
wins: number;
|
|
43
|
+
leaderboard_placement: {
|
|
44
|
+
/**
|
|
45
|
+
* Required range: x >= 0
|
|
46
|
+
*/
|
|
47
|
+
rank: number;
|
|
48
|
+
updated_at: string;
|
|
49
|
+
} | null;
|
|
50
|
+
}[];
|
|
51
|
+
peak: {
|
|
52
|
+
ranking_schema: string;
|
|
53
|
+
rr: number;
|
|
54
|
+
season: {
|
|
55
|
+
id: string;
|
|
56
|
+
short: string;
|
|
57
|
+
};
|
|
58
|
+
tier: {
|
|
59
|
+
id: number;
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
} | null;
|
|
63
|
+
}
|
|
@@ -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.v3_getMMRByPuuid = v3_getMMRByPuuid;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v3_getMMRByPuuid(apiKey, affinity, platform, puuid) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v3/by-puuid/mmr/${affinity}/${platform}/${puuid}`, {}, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class v3_MMRCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-name-v3
|
|
6
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
7
|
+
* @param platform Platform (pc, console)
|
|
8
|
+
* @param name Riot ID name
|
|
9
|
+
* @param tag Riot ID tag
|
|
10
|
+
* @returns MMR data retrieved successfully
|
|
11
|
+
*/
|
|
12
|
+
getByName(affinity: string, platform: string, name: string, tag: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getMMRByName").v3_getMMRByName_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-puuid-v3
|
|
15
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
16
|
+
* @param platform Platform (pc, console)
|
|
17
|
+
* @param puuid Player UUID
|
|
18
|
+
* @returns MMR data retrieved successfully
|
|
19
|
+
*/
|
|
20
|
+
getByPuuid(affinity: string, platform: string, puuid: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getMMRByPuuid").v3_getMMRByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.v3_MMRCategory = void 0;
|
|
13
|
+
const getMMRByName_1 = require("./getMMRByName");
|
|
14
|
+
const getMMRByPuuid_1 = require("./getMMRByPuuid");
|
|
15
|
+
class v3_MMRCategory {
|
|
16
|
+
constructor(apiKey) {
|
|
17
|
+
this.apiKey = apiKey;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-name-v3
|
|
21
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
22
|
+
* @param platform Platform (pc, console)
|
|
23
|
+
* @param name Riot ID name
|
|
24
|
+
* @param tag Riot ID tag
|
|
25
|
+
* @returns MMR data retrieved successfully
|
|
26
|
+
*/
|
|
27
|
+
getByName(affinity, platform, name, tag) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
return yield (0, getMMRByName_1.v3_getMMRByName)(this.apiKey, affinity, platform, name, tag);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-by-puuid-v3
|
|
34
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
35
|
+
* @param platform Platform (pc, console)
|
|
36
|
+
* @param puuid Player UUID
|
|
37
|
+
* @returns MMR data retrieved successfully
|
|
38
|
+
*/
|
|
39
|
+
getByPuuid(affinity, platform, puuid) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return yield (0, getMMRByPuuid_1.v3_getMMRByPuuid)(this.apiKey, affinity, platform, puuid);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.v3_MMRCategory = v3_MMRCategory;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MMRHistoryCategory = void 0;
|
|
4
|
+
const v1_1 = require("./v1");
|
|
5
|
+
const v2_1 = require("./v2");
|
|
6
|
+
class MMRHistoryCategory {
|
|
7
|
+
constructor(apiKey) {
|
|
8
|
+
this.apiKey = apiKey;
|
|
9
|
+
this.v1 = new v1_1.v1_MMRHistoryCategory(this.apiKey);
|
|
10
|
+
this.v2 = new v2_1.v2_MMRHistoryCategory(this.apiKey);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.MMRHistoryCategory = MMRHistoryCategory;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DefaultApiResponse, DefaultErrorsResponse } from "../../types/response.type";
|
|
2
|
+
export declare function v1_getMMRHistoryByName(apiKey: string, affinity: string, name: string, tag: string): Promise<DefaultErrorsResponse | (DefaultApiResponse<v1_getMMRHistoryByName_ResponseData[]> & {
|
|
3
|
+
name: string;
|
|
4
|
+
tag: string;
|
|
5
|
+
})>;
|
|
6
|
+
export interface v1_getMMRHistoryByName_ResponseData {
|
|
7
|
+
currenttier: number;
|
|
8
|
+
currenttierpatched: string;
|
|
9
|
+
date: string;
|
|
10
|
+
date_raw: number;
|
|
11
|
+
elo: number;
|
|
12
|
+
images: {
|
|
13
|
+
large: string;
|
|
14
|
+
small: string;
|
|
15
|
+
triangle_down: string;
|
|
16
|
+
triangle_up: string;
|
|
17
|
+
};
|
|
18
|
+
map: {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
match_id: string;
|
|
23
|
+
mmr_change_to_last_game: number;
|
|
24
|
+
ranking_in_tier: number;
|
|
25
|
+
season_id: string;
|
|
26
|
+
}
|
|
@@ -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_getMMRHistoryByName = v1_getMMRHistoryByName;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getMMRHistoryByName(apiKey, affinity, name, tag) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return (yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/valorant/v1/mmr-history/${affinity}/${name}/${tag}`, {}, { method: "GET" }));
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DefaultApiResponse, DefaultErrorsResponse } from "../../types/response.type";
|
|
2
|
+
export declare function v1_getMMRHistoryByPuuid(apiKey: string, affinity: string, puuid: string): Promise<DefaultErrorsResponse | (DefaultApiResponse<v1_getMMRHistoryByPuuid_ResponseData[]> & {
|
|
3
|
+
name: string;
|
|
4
|
+
tag: string;
|
|
5
|
+
})>;
|
|
6
|
+
export interface v1_getMMRHistoryByPuuid_ResponseData {
|
|
7
|
+
currenttier: number;
|
|
8
|
+
currenttierpatched: string;
|
|
9
|
+
date: string;
|
|
10
|
+
date_raw: number;
|
|
11
|
+
elo: number;
|
|
12
|
+
images: {
|
|
13
|
+
large: string;
|
|
14
|
+
small: string;
|
|
15
|
+
triangle_down: string;
|
|
16
|
+
triangle_up: string;
|
|
17
|
+
};
|
|
18
|
+
map: {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
match_id: string;
|
|
23
|
+
mmr_change_to_last_game: number;
|
|
24
|
+
ranking_in_tier: number;
|
|
25
|
+
season_id: string;
|
|
26
|
+
}
|
|
@@ -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_getMMRHistoryByPuuid = v1_getMMRHistoryByPuuid;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getMMRHistoryByPuuid(apiKey, affinity, puuid) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return (yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/by-puuid/mmr-history/${affinity}/${puuid}`, {}, { method: "GET" }));
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare class v1_MMRHistoryCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-history-by-name-v1
|
|
6
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
7
|
+
* @param name Riot ID name
|
|
8
|
+
* @param tag Riot ID tag
|
|
9
|
+
* @returns MMR history retrieved successfully
|
|
10
|
+
*/
|
|
11
|
+
getByName(affinity: string, name: string, tag: string): Promise<import("../../types/response.type").DefaultErrorsResponse | (import("../../types/response.type").DefaultApiResponse<import("./getMMRHistoryByName").v1_getMMRHistoryByName_ResponseData[]> & {
|
|
12
|
+
name: string;
|
|
13
|
+
tag: string;
|
|
14
|
+
})>;
|
|
15
|
+
/**
|
|
16
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-mmr-history-by-puuid-v1
|
|
17
|
+
* @param affinity Region/affinity (e.g., na, eu, ap, kr)
|
|
18
|
+
* @param puuid Player UUID
|
|
19
|
+
* @returns MMR history retrieved successfully
|
|
20
|
+
*/
|
|
21
|
+
getByPuuid(affinity: string, puuid: string): Promise<import("../../types/response.type").DefaultErrorsResponse | (import("../../types/response.type").DefaultApiResponse<import("./getMMRHistoryByPuuid").v1_getMMRHistoryByPuuid_ResponseData[]> & {
|
|
22
|
+
name: string;
|
|
23
|
+
tag: string;
|
|
24
|
+
})>;
|
|
25
|
+
}
|