@rotesblatt/hex-tractor-data-api 2.2.0 → 2.3.1
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.
|
@@ -7,12 +7,12 @@ type LeagueDetails = {
|
|
|
7
7
|
division: string;
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
lastUpdated: string;
|
|
10
|
-
entries: Array<
|
|
10
|
+
entries: Array<LeagueItem>;
|
|
11
11
|
};
|
|
12
|
-
type
|
|
12
|
+
type LeagueItem = {
|
|
13
13
|
freshBlood: boolean;
|
|
14
14
|
wins: number;
|
|
15
|
-
miniSeries?:
|
|
15
|
+
miniSeries?: LeagueMiniseries | undefined;
|
|
16
16
|
inactive: boolean;
|
|
17
17
|
veteran: boolean;
|
|
18
18
|
hotStreak: boolean;
|
|
@@ -22,7 +22,7 @@ type league_v4_LeagueItemDTO = {
|
|
|
22
22
|
puuid: string;
|
|
23
23
|
summonerId?: string | undefined;
|
|
24
24
|
};
|
|
25
|
-
type
|
|
25
|
+
type LeagueMiniseries = {
|
|
26
26
|
losses: number;
|
|
27
27
|
progress: string;
|
|
28
28
|
target: number;
|
|
@@ -38,10 +38,10 @@ type AccountInfo = {
|
|
|
38
38
|
summonerLevel: number;
|
|
39
39
|
lastUpdated: string;
|
|
40
40
|
};
|
|
41
|
-
leagueEntries: Array<
|
|
42
|
-
currentGame?:
|
|
41
|
+
leagueEntries: Array<LeagueEntry>;
|
|
42
|
+
currentGame?: SpectatorCurrentGameInfo | undefined;
|
|
43
43
|
};
|
|
44
|
-
type
|
|
44
|
+
type LeagueEntry = {
|
|
45
45
|
leagueId?: string | undefined;
|
|
46
46
|
puuid: string;
|
|
47
47
|
queueType: string;
|
|
@@ -54,10 +54,10 @@ type league_v4_LeagueEntryDTO = {
|
|
|
54
54
|
veteran: boolean;
|
|
55
55
|
freshBlood: boolean;
|
|
56
56
|
inactive: boolean;
|
|
57
|
-
miniSeries?:
|
|
57
|
+
miniSeries?: LeagueMiniseries | undefined;
|
|
58
58
|
summonerId?: string | undefined;
|
|
59
59
|
};
|
|
60
|
-
type
|
|
60
|
+
type SpectatorCurrentGameInfo = {
|
|
61
61
|
gameId: number;
|
|
62
62
|
gameType: string;
|
|
63
63
|
gameStartTime: number;
|
|
@@ -65,57 +65,50 @@ type spectator_v5_CurrentGameInfo = {
|
|
|
65
65
|
gameLength: number;
|
|
66
66
|
platformId: string;
|
|
67
67
|
gameMode: string;
|
|
68
|
-
bannedChampions: Array<
|
|
68
|
+
bannedChampions: Array<SpectatorBannedChampions>;
|
|
69
69
|
gameQueueConfigId?: number | undefined;
|
|
70
|
-
observers:
|
|
71
|
-
participants: Array<
|
|
70
|
+
observers: SpectatorObserver;
|
|
71
|
+
participants: Array<SpectatorCurrentGameParticipant>;
|
|
72
72
|
};
|
|
73
|
-
type
|
|
73
|
+
type SpectatorBannedChampions = {
|
|
74
74
|
pickTurn: number;
|
|
75
75
|
championId: number;
|
|
76
76
|
teamId: number;
|
|
77
77
|
};
|
|
78
|
-
type
|
|
78
|
+
type SpectatorObserver = {
|
|
79
79
|
encryptionKey: string;
|
|
80
80
|
};
|
|
81
|
-
type
|
|
81
|
+
type SpectatorCurrentGameParticipant = {
|
|
82
82
|
championId: number;
|
|
83
|
-
perks?:
|
|
83
|
+
perks?: SpectatorPerks | undefined;
|
|
84
84
|
profileIconId: number;
|
|
85
85
|
bot: boolean;
|
|
86
86
|
teamId: number;
|
|
87
87
|
puuid?: (string | null) | undefined;
|
|
88
88
|
spell1Id: number;
|
|
89
89
|
spell2Id: number;
|
|
90
|
-
gameCustomizationObjects: Array<
|
|
90
|
+
gameCustomizationObjects: Array<SpectatorGameCustomizationObject>;
|
|
91
91
|
riotId?: string | undefined;
|
|
92
92
|
};
|
|
93
|
-
type
|
|
93
|
+
type SpectatorPerks = {
|
|
94
94
|
perkIds: Array<number>;
|
|
95
95
|
perkStyle: number;
|
|
96
96
|
perkSubStyle: number;
|
|
97
97
|
};
|
|
98
|
-
type
|
|
98
|
+
type SpectatorGameCustomizationObject = {
|
|
99
99
|
category: string;
|
|
100
100
|
content: string;
|
|
101
101
|
};
|
|
102
|
-
type
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
tier: string;
|
|
106
|
-
name?: string | undefined;
|
|
107
|
-
queue: string;
|
|
102
|
+
type Match = {
|
|
103
|
+
metadata: MatchMetadata;
|
|
104
|
+
info: MatchInfo;
|
|
108
105
|
};
|
|
109
|
-
type
|
|
110
|
-
metadata: match_v5_MetadataDto;
|
|
111
|
-
info: match_v5_InfoDto;
|
|
112
|
-
};
|
|
113
|
-
type match_v5_MetadataDto = {
|
|
106
|
+
type MatchMetadata = {
|
|
114
107
|
dataVersion: string;
|
|
115
108
|
matchId: string;
|
|
116
109
|
participants: Array<string>;
|
|
117
110
|
};
|
|
118
|
-
type
|
|
111
|
+
type MatchInfo = {
|
|
119
112
|
endOfGameResult?: string | undefined;
|
|
120
113
|
gameCreation: number;
|
|
121
114
|
gameDuration: number;
|
|
@@ -127,14 +120,14 @@ type match_v5_InfoDto = {
|
|
|
127
120
|
gameType: string;
|
|
128
121
|
gameVersion: string;
|
|
129
122
|
mapId: number;
|
|
130
|
-
participants: Array<
|
|
123
|
+
participants: Array<MatchParticipant>;
|
|
131
124
|
platformId: string;
|
|
132
|
-
queueId:
|
|
133
|
-
teams: Array<
|
|
125
|
+
queueId: QueueId;
|
|
126
|
+
teams: Array<MatchTeam>;
|
|
134
127
|
tournamentCode?: string | undefined;
|
|
135
128
|
gameModeMutators?: Array<string> | undefined;
|
|
136
129
|
};
|
|
137
|
-
type
|
|
130
|
+
type MatchParticipant = {
|
|
138
131
|
allInPings?: number | undefined;
|
|
139
132
|
assistMePings?: number | undefined;
|
|
140
133
|
assists: number;
|
|
@@ -147,7 +140,7 @@ type match_v5_ParticipantDto = {
|
|
|
147
140
|
commandPings?: number | undefined;
|
|
148
141
|
championTransform: number;
|
|
149
142
|
consumablesPurchased: number;
|
|
150
|
-
challenges?:
|
|
143
|
+
challenges?: MatchChallenges | undefined;
|
|
151
144
|
damageDealtToBuildings?: number | undefined;
|
|
152
145
|
damageDealtToObjectives: number;
|
|
153
146
|
damageDealtToTurrets: number;
|
|
@@ -191,7 +184,7 @@ type match_v5_ParticipantDto = {
|
|
|
191
184
|
magicDamageDealt: number;
|
|
192
185
|
magicDamageDealtToChampions: number;
|
|
193
186
|
magicDamageTaken: number;
|
|
194
|
-
missions?:
|
|
187
|
+
missions?: MatchMissions | undefined;
|
|
195
188
|
neutralMinionsKilled: number;
|
|
196
189
|
needVisionPings?: number | undefined;
|
|
197
190
|
nexusKills: number;
|
|
@@ -214,7 +207,7 @@ type match_v5_ParticipantDto = {
|
|
|
214
207
|
playerScore10?: number | undefined;
|
|
215
208
|
playerScore11?: number | undefined;
|
|
216
209
|
pentaKills: number;
|
|
217
|
-
perks:
|
|
210
|
+
perks: MatchPerks;
|
|
218
211
|
physicalDamageDealt: number;
|
|
219
212
|
physicalDamageDealtToChampions: number;
|
|
220
213
|
physicalDamageTaken: number;
|
|
@@ -284,7 +277,7 @@ type match_v5_ParticipantDto = {
|
|
|
284
277
|
retreatPings?: number | undefined;
|
|
285
278
|
championSkinId?: number | undefined;
|
|
286
279
|
};
|
|
287
|
-
type
|
|
280
|
+
type MatchChallenges = Partial<{
|
|
288
281
|
"12AssistStreakCount": number;
|
|
289
282
|
baronBuffGoldAdvantageOverThreshold: number;
|
|
290
283
|
controlWardTimeCoverageInRiverOrEnemyHalf: number;
|
|
@@ -433,7 +426,7 @@ type match_v5_ChallengesDto = Partial<{
|
|
|
433
426
|
wardTakedownsBefore20M: number;
|
|
434
427
|
HealFromMapSources: number;
|
|
435
428
|
}>;
|
|
436
|
-
type
|
|
429
|
+
type MatchMissions = Partial<{
|
|
437
430
|
playerScore0: number;
|
|
438
431
|
playerScore1: number;
|
|
439
432
|
playerScore2: number;
|
|
@@ -447,61 +440,161 @@ type match_v5_MissionsDto = Partial<{
|
|
|
447
440
|
playerScore10: number;
|
|
448
441
|
playerScore11: number;
|
|
449
442
|
}>;
|
|
450
|
-
type
|
|
451
|
-
statPerks:
|
|
452
|
-
styles: Array<
|
|
443
|
+
type MatchPerks = {
|
|
444
|
+
statPerks: MatchPerkStats;
|
|
445
|
+
styles: Array<MatchPerkStyle>;
|
|
453
446
|
};
|
|
454
|
-
type
|
|
447
|
+
type MatchPerkStats = {
|
|
455
448
|
defense: number;
|
|
456
449
|
flex: number;
|
|
457
450
|
offense: number;
|
|
458
451
|
};
|
|
459
|
-
type
|
|
452
|
+
type MatchPerkStyle = {
|
|
460
453
|
description: string;
|
|
461
|
-
selections: Array<
|
|
454
|
+
selections: Array<MatchPerkStyleSelection>;
|
|
462
455
|
style: number;
|
|
463
456
|
};
|
|
464
|
-
type
|
|
457
|
+
type MatchPerkStyleSelection = {
|
|
465
458
|
perk: number;
|
|
466
459
|
var1: number;
|
|
467
460
|
var2: number;
|
|
468
461
|
var3: number;
|
|
469
462
|
};
|
|
470
|
-
type
|
|
471
|
-
|
|
472
|
-
|
|
463
|
+
type QueueId =
|
|
464
|
+
| 0
|
|
465
|
+
| 2
|
|
466
|
+
| 4
|
|
467
|
+
| 6
|
|
468
|
+
| 7
|
|
469
|
+
| 8
|
|
470
|
+
| 9
|
|
471
|
+
| 14
|
|
472
|
+
| 16
|
|
473
|
+
| 17
|
|
474
|
+
| 25
|
|
475
|
+
| 31
|
|
476
|
+
| 32
|
|
477
|
+
| 33
|
|
478
|
+
| 41
|
|
479
|
+
| 42
|
|
480
|
+
| 52
|
|
481
|
+
| 61
|
|
482
|
+
| 65
|
|
483
|
+
| 67
|
|
484
|
+
| 70
|
|
485
|
+
| 72
|
|
486
|
+
| 73
|
|
487
|
+
| 75
|
|
488
|
+
| 76
|
|
489
|
+
| 78
|
|
490
|
+
| 83
|
|
491
|
+
| 91
|
|
492
|
+
| 92
|
|
493
|
+
| 93
|
|
494
|
+
| 96
|
|
495
|
+
| 98
|
|
496
|
+
| 100
|
|
497
|
+
| 300
|
|
498
|
+
| 310
|
|
499
|
+
| 313
|
|
500
|
+
| 315
|
|
501
|
+
| 317
|
|
502
|
+
| 318
|
|
503
|
+
| 325
|
|
504
|
+
| 400
|
|
505
|
+
| 410
|
|
506
|
+
| 420
|
|
507
|
+
| 430
|
|
508
|
+
| 440
|
|
509
|
+
| 450
|
|
510
|
+
| 460
|
|
511
|
+
| 470
|
|
512
|
+
| 480
|
|
513
|
+
| 490
|
|
514
|
+
| 600
|
|
515
|
+
| 610
|
|
516
|
+
| 700
|
|
517
|
+
| 720
|
|
518
|
+
| 800
|
|
519
|
+
| 810
|
|
520
|
+
| 820
|
|
521
|
+
| 830
|
|
522
|
+
| 840
|
|
523
|
+
| 850
|
|
524
|
+
| 870
|
|
525
|
+
| 880
|
|
526
|
+
| 890
|
|
527
|
+
| 900
|
|
528
|
+
| 910
|
|
529
|
+
| 920
|
|
530
|
+
| 940
|
|
531
|
+
| 950
|
|
532
|
+
| 960
|
|
533
|
+
| 980
|
|
534
|
+
| 990
|
|
535
|
+
| 1000
|
|
536
|
+
| 1010
|
|
537
|
+
| 1020
|
|
538
|
+
| 1030
|
|
539
|
+
| 1040
|
|
540
|
+
| 1050
|
|
541
|
+
| 1060
|
|
542
|
+
| 1070
|
|
543
|
+
| 1090
|
|
544
|
+
| 1100
|
|
545
|
+
| 1110
|
|
546
|
+
| 1111
|
|
547
|
+
| 1200
|
|
548
|
+
| 1210
|
|
549
|
+
| 1300
|
|
550
|
+
| 1400
|
|
551
|
+
| 1700
|
|
552
|
+
| 1710
|
|
553
|
+
| 1810
|
|
554
|
+
| 1820
|
|
555
|
+
| 1830
|
|
556
|
+
| 1840
|
|
557
|
+
| 1900
|
|
558
|
+
| 2000
|
|
559
|
+
| 2010
|
|
560
|
+
| 2020
|
|
561
|
+
| 2300
|
|
562
|
+
| 2400;
|
|
563
|
+
type MatchTeam = {
|
|
564
|
+
bans: Array<MatchBan>;
|
|
565
|
+
objectives: MatchObjectives;
|
|
473
566
|
teamId: number;
|
|
474
567
|
win: boolean;
|
|
475
|
-
feats?:
|
|
568
|
+
feats?: MatchFeats | undefined;
|
|
476
569
|
};
|
|
477
|
-
type
|
|
570
|
+
type MatchBan = {
|
|
478
571
|
championId: number;
|
|
479
572
|
pickTurn: number;
|
|
480
573
|
};
|
|
481
|
-
type
|
|
482
|
-
baron:
|
|
483
|
-
champion:
|
|
484
|
-
dragon:
|
|
485
|
-
horde?:
|
|
486
|
-
inhibitor:
|
|
487
|
-
riftHerald:
|
|
488
|
-
tower:
|
|
489
|
-
atakhan?:
|
|
574
|
+
type MatchObjectives = {
|
|
575
|
+
baron: MatchObjective;
|
|
576
|
+
champion: MatchObjective;
|
|
577
|
+
dragon: MatchObjective;
|
|
578
|
+
horde?: MatchObjective | undefined;
|
|
579
|
+
inhibitor: MatchObjective;
|
|
580
|
+
riftHerald: MatchObjective;
|
|
581
|
+
tower: MatchObjective;
|
|
582
|
+
atakhan?: MatchObjective | undefined;
|
|
490
583
|
};
|
|
491
|
-
type
|
|
584
|
+
type MatchObjective = {
|
|
492
585
|
first: boolean;
|
|
493
586
|
kills: number;
|
|
494
587
|
};
|
|
495
|
-
type
|
|
496
|
-
EPIC_MONSTER_KILL:
|
|
497
|
-
FIRST_BLOOD:
|
|
498
|
-
FIRST_TURRET:
|
|
588
|
+
type MatchFeats = Partial<{
|
|
589
|
+
EPIC_MONSTER_KILL: MatchFeat;
|
|
590
|
+
FIRST_BLOOD: MatchFeat;
|
|
591
|
+
FIRST_TURRET: MatchFeat;
|
|
499
592
|
}>;
|
|
500
|
-
type
|
|
593
|
+
type MatchFeat = Partial<{
|
|
501
594
|
featState: number;
|
|
502
595
|
}>;
|
|
503
596
|
|
|
504
|
-
const
|
|
597
|
+
const LeagueMiniseries: z.ZodType<LeagueMiniseries> = z
|
|
505
598
|
.object({
|
|
506
599
|
losses: z.number().int(),
|
|
507
600
|
progress: z.string(),
|
|
@@ -509,7 +602,7 @@ const league_v4_MiniSeriesDTO: z.ZodType<league_v4_MiniSeriesDTO> = z
|
|
|
509
602
|
wins: z.number().int(),
|
|
510
603
|
})
|
|
511
604
|
.passthrough();
|
|
512
|
-
const
|
|
605
|
+
const LeagueEntry: z.ZodType<LeagueEntry> = z
|
|
513
606
|
.object({
|
|
514
607
|
leagueId: z.string().optional(),
|
|
515
608
|
puuid: z.string(),
|
|
@@ -523,45 +616,45 @@ const league_v4_LeagueEntryDTO: z.ZodType<league_v4_LeagueEntryDTO> = z
|
|
|
523
616
|
veteran: z.boolean(),
|
|
524
617
|
freshBlood: z.boolean(),
|
|
525
618
|
inactive: z.boolean(),
|
|
526
|
-
miniSeries:
|
|
619
|
+
miniSeries: LeagueMiniseries.optional(),
|
|
527
620
|
summonerId: z.string().optional(),
|
|
528
621
|
})
|
|
529
622
|
.passthrough();
|
|
530
|
-
const
|
|
623
|
+
const SpectatorBannedChampions: z.ZodType<SpectatorBannedChampions> = z
|
|
531
624
|
.object({
|
|
532
625
|
pickTurn: z.number().int(),
|
|
533
626
|
championId: z.number().int(),
|
|
534
627
|
teamId: z.number().int(),
|
|
535
628
|
})
|
|
536
629
|
.passthrough();
|
|
537
|
-
const
|
|
630
|
+
const SpectatorObserver: z.ZodType<SpectatorObserver> = z
|
|
538
631
|
.object({ encryptionKey: z.string() })
|
|
539
632
|
.passthrough();
|
|
540
|
-
const
|
|
633
|
+
const SpectatorPerks: z.ZodType<SpectatorPerks> = z
|
|
541
634
|
.object({
|
|
542
635
|
perkIds: z.array(z.number().int()),
|
|
543
636
|
perkStyle: z.number().int(),
|
|
544
637
|
perkSubStyle: z.number().int(),
|
|
545
638
|
})
|
|
546
639
|
.passthrough();
|
|
547
|
-
const
|
|
640
|
+
const SpectatorGameCustomizationObject: z.ZodType<SpectatorGameCustomizationObject> =
|
|
548
641
|
z.object({ category: z.string(), content: z.string() }).passthrough();
|
|
549
|
-
const
|
|
642
|
+
const SpectatorCurrentGameParticipant: z.ZodType<SpectatorCurrentGameParticipant> =
|
|
550
643
|
z
|
|
551
644
|
.object({
|
|
552
645
|
championId: z.number().int(),
|
|
553
|
-
perks:
|
|
646
|
+
perks: SpectatorPerks.optional(),
|
|
554
647
|
profileIconId: z.number().int(),
|
|
555
648
|
bot: z.boolean(),
|
|
556
649
|
teamId: z.number().int(),
|
|
557
650
|
puuid: z.string().nullish(),
|
|
558
651
|
spell1Id: z.number().int(),
|
|
559
652
|
spell2Id: z.number().int(),
|
|
560
|
-
gameCustomizationObjects: z.array(
|
|
653
|
+
gameCustomizationObjects: z.array(SpectatorGameCustomizationObject),
|
|
561
654
|
riotId: z.string().optional(),
|
|
562
655
|
})
|
|
563
656
|
.passthrough();
|
|
564
|
-
const
|
|
657
|
+
const SpectatorCurrentGameInfo: z.ZodType<SpectatorCurrentGameInfo> = z
|
|
565
658
|
.object({
|
|
566
659
|
gameId: z.number().int(),
|
|
567
660
|
gameType: z.string(),
|
|
@@ -570,10 +663,10 @@ const spectator_v5_CurrentGameInfo: z.ZodType<spectator_v5_CurrentGameInfo> = z
|
|
|
570
663
|
gameLength: z.number().int(),
|
|
571
664
|
platformId: z.string(),
|
|
572
665
|
gameMode: z.string(),
|
|
573
|
-
bannedChampions: z.array(
|
|
666
|
+
bannedChampions: z.array(SpectatorBannedChampions),
|
|
574
667
|
gameQueueConfigId: z.number().int().optional(),
|
|
575
|
-
observers:
|
|
576
|
-
participants: z.array(
|
|
668
|
+
observers: SpectatorObserver,
|
|
669
|
+
participants: z.array(SpectatorCurrentGameParticipant),
|
|
577
670
|
})
|
|
578
671
|
.passthrough();
|
|
579
672
|
const AccountInfo: z.ZodType<AccountInfo> = z
|
|
@@ -589,8 +682,8 @@ const AccountInfo: z.ZodType<AccountInfo> = z
|
|
|
589
682
|
lastUpdated: z.string(),
|
|
590
683
|
})
|
|
591
684
|
.passthrough(),
|
|
592
|
-
leagueEntries: z.array(
|
|
593
|
-
currentGame:
|
|
685
|
+
leagueEntries: z.array(LeagueEntry),
|
|
686
|
+
currentGame: SpectatorCurrentGameInfo.optional(),
|
|
594
687
|
})
|
|
595
688
|
.passthrough();
|
|
596
689
|
const validationError = z
|
|
@@ -612,11 +705,11 @@ const validationError = z
|
|
|
612
705
|
.passthrough();
|
|
613
706
|
const simpleError = z.object({ message: z.string() }).passthrough();
|
|
614
707
|
const simpleInternalError = z.object({ message: z.string() }).passthrough();
|
|
615
|
-
const
|
|
708
|
+
const LeagueItem: z.ZodType<LeagueItem> = z
|
|
616
709
|
.object({
|
|
617
710
|
freshBlood: z.boolean(),
|
|
618
711
|
wins: z.number().int(),
|
|
619
|
-
miniSeries:
|
|
712
|
+
miniSeries: LeagueMiniseries.optional(),
|
|
620
713
|
inactive: z.boolean(),
|
|
621
714
|
veteran: z.boolean(),
|
|
622
715
|
hotStreak: z.boolean(),
|
|
@@ -634,17 +727,17 @@ const LeagueDetails: z.ZodType<LeagueDetails> = z
|
|
|
634
727
|
division: z.string(),
|
|
635
728
|
name: z.string().optional(),
|
|
636
729
|
lastUpdated: z.string(),
|
|
637
|
-
entries: z.array(
|
|
730
|
+
entries: z.array(LeagueItem),
|
|
638
731
|
})
|
|
639
732
|
.passthrough();
|
|
640
|
-
const
|
|
733
|
+
const MatchMetadata: z.ZodType<MatchMetadata> = z
|
|
641
734
|
.object({
|
|
642
735
|
dataVersion: z.string(),
|
|
643
736
|
matchId: z.string(),
|
|
644
737
|
participants: z.array(z.string()),
|
|
645
738
|
})
|
|
646
739
|
.passthrough();
|
|
647
|
-
const
|
|
740
|
+
const MatchChallenges: z.ZodType<MatchChallenges> = z
|
|
648
741
|
.object({
|
|
649
742
|
"12AssistStreakCount": z.number().int(),
|
|
650
743
|
baronBuffGoldAdvantageOverThreshold: z.number().int(),
|
|
@@ -796,7 +889,7 @@ const match_v5_ChallengesDto: z.ZodType<match_v5_ChallengesDto> = z
|
|
|
796
889
|
})
|
|
797
890
|
.partial()
|
|
798
891
|
.passthrough();
|
|
799
|
-
const
|
|
892
|
+
const MatchMissions: z.ZodType<MatchMissions> = z
|
|
800
893
|
.object({
|
|
801
894
|
playerScore0: z.number(),
|
|
802
895
|
playerScore1: z.number(),
|
|
@@ -813,36 +906,32 @@ const match_v5_MissionsDto: z.ZodType<match_v5_MissionsDto> = z
|
|
|
813
906
|
})
|
|
814
907
|
.partial()
|
|
815
908
|
.passthrough();
|
|
816
|
-
const
|
|
909
|
+
const MatchPerkStats: z.ZodType<MatchPerkStats> = z
|
|
817
910
|
.object({
|
|
818
911
|
defense: z.number().int(),
|
|
819
912
|
flex: z.number().int(),
|
|
820
913
|
offense: z.number().int(),
|
|
821
914
|
})
|
|
822
915
|
.passthrough();
|
|
823
|
-
const
|
|
824
|
-
z
|
|
825
|
-
.object({
|
|
826
|
-
perk: z.number().int(),
|
|
827
|
-
var1: z.number().int(),
|
|
828
|
-
var2: z.number().int(),
|
|
829
|
-
var3: z.number().int(),
|
|
830
|
-
})
|
|
831
|
-
.passthrough();
|
|
832
|
-
const match_v5_PerkStyleDto: z.ZodType<match_v5_PerkStyleDto> = z
|
|
916
|
+
const MatchPerkStyleSelection: z.ZodType<MatchPerkStyleSelection> = z
|
|
833
917
|
.object({
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
918
|
+
perk: z.number().int(),
|
|
919
|
+
var1: z.number().int(),
|
|
920
|
+
var2: z.number().int(),
|
|
921
|
+
var3: z.number().int(),
|
|
837
922
|
})
|
|
838
923
|
.passthrough();
|
|
839
|
-
const
|
|
924
|
+
const MatchPerkStyle: z.ZodType<MatchPerkStyle> = z
|
|
840
925
|
.object({
|
|
841
|
-
|
|
842
|
-
|
|
926
|
+
description: z.string(),
|
|
927
|
+
selections: z.array(MatchPerkStyleSelection),
|
|
928
|
+
style: z.number().int(),
|
|
843
929
|
})
|
|
844
930
|
.passthrough();
|
|
845
|
-
const
|
|
931
|
+
const MatchPerks: z.ZodType<MatchPerks> = z
|
|
932
|
+
.object({ statPerks: MatchPerkStats, styles: z.array(MatchPerkStyle) })
|
|
933
|
+
.passthrough();
|
|
934
|
+
const MatchParticipant: z.ZodType<MatchParticipant> = z
|
|
846
935
|
.object({
|
|
847
936
|
allInPings: z.number().int().optional(),
|
|
848
937
|
assistMePings: z.number().int().optional(),
|
|
@@ -856,7 +945,7 @@ const match_v5_ParticipantDto: z.ZodType<match_v5_ParticipantDto> = z
|
|
|
856
945
|
commandPings: z.number().int().optional(),
|
|
857
946
|
championTransform: z.number().int(),
|
|
858
947
|
consumablesPurchased: z.number().int(),
|
|
859
|
-
challenges:
|
|
948
|
+
challenges: MatchChallenges.optional(),
|
|
860
949
|
damageDealtToBuildings: z.number().int().optional(),
|
|
861
950
|
damageDealtToObjectives: z.number().int(),
|
|
862
951
|
damageDealtToTurrets: z.number().int(),
|
|
@@ -900,7 +989,7 @@ const match_v5_ParticipantDto: z.ZodType<match_v5_ParticipantDto> = z
|
|
|
900
989
|
magicDamageDealt: z.number().int(),
|
|
901
990
|
magicDamageDealtToChampions: z.number().int(),
|
|
902
991
|
magicDamageTaken: z.number().int(),
|
|
903
|
-
missions:
|
|
992
|
+
missions: MatchMissions.optional(),
|
|
904
993
|
neutralMinionsKilled: z.number().int(),
|
|
905
994
|
needVisionPings: z.number().int().optional(),
|
|
906
995
|
nexusKills: z.number().int(),
|
|
@@ -923,7 +1012,7 @@ const match_v5_ParticipantDto: z.ZodType<match_v5_ParticipantDto> = z
|
|
|
923
1012
|
playerScore10: z.number().optional(),
|
|
924
1013
|
playerScore11: z.number().optional(),
|
|
925
1014
|
pentaKills: z.number().int(),
|
|
926
|
-
perks:
|
|
1015
|
+
perks: MatchPerks,
|
|
927
1016
|
physicalDamageDealt: z.number().int(),
|
|
928
1017
|
physicalDamageDealtToChampions: z.number().int(),
|
|
929
1018
|
physicalDamageTaken: z.number().int(),
|
|
@@ -994,46 +1083,147 @@ const match_v5_ParticipantDto: z.ZodType<match_v5_ParticipantDto> = z
|
|
|
994
1083
|
championSkinId: z.number().int().optional(),
|
|
995
1084
|
})
|
|
996
1085
|
.passthrough();
|
|
997
|
-
const
|
|
1086
|
+
const QueueId = z.union([
|
|
1087
|
+
z.literal(0),
|
|
1088
|
+
z.literal(2),
|
|
1089
|
+
z.literal(4),
|
|
1090
|
+
z.literal(6),
|
|
1091
|
+
z.literal(7),
|
|
1092
|
+
z.literal(8),
|
|
1093
|
+
z.literal(9),
|
|
1094
|
+
z.literal(14),
|
|
1095
|
+
z.literal(16),
|
|
1096
|
+
z.literal(17),
|
|
1097
|
+
z.literal(25),
|
|
1098
|
+
z.literal(31),
|
|
1099
|
+
z.literal(32),
|
|
1100
|
+
z.literal(33),
|
|
1101
|
+
z.literal(41),
|
|
1102
|
+
z.literal(42),
|
|
1103
|
+
z.literal(52),
|
|
1104
|
+
z.literal(61),
|
|
1105
|
+
z.literal(65),
|
|
1106
|
+
z.literal(67),
|
|
1107
|
+
z.literal(70),
|
|
1108
|
+
z.literal(72),
|
|
1109
|
+
z.literal(73),
|
|
1110
|
+
z.literal(75),
|
|
1111
|
+
z.literal(76),
|
|
1112
|
+
z.literal(78),
|
|
1113
|
+
z.literal(83),
|
|
1114
|
+
z.literal(91),
|
|
1115
|
+
z.literal(92),
|
|
1116
|
+
z.literal(93),
|
|
1117
|
+
z.literal(96),
|
|
1118
|
+
z.literal(98),
|
|
1119
|
+
z.literal(100),
|
|
1120
|
+
z.literal(300),
|
|
1121
|
+
z.literal(310),
|
|
1122
|
+
z.literal(313),
|
|
1123
|
+
z.literal(315),
|
|
1124
|
+
z.literal(317),
|
|
1125
|
+
z.literal(318),
|
|
1126
|
+
z.literal(325),
|
|
1127
|
+
z.literal(400),
|
|
1128
|
+
z.literal(410),
|
|
1129
|
+
z.literal(420),
|
|
1130
|
+
z.literal(430),
|
|
1131
|
+
z.literal(440),
|
|
1132
|
+
z.literal(450),
|
|
1133
|
+
z.literal(460),
|
|
1134
|
+
z.literal(470),
|
|
1135
|
+
z.literal(480),
|
|
1136
|
+
z.literal(490),
|
|
1137
|
+
z.literal(600),
|
|
1138
|
+
z.literal(610),
|
|
1139
|
+
z.literal(700),
|
|
1140
|
+
z.literal(720),
|
|
1141
|
+
z.literal(800),
|
|
1142
|
+
z.literal(810),
|
|
1143
|
+
z.literal(820),
|
|
1144
|
+
z.literal(830),
|
|
1145
|
+
z.literal(840),
|
|
1146
|
+
z.literal(850),
|
|
1147
|
+
z.literal(870),
|
|
1148
|
+
z.literal(880),
|
|
1149
|
+
z.literal(890),
|
|
1150
|
+
z.literal(900),
|
|
1151
|
+
z.literal(910),
|
|
1152
|
+
z.literal(920),
|
|
1153
|
+
z.literal(940),
|
|
1154
|
+
z.literal(950),
|
|
1155
|
+
z.literal(960),
|
|
1156
|
+
z.literal(980),
|
|
1157
|
+
z.literal(990),
|
|
1158
|
+
z.literal(1000),
|
|
1159
|
+
z.literal(1010),
|
|
1160
|
+
z.literal(1020),
|
|
1161
|
+
z.literal(1030),
|
|
1162
|
+
z.literal(1040),
|
|
1163
|
+
z.literal(1050),
|
|
1164
|
+
z.literal(1060),
|
|
1165
|
+
z.literal(1070),
|
|
1166
|
+
z.literal(1090),
|
|
1167
|
+
z.literal(1100),
|
|
1168
|
+
z.literal(1110),
|
|
1169
|
+
z.literal(1111),
|
|
1170
|
+
z.literal(1200),
|
|
1171
|
+
z.literal(1210),
|
|
1172
|
+
z.literal(1300),
|
|
1173
|
+
z.literal(1400),
|
|
1174
|
+
z.literal(1700),
|
|
1175
|
+
z.literal(1710),
|
|
1176
|
+
z.literal(1810),
|
|
1177
|
+
z.literal(1820),
|
|
1178
|
+
z.literal(1830),
|
|
1179
|
+
z.literal(1840),
|
|
1180
|
+
z.literal(1900),
|
|
1181
|
+
z.literal(2000),
|
|
1182
|
+
z.literal(2010),
|
|
1183
|
+
z.literal(2020),
|
|
1184
|
+
z.literal(2300),
|
|
1185
|
+
z.literal(2400),
|
|
1186
|
+
]);
|
|
1187
|
+
const MatchBan: z.ZodType<MatchBan> = z
|
|
998
1188
|
.object({ championId: z.number().int(), pickTurn: z.number().int() })
|
|
999
1189
|
.passthrough();
|
|
1000
|
-
const
|
|
1190
|
+
const MatchObjective: z.ZodType<MatchObjective> = z
|
|
1001
1191
|
.object({ first: z.boolean(), kills: z.number().int() })
|
|
1002
1192
|
.passthrough();
|
|
1003
|
-
const
|
|
1193
|
+
const MatchObjectives: z.ZodType<MatchObjectives> = z
|
|
1004
1194
|
.object({
|
|
1005
|
-
baron:
|
|
1006
|
-
champion:
|
|
1007
|
-
dragon:
|
|
1008
|
-
horde:
|
|
1009
|
-
inhibitor:
|
|
1010
|
-
riftHerald:
|
|
1011
|
-
tower:
|
|
1012
|
-
atakhan:
|
|
1195
|
+
baron: MatchObjective,
|
|
1196
|
+
champion: MatchObjective,
|
|
1197
|
+
dragon: MatchObjective,
|
|
1198
|
+
horde: MatchObjective.optional(),
|
|
1199
|
+
inhibitor: MatchObjective,
|
|
1200
|
+
riftHerald: MatchObjective,
|
|
1201
|
+
tower: MatchObjective,
|
|
1202
|
+
atakhan: MatchObjective.optional(),
|
|
1013
1203
|
})
|
|
1014
1204
|
.passthrough();
|
|
1015
|
-
const
|
|
1205
|
+
const MatchFeat: z.ZodType<MatchFeat> = z
|
|
1016
1206
|
.object({ featState: z.number().int() })
|
|
1017
1207
|
.partial()
|
|
1018
1208
|
.passthrough();
|
|
1019
|
-
const
|
|
1209
|
+
const MatchFeats: z.ZodType<MatchFeats> = z
|
|
1020
1210
|
.object({
|
|
1021
|
-
EPIC_MONSTER_KILL:
|
|
1022
|
-
FIRST_BLOOD:
|
|
1023
|
-
FIRST_TURRET:
|
|
1211
|
+
EPIC_MONSTER_KILL: MatchFeat,
|
|
1212
|
+
FIRST_BLOOD: MatchFeat,
|
|
1213
|
+
FIRST_TURRET: MatchFeat,
|
|
1024
1214
|
})
|
|
1025
1215
|
.partial()
|
|
1026
1216
|
.passthrough();
|
|
1027
|
-
const
|
|
1217
|
+
const MatchTeam: z.ZodType<MatchTeam> = z
|
|
1028
1218
|
.object({
|
|
1029
|
-
bans: z.array(
|
|
1030
|
-
objectives:
|
|
1219
|
+
bans: z.array(MatchBan),
|
|
1220
|
+
objectives: MatchObjectives,
|
|
1031
1221
|
teamId: z.number().int(),
|
|
1032
1222
|
win: z.boolean(),
|
|
1033
|
-
feats:
|
|
1223
|
+
feats: MatchFeats.optional(),
|
|
1034
1224
|
})
|
|
1035
1225
|
.passthrough();
|
|
1036
|
-
const
|
|
1226
|
+
const MatchInfo: z.ZodType<MatchInfo> = z
|
|
1037
1227
|
.object({
|
|
1038
1228
|
endOfGameResult: z.string().optional(),
|
|
1039
1229
|
gameCreation: z.number().int(),
|
|
@@ -1046,59 +1236,50 @@ const match_v5_InfoDto: z.ZodType<match_v5_InfoDto> = z
|
|
|
1046
1236
|
gameType: z.string(),
|
|
1047
1237
|
gameVersion: z.string(),
|
|
1048
1238
|
mapId: z.number().int(),
|
|
1049
|
-
participants: z.array(
|
|
1239
|
+
participants: z.array(MatchParticipant),
|
|
1050
1240
|
platformId: z.string(),
|
|
1051
|
-
queueId:
|
|
1052
|
-
teams: z.array(
|
|
1241
|
+
queueId: QueueId,
|
|
1242
|
+
teams: z.array(MatchTeam),
|
|
1053
1243
|
tournamentCode: z.string().optional(),
|
|
1054
1244
|
gameModeMutators: z.array(z.string()).optional(),
|
|
1055
1245
|
})
|
|
1056
1246
|
.passthrough();
|
|
1057
|
-
const
|
|
1058
|
-
.object({ metadata:
|
|
1059
|
-
.passthrough();
|
|
1060
|
-
const league_v4_LeagueListDTO: z.ZodType<league_v4_LeagueListDTO> = z
|
|
1061
|
-
.object({
|
|
1062
|
-
leagueId: z.string().optional(),
|
|
1063
|
-
entries: z.array(league_v4_LeagueItemDTO),
|
|
1064
|
-
tier: z.string(),
|
|
1065
|
-
name: z.string().optional(),
|
|
1066
|
-
queue: z.string(),
|
|
1067
|
-
})
|
|
1247
|
+
const Match: z.ZodType<Match> = z
|
|
1248
|
+
.object({ metadata: MatchMetadata, info: MatchInfo })
|
|
1068
1249
|
.passthrough();
|
|
1069
1250
|
|
|
1070
1251
|
export const schemas = {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1252
|
+
LeagueMiniseries,
|
|
1253
|
+
LeagueEntry,
|
|
1254
|
+
SpectatorBannedChampions,
|
|
1255
|
+
SpectatorObserver,
|
|
1256
|
+
SpectatorPerks,
|
|
1257
|
+
SpectatorGameCustomizationObject,
|
|
1258
|
+
SpectatorCurrentGameParticipant,
|
|
1259
|
+
SpectatorCurrentGameInfo,
|
|
1079
1260
|
AccountInfo,
|
|
1080
1261
|
validationError,
|
|
1081
1262
|
simpleError,
|
|
1082
1263
|
simpleInternalError,
|
|
1083
|
-
|
|
1264
|
+
LeagueItem,
|
|
1084
1265
|
LeagueDetails,
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1266
|
+
MatchMetadata,
|
|
1267
|
+
MatchChallenges,
|
|
1268
|
+
MatchMissions,
|
|
1269
|
+
MatchPerkStats,
|
|
1270
|
+
MatchPerkStyleSelection,
|
|
1271
|
+
MatchPerkStyle,
|
|
1272
|
+
MatchPerks,
|
|
1273
|
+
MatchParticipant,
|
|
1274
|
+
QueueId,
|
|
1275
|
+
MatchBan,
|
|
1276
|
+
MatchObjective,
|
|
1277
|
+
MatchObjectives,
|
|
1278
|
+
MatchFeat,
|
|
1279
|
+
MatchFeats,
|
|
1280
|
+
MatchTeam,
|
|
1281
|
+
MatchInfo,
|
|
1282
|
+
Match,
|
|
1102
1283
|
};
|
|
1103
1284
|
|
|
1104
1285
|
const endpoints = makeApi([
|
|
@@ -1258,10 +1439,112 @@ const endpoints = makeApi([
|
|
|
1258
1439
|
{
|
|
1259
1440
|
name: "queueId",
|
|
1260
1441
|
type: "Query",
|
|
1261
|
-
schema: z
|
|
1442
|
+
schema: z
|
|
1443
|
+
.union([
|
|
1444
|
+
z.literal(0),
|
|
1445
|
+
z.literal(2),
|
|
1446
|
+
z.literal(4),
|
|
1447
|
+
z.literal(6),
|
|
1448
|
+
z.literal(7),
|
|
1449
|
+
z.literal(8),
|
|
1450
|
+
z.literal(9),
|
|
1451
|
+
z.literal(14),
|
|
1452
|
+
z.literal(16),
|
|
1453
|
+
z.literal(17),
|
|
1454
|
+
z.literal(25),
|
|
1455
|
+
z.literal(31),
|
|
1456
|
+
z.literal(32),
|
|
1457
|
+
z.literal(33),
|
|
1458
|
+
z.literal(41),
|
|
1459
|
+
z.literal(42),
|
|
1460
|
+
z.literal(52),
|
|
1461
|
+
z.literal(61),
|
|
1462
|
+
z.literal(65),
|
|
1463
|
+
z.literal(67),
|
|
1464
|
+
z.literal(70),
|
|
1465
|
+
z.literal(72),
|
|
1466
|
+
z.literal(73),
|
|
1467
|
+
z.literal(75),
|
|
1468
|
+
z.literal(76),
|
|
1469
|
+
z.literal(78),
|
|
1470
|
+
z.literal(83),
|
|
1471
|
+
z.literal(91),
|
|
1472
|
+
z.literal(92),
|
|
1473
|
+
z.literal(93),
|
|
1474
|
+
z.literal(96),
|
|
1475
|
+
z.literal(98),
|
|
1476
|
+
z.literal(100),
|
|
1477
|
+
z.literal(300),
|
|
1478
|
+
z.literal(310),
|
|
1479
|
+
z.literal(313),
|
|
1480
|
+
z.literal(315),
|
|
1481
|
+
z.literal(317),
|
|
1482
|
+
z.literal(318),
|
|
1483
|
+
z.literal(325),
|
|
1484
|
+
z.literal(400),
|
|
1485
|
+
z.literal(410),
|
|
1486
|
+
z.literal(420),
|
|
1487
|
+
z.literal(430),
|
|
1488
|
+
z.literal(440),
|
|
1489
|
+
z.literal(450),
|
|
1490
|
+
z.literal(460),
|
|
1491
|
+
z.literal(470),
|
|
1492
|
+
z.literal(480),
|
|
1493
|
+
z.literal(490),
|
|
1494
|
+
z.literal(600),
|
|
1495
|
+
z.literal(610),
|
|
1496
|
+
z.literal(700),
|
|
1497
|
+
z.literal(720),
|
|
1498
|
+
z.literal(800),
|
|
1499
|
+
z.literal(810),
|
|
1500
|
+
z.literal(820),
|
|
1501
|
+
z.literal(830),
|
|
1502
|
+
z.literal(840),
|
|
1503
|
+
z.literal(850),
|
|
1504
|
+
z.literal(870),
|
|
1505
|
+
z.literal(880),
|
|
1506
|
+
z.literal(890),
|
|
1507
|
+
z.literal(900),
|
|
1508
|
+
z.literal(910),
|
|
1509
|
+
z.literal(920),
|
|
1510
|
+
z.literal(940),
|
|
1511
|
+
z.literal(950),
|
|
1512
|
+
z.literal(960),
|
|
1513
|
+
z.literal(980),
|
|
1514
|
+
z.literal(990),
|
|
1515
|
+
z.literal(1000),
|
|
1516
|
+
z.literal(1010),
|
|
1517
|
+
z.literal(1020),
|
|
1518
|
+
z.literal(1030),
|
|
1519
|
+
z.literal(1040),
|
|
1520
|
+
z.literal(1050),
|
|
1521
|
+
z.literal(1060),
|
|
1522
|
+
z.literal(1070),
|
|
1523
|
+
z.literal(1090),
|
|
1524
|
+
z.literal(1100),
|
|
1525
|
+
z.literal(1110),
|
|
1526
|
+
z.literal(1111),
|
|
1527
|
+
z.literal(1200),
|
|
1528
|
+
z.literal(1210),
|
|
1529
|
+
z.literal(1300),
|
|
1530
|
+
z.literal(1400),
|
|
1531
|
+
z.literal(1700),
|
|
1532
|
+
z.literal(1710),
|
|
1533
|
+
z.literal(1810),
|
|
1534
|
+
z.literal(1820),
|
|
1535
|
+
z.literal(1830),
|
|
1536
|
+
z.literal(1840),
|
|
1537
|
+
z.literal(1900),
|
|
1538
|
+
z.literal(2000),
|
|
1539
|
+
z.literal(2010),
|
|
1540
|
+
z.literal(2020),
|
|
1541
|
+
z.literal(2300),
|
|
1542
|
+
z.literal(2400),
|
|
1543
|
+
])
|
|
1544
|
+
.optional(),
|
|
1262
1545
|
},
|
|
1263
1546
|
],
|
|
1264
|
-
response: z.array(
|
|
1547
|
+
response: z.array(Match),
|
|
1265
1548
|
errors: [
|
|
1266
1549
|
{
|
|
1267
1550
|
status: 400,
|
|
@@ -1345,7 +1628,7 @@ const endpoints = makeApi([
|
|
|
1345
1628
|
schema: z.string(),
|
|
1346
1629
|
},
|
|
1347
1630
|
],
|
|
1348
|
-
response:
|
|
1631
|
+
response: Match,
|
|
1349
1632
|
errors: [
|
|
1350
1633
|
{
|
|
1351
1634
|
status: 400,
|