Skip to content

Commit

Permalink
spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyagara committed Jan 15, 2024
1 parent 6c14836 commit 55ee046
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Create a new instance of the equinox client:

```go
client, err := equinox.NewClient("RIOT_API_KEY")
// Or:
// or:
client, err := equinox.NewClientWithConfig(api.EquinoxConfig{})
```

Expand Down
2 changes: 1 addition & 1 deletion api/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package api
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// Regional routes, used in tournament services, Legends of Runeterra (LoR), and some other endpoints.
type RegionalRoute string
Expand Down
2 changes: 1 addition & 1 deletion clients/lol/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package lol
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import "github.com/Kyagara/equinox/internal"

Expand Down
6 changes: 5 additions & 1 deletion clients/lol/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lol
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// LoL and TFT ranked tiers, such as gold, diamond, challenger, etc.
type Tier string
Expand Down Expand Up @@ -284,6 +284,8 @@ const (
SIEGE GameMode = "SIEGE"
// Star Guardian Invasion games
STARGUARDIAN GameMode = "STARGUARDIAN"
// Teamfight Tactics, used in `spectator-v4` endpoints.
TFT GameMode = "TFT"
// Tutorial games
TUTORIAL GameMode = "TUTORIAL"
// Tutorial: Welcome to League.
Expand Down Expand Up @@ -338,6 +340,8 @@ func (gameMode GameMode) String() string {
return "SIEGE"
case STARGUARDIAN:
return "STARGUARDIAN"
case TFT:
return "TFT"
case TUTORIAL:
return "TUTORIAL"
case TUTORIAL_MODULE_1:
Expand Down
2 changes: 1 addition & 1 deletion clients/lol/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lol
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import (
"context"
Expand Down
8 changes: 6 additions & 2 deletions clients/lol/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lol
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// ApexPlayerInfoDto data object.
type ApexPlayerInfoV1DTO struct {
Expand Down Expand Up @@ -130,6 +130,7 @@ type CurrentGameInfoV4DTO struct {

// CurrentGameParticipant data object.
type CurrentGameParticipantV4DTO struct {
PUUID string `json:"puuid,omitempty"`
// The encrypted summoner ID of this participant
SummonerID string `json:"summonerId,omitempty"`
// The summoner name of this participant
Expand Down Expand Up @@ -562,6 +563,7 @@ type ObserverV4DTO struct {

// ParticipantChallenges data object.
type ParticipantChallengesV5DTO struct {
LegendaryItemUsed []int32 `json:"legendaryItemUsed,omitempty"`
AbilityUses float64 `json:"abilityUses,omitempty"`
AcesBefore15Minutes float64 `json:"acesBefore15Minutes,omitempty"`
AlliedJungleMonsterKills float64 `json:"alliedJungleMonsterKills,omitempty"`
Expand Down Expand Up @@ -686,14 +688,14 @@ type ParticipantChallengesV5DTO struct {
TurretTakedowns float64 `json:"turretTakedowns,omitempty"`
TurretsTakenWithRiftHerald float64 `json:"turretsTakenWithRiftHerald,omitempty"`
TwentyMinionsIn3SecondsCount float64 `json:"twentyMinionsIn3SecondsCount,omitempty"`
TwoWardsOneSweeperCount int32 `json:"twoWardsOneSweeperCount,omitempty"`
UnseenRecalls float64 `json:"unseenRecalls,omitempty"`
VisionScoreAdvantageLaneOpponent float64 `json:"visionScoreAdvantageLaneOpponent,omitempty"`
VisionScorePerMinute float64 `json:"visionScorePerMinute,omitempty"`
WardTakedowns float64 `json:"wardTakedowns,omitempty"`
WardTakedownsBefore20M float64 `json:"wardTakedownsBefore20M,omitempty"`
WardsGuarded float64 `json:"wardsGuarded,omitempty"`
X12AssistStreakCount float64 `json:"12AssistStreakCount,omitempty"`
TwoWardsOneSweeperCount int32 `json:"twoWardsOneSweeperCount,omitempty"`
}

// ParticipantMissions data object.
Expand All @@ -714,6 +716,8 @@ type ParticipantMissionsV5DTO struct {

// Participant data object.
type ParticipantV4DTO struct {
PUUID string `json:"puuid,omitempty"`
SummonerID string `json:"summonerId,omitempty"`
// The summoner name of this participant
SummonerName string `json:"summonerName,omitempty"`
// The ID of the champion played by this participant
Expand Down
2 changes: 1 addition & 1 deletion clients/lor/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package lor
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import "github.com/Kyagara/equinox/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/lor/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lor
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion clients/lor/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package lor
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// CardDto data object.
type CardV1DTO struct {
Expand Down
2 changes: 1 addition & 1 deletion clients/riot/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package riot
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import "github.com/Kyagara/equinox/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/riot/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package riot
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion clients/riot/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package riot
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// AccountDto data object.
type AccountV1DTO struct {
Expand Down
2 changes: 1 addition & 1 deletion clients/tft/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package tft
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import "github.com/Kyagara/equinox/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/tft/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package tft
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// LoL and TFT ranked tiers, such as gold, diamond, challenger, etc.
type Tier string
Expand Down
2 changes: 1 addition & 1 deletion clients/tft/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package tft
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion clients/tft/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package tft
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// CompanionDto data object.
type CompanionV1DTO struct {
Expand Down
2 changes: 1 addition & 1 deletion clients/val/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ package val
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import "github.com/Kyagara/equinox/internal"

Expand Down
2 changes: 1 addition & 1 deletion clients/val/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package val
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// Platform routes for Valorant.
type PlatformRoute string
Expand Down
2 changes: 1 addition & 1 deletion clients/val/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package val
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion clients/val/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package val
// //
///////////////////////////////////////////////

// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305
// Spec version = e610739a49d23996a0987245e4bb5796bcd18533

// AbilityCastsDto data object.
type AbilityCastsV1DTO struct {
Expand Down

0 comments on commit 55ee046

Please sign in to comment.