@valpro-labs/valorant-api 1.2.0 → 1.3.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/dist/ValorantApi.d.ts +45 -0
- package/dist/ValorantApi.js +48 -0
- package/dist/endpoints/AgentsEndpoints.d.ts +13 -0
- package/dist/endpoints/AgentsEndpoints.js +13 -0
- package/dist/endpoints/BaseEndpoint.d.ts +22 -0
- package/dist/endpoints/BaseEndpoint.js +14 -0
- package/dist/endpoints/BuddiesEndpoints.d.ts +17 -0
- package/dist/endpoints/BuddiesEndpoints.js +17 -0
- package/dist/endpoints/BundlesEndpoints.d.ts +12 -0
- package/dist/endpoints/BundlesEndpoints.js +12 -0
- package/dist/endpoints/CeremoniesEndpoints.d.ts +20 -0
- package/dist/endpoints/CeremoniesEndpoints.js +28 -0
- package/dist/endpoints/CompetitiveTiersEndpoints.d.ts +12 -0
- package/dist/endpoints/CompetitiveTiersEndpoints.js +12 -0
- package/dist/endpoints/ContentTierEndpoints.d.ts +12 -0
- package/dist/endpoints/ContentTierEndpoints.js +12 -0
- package/dist/endpoints/ContractsEndpoints.d.ts +8 -5
- package/dist/endpoints/ContractsEndpoints.js +8 -5
- package/dist/endpoints/CurrenciesEndpoints.d.ts +12 -0
- package/dist/endpoints/CurrenciesEndpoints.js +12 -0
- package/dist/endpoints/EventsEndpoints.d.ts +8 -5
- package/dist/endpoints/EventsEndpoints.js +8 -5
- package/dist/endpoints/FlexEndpoints.d.ts +12 -0
- package/dist/endpoints/FlexEndpoints.js +12 -0
- package/dist/endpoints/GameModesEndpoints.d.ts +24 -1
- package/dist/endpoints/GameModesEndpoints.js +27 -0
- package/dist/endpoints/GearEndpoints.d.ts +20 -0
- package/dist/endpoints/GearEndpoints.js +28 -0
- package/dist/endpoints/LevelBordersEndpoints.d.ts +12 -0
- package/dist/endpoints/LevelBordersEndpoints.js +12 -0
- package/dist/endpoints/MapsEndpoints.d.ts +12 -0
- package/dist/endpoints/MapsEndpoints.js +12 -0
- package/dist/endpoints/MissionsEndpoints.d.ts +12 -0
- package/dist/endpoints/MissionsEndpoints.js +12 -0
- package/dist/endpoints/ObjectivesEndpoints.d.ts +12 -0
- package/dist/endpoints/ObjectivesEndpoints.js +12 -0
- package/dist/endpoints/PlayerCardsEndpoints.d.ts +12 -0
- package/dist/endpoints/PlayerCardsEndpoints.js +12 -0
- package/dist/endpoints/PlayerTitlesEndpoints.d.ts +12 -0
- package/dist/endpoints/PlayerTitlesEndpoints.js +12 -0
- package/dist/endpoints/SeasonsEndpoints.d.ts +13 -10
- package/dist/endpoints/SeasonsEndpoints.js +13 -10
- package/dist/endpoints/SpraysEndpoints.d.ts +19 -1
- package/dist/endpoints/SpraysEndpoints.js +20 -0
- package/dist/endpoints/ThemesEndpoints.d.ts +20 -0
- package/dist/endpoints/ThemesEndpoints.js +28 -0
- package/dist/endpoints/VersionEndpoint.d.ts +7 -0
- package/dist/endpoints/VersionEndpoint.js +7 -0
- package/dist/endpoints/WeaponsEndpoints.d.ts +36 -1
- package/dist/endpoints/WeaponsEndpoints.js +43 -0
- package/dist/endpoints/index.d.ts +3 -0
- package/dist/endpoints/index.js +3 -0
- package/dist/schemas/AgentSchemas.d.ts +14 -0
- package/dist/schemas/AgentSchemas.js +7 -0
- package/dist/schemas/BuddySchemas.d.ts +8 -0
- package/dist/schemas/BuddySchemas.js +4 -0
- package/dist/schemas/BundleSchemas.d.ts +6 -0
- package/dist/schemas/BundleSchemas.js +3 -0
- package/dist/schemas/CeremonySchemas.d.ts +17 -0
- package/dist/schemas/CeremonySchemas.js +12 -0
- package/dist/schemas/CompetitiveTierSchemas.d.ts +6 -0
- package/dist/schemas/CompetitiveTierSchemas.js +3 -0
- package/dist/schemas/ContentTierSchemas.d.ts +4 -0
- package/dist/schemas/ContentTierSchemas.js +2 -0
- package/dist/schemas/ContractSchemas.d.ts +12 -0
- package/dist/schemas/ContractSchemas.js +6 -0
- package/dist/schemas/CurrencySchemas.d.ts +4 -0
- package/dist/schemas/CurrencySchemas.js +2 -0
- package/dist/schemas/EventSchemas.d.ts +4 -0
- package/dist/schemas/EventSchemas.js +2 -0
- package/dist/schemas/FlexSchemas.d.ts +4 -0
- package/dist/schemas/FlexSchemas.js +2 -0
- package/dist/schemas/GameModeEquippableSchemas.d.ts +23 -0
- package/dist/schemas/GameModeEquippableSchemas.js +16 -0
- package/dist/schemas/GameModeSchemas.d.ts +8 -0
- package/dist/schemas/GameModeSchemas.js +4 -0
- package/dist/schemas/GearSchemas.d.ts +69 -0
- package/dist/schemas/GearSchemas.js +30 -0
- package/dist/schemas/LevelBorderSchemas.d.ts +4 -0
- package/dist/schemas/LevelBorderSchemas.js +2 -0
- package/dist/schemas/MapSchemas.d.ts +12 -0
- package/dist/schemas/MapSchemas.js +6 -0
- package/dist/schemas/MissionSchemas.d.ts +6 -0
- package/dist/schemas/MissionSchemas.js +3 -0
- package/dist/schemas/ObjectiveSchemas.d.ts +4 -0
- package/dist/schemas/ObjectiveSchemas.js +2 -0
- package/dist/schemas/PlayerCardSchemas.d.ts +4 -0
- package/dist/schemas/PlayerCardSchemas.js +2 -0
- package/dist/schemas/PlayerTitleSchemas.d.ts +4 -0
- package/dist/schemas/PlayerTitleSchemas.js +2 -0
- package/dist/schemas/SeasonSchemas.d.ts +10 -0
- package/dist/schemas/SeasonSchemas.js +5 -0
- package/dist/schemas/SharedSchemas.d.ts +2 -0
- package/dist/schemas/SharedSchemas.js +1 -0
- package/dist/schemas/SpraySchemas.d.ts +6 -0
- package/dist/schemas/SpraySchemas.js +3 -0
- package/dist/schemas/ThemeSchemas.d.ts +21 -0
- package/dist/schemas/ThemeSchemas.js +14 -0
- package/dist/schemas/VersionSchemas.d.ts +2 -0
- package/dist/schemas/VersionSchemas.js +1 -0
- package/dist/schemas/WeaponSchemas.d.ts +26 -0
- package/dist/schemas/WeaponSchemas.js +13 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.js +4 -0
- package/package.json +1 -1
|
@@ -2,21 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EventsEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API events endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class EventsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
9
12
|
/**
|
|
10
|
-
* Get all events
|
|
11
|
-
* @returns
|
|
13
|
+
* Get all events.
|
|
14
|
+
* @returns An array of {@link EventResponse} objects.
|
|
12
15
|
*/
|
|
13
16
|
async getEventsV1() {
|
|
14
17
|
return this.requestValorantApi('v1/events');
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
|
-
* Get event by UUID
|
|
18
|
-
* @param uuid
|
|
19
|
-
* @returns
|
|
20
|
+
* Get an event by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the event.
|
|
22
|
+
* @returns The {@link EventResponse} matching the given UUID.
|
|
20
23
|
*/
|
|
21
24
|
async getEventByUuidV1(uuid) {
|
|
22
25
|
return this.requestValorantApi(`v1/events/${uuid}`);
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { FlexResponse, FlexsResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API flex endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class FlexEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all flex items.
|
|
10
|
+
* @returns An array of {@link FlexResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getFlexV1(): Promise<FlexsResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a flex item by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the flex item.
|
|
16
|
+
* @returns The {@link FlexResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getFlexByUuidV1(uuid: string): Promise<FlexResponse>;
|
|
7
19
|
}
|
|
8
20
|
export { FlexEndpoints };
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FlexEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API flex endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class FlexEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all flex items.
|
|
14
|
+
* @returns An array of {@link FlexResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getFlexV1() {
|
|
10
17
|
return this.requestValorantApi('v1/flex');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a flex item by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the flex item.
|
|
22
|
+
* @returns The {@link FlexResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getFlexByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/flex/${uuid}`);
|
|
14
26
|
}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
|
-
import { GameModeResponse, GameModesResponse } from '../schemas';
|
|
2
|
+
import { GameModeResponse, GameModesResponse, GameModeEquippableResponse, GameModeEquippablesResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API game modes endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class GameModesEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all game modes.
|
|
10
|
+
* @returns An array of {@link GameModeResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getGameModesV1(): Promise<GameModesResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a game mode by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the game mode.
|
|
16
|
+
* @returns The {@link GameModeResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getGameModeByUuidV1(uuid: string): Promise<GameModeResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get all game mode equippables.
|
|
21
|
+
* @returns An array of {@link GameModeEquippableResponse} objects.
|
|
22
|
+
*/
|
|
23
|
+
getGameModeEquippablesV1(): Promise<GameModeEquippablesResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Get a game mode equippable by its UUID.
|
|
26
|
+
* @param uuid - The UUID of the game mode equippable.
|
|
27
|
+
* @returns The {@link GameModeEquippableResponse} matching the given UUID.
|
|
28
|
+
*/
|
|
29
|
+
getGameModeEquippableByUuidV1(uuid: string): Promise<GameModeEquippableResponse>;
|
|
7
30
|
}
|
|
8
31
|
export { GameModesEndpoints };
|
|
@@ -2,15 +2,42 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GameModesEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API game modes endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class GameModesEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all game modes.
|
|
14
|
+
* @returns An array of {@link GameModeResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getGameModesV1() {
|
|
10
17
|
return this.requestValorantApi('v1/gamemodes');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a game mode by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the game mode.
|
|
22
|
+
* @returns The {@link GameModeResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getGameModeByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/gamemodes/${uuid}`);
|
|
14
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Get all game mode equippables.
|
|
29
|
+
* @returns An array of {@link GameModeEquippableResponse} objects.
|
|
30
|
+
*/
|
|
31
|
+
async getGameModeEquippablesV1() {
|
|
32
|
+
return this.requestValorantApi('v1/gamemodes/equippables');
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get a game mode equippable by its UUID.
|
|
36
|
+
* @param uuid - The UUID of the game mode equippable.
|
|
37
|
+
* @returns The {@link GameModeEquippableResponse} matching the given UUID.
|
|
38
|
+
*/
|
|
39
|
+
async getGameModeEquippableByUuidV1(uuid) {
|
|
40
|
+
return this.requestValorantApi(`v1/gamemodes/equippables/${uuid}`);
|
|
41
|
+
}
|
|
15
42
|
}
|
|
16
43
|
exports.GameModesEndpoints = GameModesEndpoints;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
|
+
import { GearResponse, GearsResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API gear endpoints (armor items like shields).
|
|
5
|
+
*/
|
|
6
|
+
declare class GearEndpoints extends BaseEndpoint {
|
|
7
|
+
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all gear.
|
|
10
|
+
* @returns An array of {@link GearResponse} objects.
|
|
11
|
+
*/
|
|
12
|
+
getGearV1(): Promise<GearsResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a gear item by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the gear item.
|
|
16
|
+
* @returns The {@link GearResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
18
|
+
getGearByUuidV1(uuid: string): Promise<GearResponse>;
|
|
19
|
+
}
|
|
20
|
+
export { GearEndpoints };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GearEndpoints = void 0;
|
|
4
|
+
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API gear endpoints (armor items like shields).
|
|
7
|
+
*/
|
|
8
|
+
class GearEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
9
|
+
constructor(config) {
|
|
10
|
+
super(config);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all gear.
|
|
14
|
+
* @returns An array of {@link GearResponse} objects.
|
|
15
|
+
*/
|
|
16
|
+
async getGearV1() {
|
|
17
|
+
return this.requestValorantApi('v1/gear');
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a gear item by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the gear item.
|
|
22
|
+
* @returns The {@link GearResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
24
|
+
async getGearByUuidV1(uuid) {
|
|
25
|
+
return this.requestValorantApi(`v1/gear/${uuid}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GearEndpoints = GearEndpoints;
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { LevelBorderResponse, LevelBordersResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API level borders endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class LevelBordersEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all level borders.
|
|
10
|
+
* @returns An array of {@link LevelBorderResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getLevelBordersV1(): Promise<LevelBordersResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a level border by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the level border.
|
|
16
|
+
* @returns The {@link LevelBorderResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getLevelBorderByUuidV1(uuid: string): Promise<LevelBorderResponse>;
|
|
7
19
|
}
|
|
8
20
|
export { LevelBordersEndpoints };
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LevelBordersEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API level borders endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class LevelBordersEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all level borders.
|
|
14
|
+
* @returns An array of {@link LevelBorderResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getLevelBordersV1() {
|
|
10
17
|
return this.requestValorantApi('v1/levelborders');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a level border by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the level border.
|
|
22
|
+
* @returns The {@link LevelBorderResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getLevelBorderByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/levelborders/${uuid}`);
|
|
14
26
|
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { MapResponse, MapsResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API maps endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class MapsEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all maps.
|
|
10
|
+
* @returns An array of {@link MapResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getMapsV1(): Promise<MapsResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a map by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the map.
|
|
16
|
+
* @returns The {@link MapResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getMapByUuidV1(uuid: string): Promise<MapResponse>;
|
|
7
19
|
}
|
|
8
20
|
export { MapsEndpoints };
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MapsEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API maps endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class MapsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all maps.
|
|
14
|
+
* @returns An array of {@link MapResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getMapsV1() {
|
|
10
17
|
return this.requestValorantApi('v1/maps');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a map by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the map.
|
|
22
|
+
* @returns The {@link MapResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getMapByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/maps/${uuid}`);
|
|
14
26
|
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { MissionResponse, MissionsResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API missions endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class MissionsEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all missions.
|
|
10
|
+
* @returns An array of {@link MissionResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getMissionsV1(): Promise<MissionsResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a mission by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the mission.
|
|
16
|
+
* @returns The {@link MissionResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getMissionByUuidV1(uuid: string): Promise<MissionResponse>;
|
|
7
19
|
}
|
|
8
20
|
export { MissionsEndpoints };
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MissionsEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API missions endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class MissionsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all missions.
|
|
14
|
+
* @returns An array of {@link MissionResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getMissionsV1() {
|
|
10
17
|
return this.requestValorantApi('v1/missions');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a mission by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the mission.
|
|
22
|
+
* @returns The {@link MissionResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getMissionByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/missions/${uuid}`);
|
|
14
26
|
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { ObjectiveResponse, ObjectivesResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API objectives endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class ObjectivesEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all objectives.
|
|
10
|
+
* @returns An array of {@link ObjectiveResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getObjectivesV1(): Promise<ObjectivesResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get an objective by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the objective.
|
|
16
|
+
* @returns The {@link ObjectiveResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getObjectiveByUuidV1(uuid: string): Promise<ObjectiveResponse>;
|
|
7
19
|
}
|
|
8
20
|
export { ObjectivesEndpoints };
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ObjectivesEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API objectives endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class ObjectivesEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all objectives.
|
|
14
|
+
* @returns An array of {@link ObjectiveResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getObjectivesV1() {
|
|
10
17
|
return this.requestValorantApi('v1/objectives');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get an objective by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the objective.
|
|
22
|
+
* @returns The {@link ObjectiveResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getObjectiveByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/objectives/${uuid}`);
|
|
14
26
|
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { PlayerCardResponse, PlayerCardsResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API player cards endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class PlayerCardsEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all player cards.
|
|
10
|
+
* @returns An array of {@link PlayerCardResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getPlayerCardsV1(): Promise<PlayerCardsResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a player card by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the player card.
|
|
16
|
+
* @returns The {@link PlayerCardResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getPlayerCardByUuidV1(uuid: string): Promise<PlayerCardResponse>;
|
|
7
19
|
}
|
|
8
20
|
export { PlayerCardsEndpoints };
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlayerCardsEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API player cards endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class PlayerCardsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all player cards.
|
|
14
|
+
* @returns An array of {@link PlayerCardResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getPlayerCardsV1() {
|
|
10
17
|
return this.requestValorantApi('v1/playercards');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a player card by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the player card.
|
|
22
|
+
* @returns The {@link PlayerCardResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getPlayerCardByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/playercards/${uuid}`);
|
|
14
26
|
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { PlayerTitleResponse, PlayerTitlesResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API player titles endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class PlayerTitlesEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all player titles.
|
|
10
|
+
* @returns An array of {@link PlayerTitleResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getPlayerTitlesV1(): Promise<PlayerTitlesResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a player title by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the player title.
|
|
16
|
+
* @returns The {@link PlayerTitleResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getPlayerTitleByUuidV1(uuid: string): Promise<PlayerTitleResponse>;
|
|
7
19
|
}
|
|
8
20
|
export { PlayerTitlesEndpoints };
|
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PlayerTitlesEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API player titles endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class PlayerTitlesEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all player titles.
|
|
14
|
+
* @returns An array of {@link PlayerTitleResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getPlayerTitlesV1() {
|
|
10
17
|
return this.requestValorantApi('v1/playertitles');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a player title by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the player title.
|
|
22
|
+
* @returns The {@link PlayerTitleResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getPlayerTitleByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/playertitles/${uuid}`);
|
|
14
26
|
}
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
2
|
import { SeasonResponse, SeasonsResponse, CompetitiveSeasonResponse, CompetitiveSeasonsResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API seasons endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class SeasonsEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
5
8
|
/**
|
|
6
|
-
* Get all seasons
|
|
7
|
-
* @returns
|
|
9
|
+
* Get all seasons.
|
|
10
|
+
* @returns An array of {@link SeasonResponse} objects.
|
|
8
11
|
*/
|
|
9
12
|
getSeasonsV1(): Promise<SeasonsResponse>;
|
|
10
13
|
/**
|
|
11
|
-
* Get season by UUID
|
|
12
|
-
* @param uuid
|
|
13
|
-
* @returns
|
|
14
|
+
* Get a season by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the season.
|
|
16
|
+
* @returns The {@link SeasonResponse} matching the given UUID.
|
|
14
17
|
*/
|
|
15
18
|
getSeasonByUuidV1(uuid: string): Promise<SeasonResponse>;
|
|
16
19
|
/**
|
|
17
|
-
* Get all competitive seasons
|
|
18
|
-
* @returns
|
|
20
|
+
* Get all competitive seasons.
|
|
21
|
+
* @returns An array of {@link CompetitiveSeasonResponse} objects.
|
|
19
22
|
*/
|
|
20
23
|
getCompetitiveSeasonsV1(): Promise<CompetitiveSeasonsResponse>;
|
|
21
24
|
/**
|
|
22
|
-
* Get competitive season by UUID
|
|
23
|
-
* @param uuid
|
|
24
|
-
* @returns
|
|
25
|
+
* Get a competitive season by its UUID.
|
|
26
|
+
* @param uuid - The UUID of the competitive season.
|
|
27
|
+
* @returns The {@link CompetitiveSeasonResponse} matching the given UUID.
|
|
25
28
|
*/
|
|
26
29
|
getCompetitiveSeasonByUuidV1(uuid: string): Promise<CompetitiveSeasonResponse>;
|
|
27
30
|
}
|
|
@@ -2,36 +2,39 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SeasonsEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API seasons endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class SeasonsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
9
12
|
/**
|
|
10
|
-
* Get all seasons
|
|
11
|
-
* @returns
|
|
13
|
+
* Get all seasons.
|
|
14
|
+
* @returns An array of {@link SeasonResponse} objects.
|
|
12
15
|
*/
|
|
13
16
|
async getSeasonsV1() {
|
|
14
17
|
return this.requestValorantApi('v1/seasons');
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
|
-
* Get season by UUID
|
|
18
|
-
* @param uuid
|
|
19
|
-
* @returns
|
|
20
|
+
* Get a season by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the season.
|
|
22
|
+
* @returns The {@link SeasonResponse} matching the given UUID.
|
|
20
23
|
*/
|
|
21
24
|
async getSeasonByUuidV1(uuid) {
|
|
22
25
|
return this.requestValorantApi(`v1/seasons/${uuid}`);
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
|
-
* Get all competitive seasons
|
|
26
|
-
* @returns
|
|
28
|
+
* Get all competitive seasons.
|
|
29
|
+
* @returns An array of {@link CompetitiveSeasonResponse} objects.
|
|
27
30
|
*/
|
|
28
31
|
async getCompetitiveSeasonsV1() {
|
|
29
32
|
return this.requestValorantApi('v1/seasons/competitive');
|
|
30
33
|
}
|
|
31
34
|
/**
|
|
32
|
-
* Get competitive season by UUID
|
|
33
|
-
* @param uuid
|
|
34
|
-
* @returns
|
|
35
|
+
* Get a competitive season by its UUID.
|
|
36
|
+
* @param uuid - The UUID of the competitive season.
|
|
37
|
+
* @returns The {@link CompetitiveSeasonResponse} matching the given UUID.
|
|
35
38
|
*/
|
|
36
39
|
async getCompetitiveSeasonByUuidV1(uuid) {
|
|
37
40
|
return this.requestValorantApi(`v1/seasons/competitive/${uuid}`);
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
2
|
-
import { SprayResponse, SpraysResponse } from '../schemas';
|
|
2
|
+
import { SprayResponse, SpraysResponse, SprayLevelResponse } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Provides access to the Valorant API sprays endpoints.
|
|
5
|
+
*/
|
|
3
6
|
declare class SpraysEndpoints extends BaseEndpoint {
|
|
4
7
|
constructor(config?: ValorantApiConfig);
|
|
8
|
+
/**
|
|
9
|
+
* Get all sprays.
|
|
10
|
+
* @returns An array of {@link SprayResponse} objects.
|
|
11
|
+
*/
|
|
5
12
|
getSpraysV1(): Promise<SpraysResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get a spray by its UUID.
|
|
15
|
+
* @param uuid - The UUID of the spray.
|
|
16
|
+
* @returns The {@link SprayResponse} matching the given UUID.
|
|
17
|
+
*/
|
|
6
18
|
getSprayByUuidV1(uuid: string): Promise<SprayResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get a spray level by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the spray level.
|
|
22
|
+
* @returns The {@link SprayLevelResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
24
|
+
getSprayLevelByUuidV1(uuid: string): Promise<SprayLevelResponse>;
|
|
7
25
|
}
|
|
8
26
|
export { SpraysEndpoints };
|
|
@@ -2,15 +2,35 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SpraysEndpoints = void 0;
|
|
4
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the Valorant API sprays endpoints.
|
|
7
|
+
*/
|
|
5
8
|
class SpraysEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
6
9
|
constructor(config) {
|
|
7
10
|
super(config);
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Get all sprays.
|
|
14
|
+
* @returns An array of {@link SprayResponse} objects.
|
|
15
|
+
*/
|
|
9
16
|
async getSpraysV1() {
|
|
10
17
|
return this.requestValorantApi('v1/sprays');
|
|
11
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get a spray by its UUID.
|
|
21
|
+
* @param uuid - The UUID of the spray.
|
|
22
|
+
* @returns The {@link SprayResponse} matching the given UUID.
|
|
23
|
+
*/
|
|
12
24
|
async getSprayByUuidV1(uuid) {
|
|
13
25
|
return this.requestValorantApi(`v1/sprays/${uuid}`);
|
|
14
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Get a spray level by its UUID.
|
|
29
|
+
* @param uuid - The UUID of the spray level.
|
|
30
|
+
* @returns The {@link SprayLevelResponse} matching the given UUID.
|
|
31
|
+
*/
|
|
32
|
+
async getSprayLevelByUuidV1(uuid) {
|
|
33
|
+
return this.requestValorantApi(`v1/sprays/levels/${uuid}`);
|
|
34
|
+
}
|
|
15
35
|
}
|
|
16
36
|
exports.SpraysEndpoints = SpraysEndpoints;
|