@valpro-labs/valorant-api 1.0.1 → 1.0.3
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/LICENSE +21 -21
- package/README.md +44 -44
- package/dist/endpoints/AgentsEndpoints.d.ts +1 -161
- package/dist/endpoints/AgentsEndpoints.js +6 -66
- package/dist/endpoints/BuddiesEndpoints.d.ts +1 -45
- package/dist/endpoints/BuddiesEndpoints.js +1 -19
- package/dist/endpoints/BundlesEndpoints.d.ts +1 -29
- package/dist/endpoints/BundlesEndpoints.js +1 -16
- package/dist/endpoints/CompetitiveTiersEndpoints.d.ts +1 -50
- package/dist/endpoints/CompetitiveTiersEndpoints.js +1 -21
- package/dist/endpoints/ContentTierEndpoints.d.ts +1 -25
- package/dist/endpoints/ContentTierEndpoints.js +1 -14
- package/dist/endpoints/ContractsEndpoints.d.ts +1 -152
- package/dist/endpoints/ContractsEndpoints.js +1 -40
- package/dist/endpoints/CurrenciesEndpoints.d.ts +1 -21
- package/dist/endpoints/CurrenciesEndpoints.js +1 -12
- package/dist/endpoints/EventsEndpoints.d.ts +1 -19
- package/dist/endpoints/EventsEndpoints.js +1 -11
- package/dist/endpoints/FlexEndpoints.d.ts +1 -17
- package/dist/endpoints/FlexEndpoints.js +1 -11
- package/dist/endpoints/GameModesEndpoints.d.ts +1 -63
- package/dist/endpoints/GameModesEndpoints.js +1 -31
- package/dist/endpoints/LevelBordersEndpoints.d.ts +1 -21
- package/dist/endpoints/LevelBordersEndpoints.js +0 -11
- package/dist/endpoints/MapsEndpoints.d.ts +1 -120
- package/dist/endpoints/MapsEndpoints.js +1 -47
- package/dist/endpoints/MissionsEndpoints.d.ts +1 -38
- package/dist/endpoints/MissionsEndpoints.js +1 -20
- package/dist/endpoints/ObjectivesEndpoints.d.ts +1 -13
- package/dist/endpoints/ObjectivesEndpoints.js +1 -8
- package/dist/endpoints/PlayerCardsEndpoints.d.ts +1 -25
- package/dist/endpoints/PlayerCardsEndpoints.js +1 -14
- package/dist/endpoints/PlayerTitlesEndpoints.d.ts +1 -17
- package/dist/endpoints/PlayerTitlesEndpoints.js +1 -10
- package/dist/endpoints/SeasonsEndpoints.d.ts +1 -23
- package/dist/endpoints/SeasonsEndpoints.js +1 -13
- package/dist/endpoints/SpraysEndpoints.d.ts +1 -51
- package/dist/endpoints/SpraysEndpoints.js +1 -24
- package/dist/endpoints/VersionEndpoint.d.ts +1 -12
- package/dist/endpoints/VersionEndpoint.js +1 -12
- package/dist/endpoints/WeaponsEndpoints.d.ts +1 -302
- package/dist/endpoints/WeaponsEndpoints.js +1 -99
- package/dist/endpoints/index.d.ts +21 -0
- package/dist/endpoints/index.js +37 -0
- package/dist/index.d.ts +2 -22
- package/dist/index.js +2 -22
- package/dist/schemas/AgentSchemas.d.ts +161 -0
- package/dist/schemas/AgentSchemas.js +65 -0
- package/dist/schemas/BuddySchemas.d.ts +45 -0
- package/dist/schemas/BuddySchemas.js +21 -0
- package/dist/schemas/BundleSchemas.d.ts +29 -0
- package/dist/schemas/BundleSchemas.js +18 -0
- package/dist/schemas/CompetitiveTierSchemas.d.ts +50 -0
- package/dist/schemas/CompetitiveTierSchemas.js +23 -0
- package/dist/schemas/ContentTierSchemas.d.ts +25 -0
- package/dist/schemas/ContentTierSchemas.js +16 -0
- package/dist/schemas/ContractSchemas.d.ts +152 -0
- package/dist/schemas/ContractSchemas.js +42 -0
- package/dist/schemas/CurrencySchemas.d.ts +21 -0
- package/dist/schemas/CurrencySchemas.js +14 -0
- package/dist/schemas/EventSchemas.d.ts +19 -0
- package/dist/schemas/EventSchemas.js +13 -0
- package/dist/schemas/FlexSchemas.d.ts +17 -0
- package/dist/schemas/FlexSchemas.js +13 -0
- package/dist/schemas/GameModeSchemas.d.ts +63 -0
- package/dist/schemas/GameModeSchemas.js +33 -0
- package/dist/schemas/LevelBorderSchemas.d.ts +21 -0
- package/dist/schemas/LevelBorderSchemas.js +14 -0
- package/dist/schemas/MapSchemas.d.ts +120 -0
- package/dist/schemas/MapSchemas.js +49 -0
- package/dist/schemas/MissionSchemas.d.ts +38 -0
- package/dist/schemas/MissionSchemas.js +22 -0
- package/dist/schemas/ObjectiveSchemas.d.ts +13 -0
- package/dist/schemas/ObjectiveSchemas.js +10 -0
- package/dist/schemas/PlayerCardSchemas.d.ts +25 -0
- package/dist/schemas/PlayerCardSchemas.js +16 -0
- package/dist/schemas/PlayerTitleSchemas.d.ts +17 -0
- package/dist/schemas/PlayerTitleSchemas.js +12 -0
- package/dist/schemas/SeasonSchemas.d.ts +23 -0
- package/dist/schemas/SeasonSchemas.js +15 -0
- package/dist/schemas/SpraySchemas.d.ts +51 -0
- package/dist/schemas/SpraySchemas.js +26 -0
- package/dist/schemas/VersionSchemas.d.ts +12 -0
- package/dist/schemas/VersionSchemas.js +14 -0
- package/dist/schemas/WeaponSchemas.d.ts +302 -0
- package/dist/schemas/WeaponSchemas.js +101 -0
- package/dist/schemas/index.d.ts +21 -0
- package/dist/schemas/index.js +37 -0
- package/package.json +1 -1
|
@@ -1,42 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
3
|
-
|
|
4
|
-
objectiveUuid: z.ZodString;
|
|
5
|
-
value: z.ZodNumber;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export type MissionObjectiveResponse = z.infer<typeof MissionObjectiveSchema>;
|
|
8
|
-
export declare const MissionSchema: z.ZodObject<{
|
|
9
|
-
uuid: z.ZodString;
|
|
10
|
-
displayName: z.ZodString;
|
|
11
|
-
title: z.ZodString;
|
|
12
|
-
type: z.ZodString;
|
|
13
|
-
xpGrant: z.ZodNumber;
|
|
14
|
-
progressToComplete: z.ZodNumber;
|
|
15
|
-
activationDate: z.ZodString;
|
|
16
|
-
expirationDate: z.ZodString;
|
|
17
|
-
assetPath: z.ZodString;
|
|
18
|
-
objectives: z.ZodArray<z.ZodObject<{
|
|
19
|
-
objectiveUuid: z.ZodString;
|
|
20
|
-
value: z.ZodNumber;
|
|
21
|
-
}, z.core.$strip>>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
export declare const MissionsSchema: z.ZodArray<z.ZodObject<{
|
|
24
|
-
uuid: z.ZodString;
|
|
25
|
-
displayName: z.ZodString;
|
|
26
|
-
title: z.ZodString;
|
|
27
|
-
type: z.ZodString;
|
|
28
|
-
xpGrant: z.ZodNumber;
|
|
29
|
-
progressToComplete: z.ZodNumber;
|
|
30
|
-
activationDate: z.ZodString;
|
|
31
|
-
expirationDate: z.ZodString;
|
|
32
|
-
assetPath: z.ZodString;
|
|
33
|
-
objectives: z.ZodArray<z.ZodObject<{
|
|
34
|
-
objectiveUuid: z.ZodString;
|
|
35
|
-
value: z.ZodNumber;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
export type MissionResponse = z.infer<typeof MissionSchema>;
|
|
39
|
-
export type MissionsResponse = z.infer<typeof MissionsSchema>;
|
|
2
|
+
import { MissionResponse, MissionsResponse } from '../schemas';
|
|
40
3
|
declare class MissionsEndpoints extends BaseEndpoint {
|
|
41
4
|
constructor(config?: ValorantApiConfig);
|
|
42
5
|
getMissionsV1(): Promise<MissionsResponse>;
|
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MissionsEndpoints =
|
|
4
|
-
const zod_1 = require("zod");
|
|
3
|
+
exports.MissionsEndpoints = void 0;
|
|
5
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
6
|
-
const SharedSchemas_1 = require("../schemas/SharedSchemas");
|
|
7
|
-
exports.MissionObjectiveSchema = zod_1.z.object({
|
|
8
|
-
objectiveUuid: zod_1.z.string().uuid(),
|
|
9
|
-
value: zod_1.z.number().int(),
|
|
10
|
-
});
|
|
11
|
-
exports.MissionSchema = zod_1.z.object({
|
|
12
|
-
uuid: zod_1.z.string().uuid(),
|
|
13
|
-
displayName: SharedSchemas_1.LocalizedStringSchema,
|
|
14
|
-
title: SharedSchemas_1.LocalizedStringSchema,
|
|
15
|
-
type: zod_1.z.string(),
|
|
16
|
-
xpGrant: zod_1.z.number().int(),
|
|
17
|
-
progressToComplete: zod_1.z.number().int(),
|
|
18
|
-
activationDate: zod_1.z.string().datetime(),
|
|
19
|
-
expirationDate: zod_1.z.string().datetime(),
|
|
20
|
-
assetPath: zod_1.z.string(),
|
|
21
|
-
objectives: zod_1.z.array(exports.MissionObjectiveSchema),
|
|
22
|
-
});
|
|
23
|
-
exports.MissionsSchema = zod_1.z.array(exports.MissionSchema);
|
|
24
5
|
class MissionsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
25
6
|
constructor(config) {
|
|
26
7
|
super(config);
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
3
|
-
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
directive: z.ZodString;
|
|
6
|
-
assetPath: z.ZodString;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export declare const ObjectivesSchema: z.ZodArray<z.ZodObject<{
|
|
9
|
-
uuid: z.ZodString;
|
|
10
|
-
directive: z.ZodString;
|
|
11
|
-
assetPath: z.ZodString;
|
|
12
|
-
}, z.core.$strip>>;
|
|
13
|
-
export type ObjectiveResponse = z.infer<typeof ObjectiveSchema>;
|
|
14
|
-
export type ObjectivesResponse = z.infer<typeof ObjectivesSchema>;
|
|
2
|
+
import { ObjectiveResponse, ObjectivesResponse } from '../schemas';
|
|
15
3
|
declare class ObjectivesEndpoints extends BaseEndpoint {
|
|
16
4
|
constructor(config?: ValorantApiConfig);
|
|
17
5
|
getObjectivesV1(): Promise<ObjectivesResponse>;
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectivesEndpoints =
|
|
4
|
-
const zod_1 = require("zod");
|
|
3
|
+
exports.ObjectivesEndpoints = void 0;
|
|
5
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
6
|
-
exports.ObjectiveSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
directive: zod_1.z.string(),
|
|
9
|
-
assetPath: zod_1.z.string(),
|
|
10
|
-
});
|
|
11
|
-
exports.ObjectivesSchema = zod_1.z.array(exports.ObjectiveSchema);
|
|
12
5
|
class ObjectivesEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
13
6
|
constructor(config) {
|
|
14
7
|
super(config);
|
|
@@ -1,29 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
3
|
-
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
displayName: z.ZodString;
|
|
6
|
-
isHiddenIfNotOwned: z.ZodBoolean;
|
|
7
|
-
themeUuid: z.ZodString;
|
|
8
|
-
displayIcon: z.ZodString;
|
|
9
|
-
smallArt: z.ZodString;
|
|
10
|
-
wideArt: z.ZodString;
|
|
11
|
-
largeArt: z.ZodString;
|
|
12
|
-
assetPath: z.ZodString;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export declare const PlayerCardsSchema: z.ZodArray<z.ZodObject<{
|
|
15
|
-
uuid: z.ZodString;
|
|
16
|
-
displayName: z.ZodString;
|
|
17
|
-
isHiddenIfNotOwned: z.ZodBoolean;
|
|
18
|
-
themeUuid: z.ZodString;
|
|
19
|
-
displayIcon: z.ZodString;
|
|
20
|
-
smallArt: z.ZodString;
|
|
21
|
-
wideArt: z.ZodString;
|
|
22
|
-
largeArt: z.ZodString;
|
|
23
|
-
assetPath: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
export type PlayerCardResponse = z.infer<typeof PlayerCardSchema>;
|
|
26
|
-
export type PlayerCardsResponse = z.infer<typeof PlayerCardsSchema>;
|
|
2
|
+
import { PlayerCardResponse, PlayerCardsResponse } from '../schemas';
|
|
27
3
|
declare class PlayerCardsEndpoints extends BaseEndpoint {
|
|
28
4
|
constructor(config?: ValorantApiConfig);
|
|
29
5
|
getPlayerCardsV1(): Promise<PlayerCardsResponse>;
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlayerCardsEndpoints =
|
|
4
|
-
const zod_1 = require("zod");
|
|
3
|
+
exports.PlayerCardsEndpoints = void 0;
|
|
5
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
6
|
-
exports.PlayerCardSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
displayName: zod_1.z.string(),
|
|
9
|
-
isHiddenIfNotOwned: zod_1.z.boolean(),
|
|
10
|
-
themeUuid: zod_1.z.string().uuid(),
|
|
11
|
-
displayIcon: zod_1.z.string(),
|
|
12
|
-
smallArt: zod_1.z.string(),
|
|
13
|
-
wideArt: zod_1.z.string(),
|
|
14
|
-
largeArt: zod_1.z.string(),
|
|
15
|
-
assetPath: zod_1.z.string(),
|
|
16
|
-
});
|
|
17
|
-
exports.PlayerCardsSchema = zod_1.z.array(exports.PlayerCardSchema);
|
|
18
5
|
class PlayerCardsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
19
6
|
constructor(config) {
|
|
20
7
|
super(config);
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
3
|
-
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
displayName: z.ZodString;
|
|
6
|
-
titleText: z.ZodString;
|
|
7
|
-
isHiddenIfNotOwned: z.ZodBoolean;
|
|
8
|
-
assetPath: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export declare const PlayerTitlesSchema: z.ZodArray<z.ZodObject<{
|
|
11
|
-
uuid: z.ZodString;
|
|
12
|
-
displayName: z.ZodString;
|
|
13
|
-
titleText: z.ZodString;
|
|
14
|
-
isHiddenIfNotOwned: z.ZodBoolean;
|
|
15
|
-
assetPath: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
export type PlayerTitleResponse = z.infer<typeof PlayerTitleSchema>;
|
|
18
|
-
export type PlayerTitlesResponse = z.infer<typeof PlayerTitlesSchema>;
|
|
2
|
+
import { PlayerTitleResponse, PlayerTitlesResponse } from '../schemas';
|
|
19
3
|
declare class PlayerTitlesEndpoints extends BaseEndpoint {
|
|
20
4
|
constructor(config?: ValorantApiConfig);
|
|
21
5
|
getPlayerTitlesV1(): Promise<PlayerTitlesResponse>;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlayerTitlesEndpoints =
|
|
4
|
-
const zod_1 = require("zod");
|
|
3
|
+
exports.PlayerTitlesEndpoints = void 0;
|
|
5
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
6
|
-
exports.PlayerTitleSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
displayName: zod_1.z.string(),
|
|
9
|
-
titleText: zod_1.z.string(),
|
|
10
|
-
isHiddenIfNotOwned: zod_1.z.boolean(),
|
|
11
|
-
assetPath: zod_1.z.string(),
|
|
12
|
-
});
|
|
13
|
-
exports.PlayerTitlesSchema = zod_1.z.array(exports.PlayerTitleSchema);
|
|
14
5
|
class PlayerTitlesEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
15
6
|
constructor(config) {
|
|
16
7
|
super(config);
|
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
3
|
-
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
displayName: z.ZodString;
|
|
6
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
startTime: z.ZodString;
|
|
9
|
-
endTime: z.ZodString;
|
|
10
|
-
parentUuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
-
assetPath: z.ZodString;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export declare const SeasonsSchema: z.ZodArray<z.ZodObject<{
|
|
14
|
-
uuid: z.ZodString;
|
|
15
|
-
displayName: z.ZodString;
|
|
16
|
-
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
-
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
18
|
-
startTime: z.ZodString;
|
|
19
|
-
endTime: z.ZodString;
|
|
20
|
-
parentUuid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
-
assetPath: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>;
|
|
23
|
-
export type SeasonResponse = z.infer<typeof SeasonSchema>;
|
|
24
|
-
export type SeasonsResponse = z.infer<typeof SeasonsSchema>;
|
|
2
|
+
import { SeasonResponse, SeasonsResponse } from '../schemas';
|
|
25
3
|
declare class SeasonsEndpoints extends BaseEndpoint {
|
|
26
4
|
constructor(config?: ValorantApiConfig);
|
|
27
5
|
/**
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeasonsEndpoints =
|
|
4
|
-
const zod_1 = require("zod");
|
|
3
|
+
exports.SeasonsEndpoints = void 0;
|
|
5
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
6
|
-
exports.SeasonSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
displayName: zod_1.z.string(),
|
|
9
|
-
title: zod_1.z.string().optional().nullable(),
|
|
10
|
-
type: zod_1.z.string().optional().nullable(),
|
|
11
|
-
startTime: zod_1.z.string(),
|
|
12
|
-
endTime: zod_1.z.string(),
|
|
13
|
-
parentUuid: zod_1.z.string().uuid().optional().nullable(),
|
|
14
|
-
assetPath: zod_1.z.string(),
|
|
15
|
-
});
|
|
16
|
-
exports.SeasonsSchema = zod_1.z.array(exports.SeasonSchema);
|
|
17
5
|
class SeasonsEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
18
6
|
constructor(config) {
|
|
19
7
|
super(config);
|
|
@@ -1,55 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
3
|
-
|
|
4
|
-
uuid: z.ZodString;
|
|
5
|
-
sprayUuid: z.ZodString;
|
|
6
|
-
displayName: z.ZodString;
|
|
7
|
-
displayIcon: z.ZodNullable<z.ZodString>;
|
|
8
|
-
assetPath: z.ZodString;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export type SprayLevelResponse = z.infer<typeof SprayLevelSchema>;
|
|
11
|
-
export declare const SpraySchema: z.ZodObject<{
|
|
12
|
-
uuid: z.ZodString;
|
|
13
|
-
displayName: z.ZodString;
|
|
14
|
-
category: z.ZodNullable<z.ZodString>;
|
|
15
|
-
themeUuid: z.ZodNullable<z.ZodString>;
|
|
16
|
-
isNull: z.ZodBoolean;
|
|
17
|
-
displayIcon: z.ZodNullable<z.ZodString>;
|
|
18
|
-
fullIcon: z.ZodNullable<z.ZodString>;
|
|
19
|
-
fullTransparentIcon: z.ZodNullable<z.ZodString>;
|
|
20
|
-
animationPng: z.ZodNullable<z.ZodString>;
|
|
21
|
-
animationGif: z.ZodNullable<z.ZodString>;
|
|
22
|
-
assetPath: z.ZodString;
|
|
23
|
-
levels: z.ZodArray<z.ZodObject<{
|
|
24
|
-
uuid: z.ZodString;
|
|
25
|
-
sprayUuid: z.ZodString;
|
|
26
|
-
displayName: z.ZodString;
|
|
27
|
-
displayIcon: z.ZodNullable<z.ZodString>;
|
|
28
|
-
assetPath: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
export declare const SpraysSchema: z.ZodArray<z.ZodObject<{
|
|
32
|
-
uuid: z.ZodString;
|
|
33
|
-
displayName: z.ZodString;
|
|
34
|
-
category: z.ZodNullable<z.ZodString>;
|
|
35
|
-
themeUuid: z.ZodNullable<z.ZodString>;
|
|
36
|
-
isNull: z.ZodBoolean;
|
|
37
|
-
displayIcon: z.ZodNullable<z.ZodString>;
|
|
38
|
-
fullIcon: z.ZodNullable<z.ZodString>;
|
|
39
|
-
fullTransparentIcon: z.ZodNullable<z.ZodString>;
|
|
40
|
-
animationPng: z.ZodNullable<z.ZodString>;
|
|
41
|
-
animationGif: z.ZodNullable<z.ZodString>;
|
|
42
|
-
assetPath: z.ZodString;
|
|
43
|
-
levels: z.ZodArray<z.ZodObject<{
|
|
44
|
-
uuid: z.ZodString;
|
|
45
|
-
sprayUuid: z.ZodString;
|
|
46
|
-
displayName: z.ZodString;
|
|
47
|
-
displayIcon: z.ZodNullable<z.ZodString>;
|
|
48
|
-
assetPath: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
}, z.core.$strip>>;
|
|
51
|
-
export type SprayResponse = z.infer<typeof SpraySchema>;
|
|
52
|
-
export type SpraysResponse = z.infer<typeof SpraysSchema>;
|
|
2
|
+
import { SprayResponse, SpraysResponse } from '../schemas';
|
|
53
3
|
declare class SpraysEndpoints extends BaseEndpoint {
|
|
54
4
|
constructor(config?: ValorantApiConfig);
|
|
55
5
|
getSpraysV1(): Promise<SpraysResponse>;
|
|
@@ -1,30 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SpraysEndpoints =
|
|
4
|
-
const zod_1 = require("zod");
|
|
3
|
+
exports.SpraysEndpoints = void 0;
|
|
5
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
6
|
-
exports.SprayLevelSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
sprayUuid: zod_1.z.string().uuid(),
|
|
9
|
-
displayName: zod_1.z.string(),
|
|
10
|
-
displayIcon: zod_1.z.string().nullable(),
|
|
11
|
-
assetPath: zod_1.z.string(),
|
|
12
|
-
});
|
|
13
|
-
exports.SpraySchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
|
15
|
-
displayName: zod_1.z.string(),
|
|
16
|
-
category: zod_1.z.string().nullable(),
|
|
17
|
-
themeUuid: zod_1.z.string().uuid().nullable(),
|
|
18
|
-
isNull: zod_1.z.boolean(),
|
|
19
|
-
displayIcon: zod_1.z.string().nullable(),
|
|
20
|
-
fullIcon: zod_1.z.string().nullable(),
|
|
21
|
-
fullTransparentIcon: zod_1.z.string().nullable(),
|
|
22
|
-
animationPng: zod_1.z.string().nullable(),
|
|
23
|
-
animationGif: zod_1.z.string().nullable(),
|
|
24
|
-
assetPath: zod_1.z.string(),
|
|
25
|
-
levels: zod_1.z.array(exports.SprayLevelSchema),
|
|
26
|
-
});
|
|
27
|
-
exports.SpraysSchema = zod_1.z.array(exports.SpraySchema);
|
|
28
5
|
class SpraysEndpoints extends BaseEndpoint_1.BaseEndpoint {
|
|
29
6
|
constructor(config) {
|
|
30
7
|
super(config);
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { BaseEndpoint, ValorantApiConfig } from './BaseEndpoint';
|
|
3
|
-
|
|
4
|
-
manifestId: z.ZodString;
|
|
5
|
-
branch: z.ZodString;
|
|
6
|
-
version: z.ZodString;
|
|
7
|
-
buildVersion: z.ZodString;
|
|
8
|
-
engineVersion: z.ZodString;
|
|
9
|
-
riotClientVersion: z.ZodString;
|
|
10
|
-
riotClientBuild: z.ZodString;
|
|
11
|
-
buildDate: z.ZodPipe<z.ZodString, z.ZodCoercedDate<string>>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type VersionResponse = z.infer<typeof VersionSchema>;
|
|
2
|
+
import { VersionResponse } from '../schemas';
|
|
14
3
|
declare class VersionEndpoint extends BaseEndpoint {
|
|
15
4
|
constructor(config?: ValorantApiConfig);
|
|
16
5
|
getVersionV1(): Promise<VersionResponse>;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VersionEndpoint =
|
|
4
|
-
const zod_1 = require("zod");
|
|
3
|
+
exports.VersionEndpoint = void 0;
|
|
5
4
|
const BaseEndpoint_1 = require("./BaseEndpoint");
|
|
6
|
-
exports.VersionSchema = zod_1.z.object({
|
|
7
|
-
manifestId: zod_1.z.string(),
|
|
8
|
-
branch: zod_1.z.string(),
|
|
9
|
-
version: zod_1.z.string(),
|
|
10
|
-
buildVersion: zod_1.z.string(),
|
|
11
|
-
engineVersion: zod_1.z.string(),
|
|
12
|
-
riotClientVersion: zod_1.z.string(),
|
|
13
|
-
riotClientBuild: zod_1.z.string(),
|
|
14
|
-
buildDate: zod_1.z.string().datetime().pipe(zod_1.z.coerce.date()),
|
|
15
|
-
});
|
|
16
5
|
class VersionEndpoint extends BaseEndpoint_1.BaseEndpoint {
|
|
17
6
|
constructor(config) {
|
|
18
7
|
super(config);
|