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,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountCategory = void 0;
|
|
4
|
+
const v1_1 = require("./v1");
|
|
5
|
+
const v2_1 = require("./v2");
|
|
6
|
+
class AccountCategory {
|
|
7
|
+
constructor(apiKey) {
|
|
8
|
+
this.apiKey = apiKey;
|
|
9
|
+
this.v1 = new v1_1.v1_AccountCategory(this.apiKey);
|
|
10
|
+
this.v2 = new v2_1.v2_AccountCategory(this.apiKey);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.AccountCategory = AccountCategory;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function v1_getAccount(apiKey: string, name: string, tag: string, force?: boolean): Promise<import("../../types/response.type").DefaultApiResponse<v1_getAccount_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getAccount_ResponseData {
|
|
3
|
+
account_level: number;
|
|
4
|
+
card: {
|
|
5
|
+
id: string;
|
|
6
|
+
large: string;
|
|
7
|
+
small: string;
|
|
8
|
+
wide: string;
|
|
9
|
+
};
|
|
10
|
+
last_update: string;
|
|
11
|
+
last_update_raw: number;
|
|
12
|
+
name: string;
|
|
13
|
+
puuid: string;
|
|
14
|
+
region: string;
|
|
15
|
+
tag: string;
|
|
16
|
+
}
|
|
@@ -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_getAccount = v1_getAccount;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getAccount(apiKey, name, tag, force) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/account/${name}/${tag}`, { force: force ? (force ? "true" : "false") : undefined }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function v1_getAccountByPuuid(apiKey: string, puuid: string, force?: boolean): Promise<import("../../types/response.type").DefaultApiResponse<v1_getAccountByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getAccountByPuuid_ResponseData {
|
|
3
|
+
account_level: number;
|
|
4
|
+
card: {
|
|
5
|
+
id: string;
|
|
6
|
+
large: string;
|
|
7
|
+
small: string;
|
|
8
|
+
wide: string;
|
|
9
|
+
};
|
|
10
|
+
last_update: string;
|
|
11
|
+
last_update_raw: number;
|
|
12
|
+
name: string;
|
|
13
|
+
puuid: string;
|
|
14
|
+
region: string;
|
|
15
|
+
tag: string;
|
|
16
|
+
}
|
|
@@ -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_getAccountByPuuid = v1_getAccountByPuuid;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getAccountByPuuid(apiKey, puuid, force) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v1/by-puuid/account/${puuid}`, { force: force ? (force ? "true" : "false") : undefined }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class v1_AccountCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-account-by-puuid-v1
|
|
6
|
+
* @param puuid Player UUID
|
|
7
|
+
* @param force Bypass cache and refresh (optional)
|
|
8
|
+
* @returns Account data retrieved successfully
|
|
9
|
+
*/
|
|
10
|
+
getByPuuid(puuid: string, force?: boolean): Promise<import("../../types/response.type").DefaultApiResponse<import("./getAccountByPuuid").v1_getAccountByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-account-v1
|
|
13
|
+
* @param name Riot ID name
|
|
14
|
+
* @param tag Riot ID tag
|
|
15
|
+
* @param force Bypass cache and refresh (optional)
|
|
16
|
+
* @returns Account data retrieved successfully
|
|
17
|
+
*/
|
|
18
|
+
get(name: string, tag: string, force?: boolean): Promise<import("../../types/response.type").DefaultApiResponse<import("./getAccount").v1_getAccount_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_AccountCategory = void 0;
|
|
13
|
+
const getAccount_1 = require("./getAccount");
|
|
14
|
+
const getAccountByPuuid_1 = require("./getAccountByPuuid");
|
|
15
|
+
class v1_AccountCategory {
|
|
16
|
+
constructor(apiKey) {
|
|
17
|
+
this.apiKey = apiKey;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-account-by-puuid-v1
|
|
21
|
+
* @param puuid Player UUID
|
|
22
|
+
* @param force Bypass cache and refresh (optional)
|
|
23
|
+
* @returns Account data retrieved successfully
|
|
24
|
+
*/
|
|
25
|
+
getByPuuid(puuid, force) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return yield (0, getAccountByPuuid_1.v1_getAccountByPuuid)(this.apiKey, puuid, force);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-account-v1
|
|
32
|
+
* @param name Riot ID name
|
|
33
|
+
* @param tag Riot ID tag
|
|
34
|
+
* @param force Bypass cache and refresh (optional)
|
|
35
|
+
* @returns Account data retrieved successfully
|
|
36
|
+
*/
|
|
37
|
+
get(name, tag, force) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return yield (0, getAccount_1.v1_getAccount)(this.apiKey, name, tag, force);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.v1_AccountCategory = v1_AccountCategory;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function v2_getAccount(apiKey: string, name: string, tag: string, force?: boolean): Promise<import("../../types/response.type").DefaultApiResponse<v2_getAccount_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getAccount_ResponseData {
|
|
3
|
+
account_level: number;
|
|
4
|
+
card: string;
|
|
5
|
+
name: string;
|
|
6
|
+
platforms: string[];
|
|
7
|
+
puuid: string;
|
|
8
|
+
region: string;
|
|
9
|
+
tag: string;
|
|
10
|
+
title: string;
|
|
11
|
+
updated_at: string;
|
|
12
|
+
}
|
|
@@ -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_getAccount = v2_getAccount;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getAccount(apiKey, name, tag, force) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/account/${name}/${tag}`, { force: force ? (force ? "true" : "false") : undefined }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function v2_getAccountByPuuid(apiKey: string, puuid: string, force?: boolean): Promise<import("../../types/response.type").DefaultApiResponse<v2_getAccountByPuuid_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v2_getAccountByPuuid_ResponseData {
|
|
3
|
+
account_level: number;
|
|
4
|
+
card: string;
|
|
5
|
+
name: string;
|
|
6
|
+
platforms: string[];
|
|
7
|
+
puuid: string;
|
|
8
|
+
region: string;
|
|
9
|
+
tag: string;
|
|
10
|
+
title: string;
|
|
11
|
+
updated_at: string;
|
|
12
|
+
}
|
|
@@ -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_getAccountByPuuid = v2_getAccountByPuuid;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v2_getAccountByPuuid(apiKey, puuid, force) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return (0, request_handler_1.doApiRequest)(apiKey, `/valorant/v2/by-puuid/account/${puuid}`, { force: force ? (force ? "true" : "false") : undefined }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class v2_AccountCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-account-v2
|
|
6
|
+
* @param name Riot ID name
|
|
7
|
+
* @param tag Riot ID tag
|
|
8
|
+
* @param force Bypass cache and refresh (optional)
|
|
9
|
+
* @returns Account data retrieved successfully
|
|
10
|
+
*/
|
|
11
|
+
get(name: string, tag: string, force?: boolean): Promise<import("../../types/response.type").DefaultApiResponse<import("./getAccount").v2_getAccount_ResponseData> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-account-by-puuid-v2
|
|
14
|
+
* @param puuid Player UUID
|
|
15
|
+
* @param force Bypass cache and refresh (optional)
|
|
16
|
+
* @returns Account data retrieved successfully
|
|
17
|
+
*/
|
|
18
|
+
getByPuuid(puuid: string, force?: boolean): Promise<import("../../types/response.type").DefaultApiResponse<import("./getAccountByPuuid").v2_getAccountByPuuid_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_AccountCategory = void 0;
|
|
13
|
+
const getAccount_1 = require("./getAccount");
|
|
14
|
+
const getAccountByPuuid_1 = require("./getAccountByPuuid");
|
|
15
|
+
class v2_AccountCategory {
|
|
16
|
+
constructor(apiKey) {
|
|
17
|
+
this.apiKey = apiKey;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-account-v2
|
|
21
|
+
* @param name Riot ID name
|
|
22
|
+
* @param tag Riot ID tag
|
|
23
|
+
* @param force Bypass cache and refresh (optional)
|
|
24
|
+
* @returns Account data retrieved successfully
|
|
25
|
+
*/
|
|
26
|
+
get(name, tag, force) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield (0, getAccount_1.v2_getAccount)(this.apiKey, name, tag, force);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-account-by-puuid-v2
|
|
33
|
+
* @param puuid Player UUID
|
|
34
|
+
* @param force Bypass cache and refresh (optional)
|
|
35
|
+
* @returns Account data retrieved successfully
|
|
36
|
+
*/
|
|
37
|
+
getByPuuid(puuid, force) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return yield (0, getAccountByPuuid_1.v2_getAccountByPuuid)(this.apiKey, puuid, force);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.v2_AccountCategory = v2_AccountCategory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const apiURL = "https://api.henrikdev.xyz";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CrosshairCategory = void 0;
|
|
4
|
+
const v1_1 = require("./v1");
|
|
5
|
+
class CrosshairCategory {
|
|
6
|
+
constructor(apiKey) {
|
|
7
|
+
this.apiKey = apiKey;
|
|
8
|
+
this.v1 = new v1_1.v1_CrosshairCategory(this.apiKey);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.CrosshairCategory = CrosshairCategory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function v1_generateCrosshairImage(apiKey: string, id?: string): Promise<import("../../types/response.type").DefaultApiResponse<unknown> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
@@ -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_generateCrosshairImage = v1_generateCrosshairImage;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_generateCrosshairImage(apiKey, id) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, "/valorant/v1/crosshair/generate", { id }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class v1_CrosshairCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/generate-crosshair-image-v1
|
|
6
|
+
* @param id Crosshair code
|
|
7
|
+
* @returns Crosshair image generated successfully
|
|
8
|
+
*/
|
|
9
|
+
generateImage(id?: string): Promise<import("../../types/response.type").DefaultApiResponse<unknown> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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_CrosshairCategory = void 0;
|
|
13
|
+
const generateCrosshairImage_1 = require("./generateCrosshairImage");
|
|
14
|
+
class v1_CrosshairCategory {
|
|
15
|
+
constructor(apiKey) {
|
|
16
|
+
this.apiKey = apiKey;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/generate-crosshair-image-v1
|
|
20
|
+
* @param id Crosshair code
|
|
21
|
+
* @returns Crosshair image generated successfully
|
|
22
|
+
*/
|
|
23
|
+
generateImage(id) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
return yield (0, generateCrosshairImage_1.v1_generateCrosshairImage)(this.apiKey, id);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.v1_CrosshairCategory = v1_CrosshairCategory;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EsportsCategory = void 0;
|
|
4
|
+
const v1_1 = require("./v1");
|
|
5
|
+
class EsportsCategory {
|
|
6
|
+
constructor(apiKey) {
|
|
7
|
+
this.apiKey = apiKey;
|
|
8
|
+
this.v1 = new v1_1.v1_EsportsCategory(this.apiKey);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EsportsCategory = EsportsCategory;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare function v1_getEsportsSchedule(apiKey: string, region?: string, league?: string): Promise<import("../../types/response.type").DefaultApiResponse<v1_getEsportsSchedule_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getEsportsSchedule_ResponseData {
|
|
3
|
+
date: string;
|
|
4
|
+
league: {
|
|
5
|
+
icon: string;
|
|
6
|
+
identifier: string;
|
|
7
|
+
name: string;
|
|
8
|
+
region: string;
|
|
9
|
+
};
|
|
10
|
+
match: {
|
|
11
|
+
game_type: {
|
|
12
|
+
count: number;
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
teams: {
|
|
16
|
+
code: string;
|
|
17
|
+
game_wins: number;
|
|
18
|
+
has_won: boolean;
|
|
19
|
+
icon: string;
|
|
20
|
+
name: string;
|
|
21
|
+
record: {
|
|
22
|
+
losses: number;
|
|
23
|
+
wins: number;
|
|
24
|
+
};
|
|
25
|
+
}[];
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
28
|
+
state: string;
|
|
29
|
+
tournament: {
|
|
30
|
+
name: string;
|
|
31
|
+
season: string;
|
|
32
|
+
};
|
|
33
|
+
type: string;
|
|
34
|
+
vod: string;
|
|
35
|
+
}
|
|
@@ -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_getEsportsSchedule = v1_getEsportsSchedule;
|
|
13
|
+
const request_handler_1 = require("../../lib/request-handler");
|
|
14
|
+
function v1_getEsportsSchedule(apiKey, region, league) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
return yield (0, request_handler_1.doApiRequest)(apiKey, "/valorant/v1/esports/schedule", { region, league }, { method: "GET" });
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class v1_EsportsCategory {
|
|
2
|
+
private readonly apiKey;
|
|
3
|
+
constructor(apiKey: string);
|
|
4
|
+
/**
|
|
5
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-esports-schedule-v1
|
|
6
|
+
* @param region
|
|
7
|
+
* @param league
|
|
8
|
+
* @returns Esports schedule retrieved successfully
|
|
9
|
+
*/
|
|
10
|
+
getSchedule(region?: string, league?: string): Promise<import("../../types/response.type").DefaultApiResponse<import("./getEsportsSchedule").v1_getEsportsSchedule_ResponseData[]> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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_EsportsCategory = void 0;
|
|
13
|
+
const getEsportsSchedule_1 = require("./getEsportsSchedule");
|
|
14
|
+
class v1_EsportsCategory {
|
|
15
|
+
constructor(apiKey) {
|
|
16
|
+
this.apiKey = apiKey;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @link https://docs.henrikdev.xyz/api-reference/valorant/get-esports-schedule-v1
|
|
20
|
+
* @param region
|
|
21
|
+
* @param league
|
|
22
|
+
* @returns Esports schedule retrieved successfully
|
|
23
|
+
*/
|
|
24
|
+
getSchedule(region, league) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return yield (0, getEsportsSchedule_1.v1_getEsportsSchedule)(this.apiKey, region, league);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.v1_EsportsCategory = v1_EsportsCategory;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AccountCategory } from "./account";
|
|
2
|
+
import { CrosshairCategory } from "./crosshair";
|
|
3
|
+
import { EsportsCategory } from "./esports";
|
|
4
|
+
import { LeaderboardCategory } from "./leaderboard";
|
|
5
|
+
import { MatchDetailsCategory } from "./match-details";
|
|
6
|
+
import { MatchesCategory } from "./matches";
|
|
7
|
+
import { MiscCategory } from "./misc";
|
|
8
|
+
import { MMRCategory } from "./mmr";
|
|
9
|
+
import { MMRHistoryCategory } from "./mmr-history";
|
|
10
|
+
import { PremierCategory } from "./premier";
|
|
11
|
+
import { PremierHistoryCategory } from "./premier-history";
|
|
12
|
+
import { PremierLeaderboardCategory } from "./premier-leaderboard";
|
|
13
|
+
import { PremiumCategory } from "./premium";
|
|
14
|
+
import { StoreCategory } from "./store";
|
|
15
|
+
import { StoredMatchesCategory } from "./stored-matches";
|
|
16
|
+
import { StoredMMRHistoryCategory } from "./stored-mmr-history";
|
|
17
|
+
import { VlrCategory } from "./vlr";
|
|
18
|
+
export declare class UnofficialValorantAPI {
|
|
19
|
+
private readonly apiKey;
|
|
20
|
+
constructor(apiKey: string);
|
|
21
|
+
Account: AccountCategory;
|
|
22
|
+
Crosshair: CrosshairCategory;
|
|
23
|
+
Esports: EsportsCategory;
|
|
24
|
+
Leaderboard: LeaderboardCategory;
|
|
25
|
+
Match_Details: MatchDetailsCategory;
|
|
26
|
+
Matches: MatchesCategory;
|
|
27
|
+
Misc: MiscCategory;
|
|
28
|
+
MMR: MMRCategory;
|
|
29
|
+
MMR_History: MMRHistoryCategory;
|
|
30
|
+
Premier: PremierCategory;
|
|
31
|
+
Premier_History: PremierHistoryCategory;
|
|
32
|
+
Premier_Leaderboard: PremierLeaderboardCategory;
|
|
33
|
+
Premium: PremiumCategory;
|
|
34
|
+
Store: StoreCategory;
|
|
35
|
+
Stored_Matches: StoredMatchesCategory;
|
|
36
|
+
Stored_MMR_History: StoredMMRHistoryCategory;
|
|
37
|
+
Vlr: VlrCategory;
|
|
38
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnofficialValorantAPI = void 0;
|
|
4
|
+
const account_1 = require("./account");
|
|
5
|
+
const crosshair_1 = require("./crosshair");
|
|
6
|
+
const esports_1 = require("./esports");
|
|
7
|
+
const leaderboard_1 = require("./leaderboard");
|
|
8
|
+
const match_details_1 = require("./match-details");
|
|
9
|
+
const matches_1 = require("./matches");
|
|
10
|
+
const misc_1 = require("./misc");
|
|
11
|
+
const mmr_1 = require("./mmr");
|
|
12
|
+
const mmr_history_1 = require("./mmr-history");
|
|
13
|
+
const premier_1 = require("./premier");
|
|
14
|
+
const premier_history_1 = require("./premier-history");
|
|
15
|
+
const premier_leaderboard_1 = require("./premier-leaderboard");
|
|
16
|
+
const premium_1 = require("./premium");
|
|
17
|
+
const store_1 = require("./store");
|
|
18
|
+
const stored_matches_1 = require("./stored-matches");
|
|
19
|
+
const stored_mmr_history_1 = require("./stored-mmr-history");
|
|
20
|
+
const vlr_1 = require("./vlr");
|
|
21
|
+
class UnofficialValorantAPI {
|
|
22
|
+
constructor(apiKey) {
|
|
23
|
+
this.apiKey = apiKey;
|
|
24
|
+
this.Account = new account_1.AccountCategory(this.apiKey);
|
|
25
|
+
this.Crosshair = new crosshair_1.CrosshairCategory(this.apiKey);
|
|
26
|
+
this.Esports = new esports_1.EsportsCategory(this.apiKey);
|
|
27
|
+
this.Leaderboard = new leaderboard_1.LeaderboardCategory(this.apiKey);
|
|
28
|
+
this.Match_Details = new match_details_1.MatchDetailsCategory(this.apiKey);
|
|
29
|
+
this.Matches = new matches_1.MatchesCategory(this.apiKey);
|
|
30
|
+
this.Misc = new misc_1.MiscCategory(this.apiKey);
|
|
31
|
+
this.MMR = new mmr_1.MMRCategory(this.apiKey);
|
|
32
|
+
this.MMR_History = new mmr_history_1.MMRHistoryCategory(this.apiKey);
|
|
33
|
+
this.Premier = new premier_1.PremierCategory(this.apiKey);
|
|
34
|
+
this.Premier_History = new premier_history_1.PremierHistoryCategory(this.apiKey);
|
|
35
|
+
this.Premier_Leaderboard = new premier_leaderboard_1.PremierLeaderboardCategory(this.apiKey);
|
|
36
|
+
this.Premium = new premium_1.PremiumCategory(this.apiKey);
|
|
37
|
+
this.Store = new store_1.StoreCategory(this.apiKey);
|
|
38
|
+
this.Stored_Matches = new stored_matches_1.StoredMatchesCategory(this.apiKey);
|
|
39
|
+
this.Stored_MMR_History = new stored_mmr_history_1.StoredMMRHistoryCategory(this.apiKey);
|
|
40
|
+
this.Vlr = new vlr_1.VlrCategory(this.apiKey);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.UnofficialValorantAPI = UnofficialValorantAPI;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { v1_LeaderboardCategory } from "./v1";
|
|
2
|
+
import { v2_LeaderboardCategory } from "./v2";
|
|
3
|
+
import { v3_LeaderboardCategory } from "./v3";
|
|
4
|
+
export declare class LeaderboardCategory {
|
|
5
|
+
private readonly apiKey;
|
|
6
|
+
constructor(apiKey: string);
|
|
7
|
+
v1: v1_LeaderboardCategory;
|
|
8
|
+
v2: v2_LeaderboardCategory;
|
|
9
|
+
v3: v3_LeaderboardCategory;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeaderboardCategory = void 0;
|
|
4
|
+
const v1_1 = require("./v1");
|
|
5
|
+
const v2_1 = require("./v2");
|
|
6
|
+
const v3_1 = require("./v3");
|
|
7
|
+
class LeaderboardCategory {
|
|
8
|
+
constructor(apiKey) {
|
|
9
|
+
this.apiKey = apiKey;
|
|
10
|
+
this.v1 = new v1_1.v1_LeaderboardCategory(this.apiKey);
|
|
11
|
+
this.v2 = new v2_1.v2_LeaderboardCategory(this.apiKey);
|
|
12
|
+
this.v3 = new v3_1.v3_LeaderboardCategory(this.apiKey);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.LeaderboardCategory = LeaderboardCategory;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function v1_getLeaderboard(apiKey: string, affinity: string, season?: string, name?: string, tag?: string): Promise<import("../../types/response.type").DefaultApiResponse<unknown> | import("../../types/response.type").DefaultErrorsResponse>;
|
|
2
|
+
export interface v1_getLeaderboard_ResponseData {
|
|
3
|
+
}
|