From 55ee0461f5eef72d3bce47ba4e20a48542d1406c Mon Sep 17 00:00:00 2001 From: Kyagara Date: Mon, 15 Jan 2024 18:39:53 -0300 Subject: [PATCH] spec update --- README.md | 2 +- api/constants.go | 2 +- clients/lol/client.go | 2 +- clients/lol/constants.go | 6 +++++- clients/lol/endpoints.go | 2 +- clients/lol/models.go | 8 ++++++-- clients/lor/client.go | 2 +- clients/lor/endpoints.go | 2 +- clients/lor/models.go | 2 +- clients/riot/client.go | 2 +- clients/riot/endpoints.go | 2 +- clients/riot/models.go | 2 +- clients/tft/client.go | 2 +- clients/tft/constants.go | 2 +- clients/tft/endpoints.go | 2 +- clients/tft/models.go | 2 +- clients/val/client.go | 2 +- clients/val/constants.go | 2 +- clients/val/endpoints.go | 2 +- clients/val/models.go | 2 +- 20 files changed, 29 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 6bfa45f..93e8fec 100644 --- a/README.md +++ b/README.md @@ -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{}) ``` diff --git a/api/constants.go b/api/constants.go index 3a60191..b389248 100644 --- a/api/constants.go +++ b/api/constants.go @@ -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 diff --git a/clients/lol/client.go b/clients/lol/client.go index ff5dd1e..7ef5db0 100644 --- a/clients/lol/client.go +++ b/clients/lol/client.go @@ -24,7 +24,7 @@ package lol // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import "github.com/Kyagara/equinox/internal" diff --git a/clients/lol/constants.go b/clients/lol/constants.go index 22faf43..0b7511d 100644 --- a/clients/lol/constants.go +++ b/clients/lol/constants.go @@ -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 @@ -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. @@ -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: diff --git a/clients/lol/endpoints.go b/clients/lol/endpoints.go index 2f7a52c..5b3c700 100644 --- a/clients/lol/endpoints.go +++ b/clients/lol/endpoints.go @@ -8,7 +8,7 @@ package lol // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import ( "context" diff --git a/clients/lol/models.go b/clients/lol/models.go index 9a1b7ba..6fea88f 100644 --- a/clients/lol/models.go +++ b/clients/lol/models.go @@ -8,7 +8,7 @@ package lol // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 // ApexPlayerInfoDto data object. type ApexPlayerInfoV1DTO struct { @@ -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 @@ -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"` @@ -686,7 +688,6 @@ 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"` @@ -694,6 +695,7 @@ type ParticipantChallengesV5DTO struct { WardTakedownsBefore20M float64 `json:"wardTakedownsBefore20M,omitempty"` WardsGuarded float64 `json:"wardsGuarded,omitempty"` X12AssistStreakCount float64 `json:"12AssistStreakCount,omitempty"` + TwoWardsOneSweeperCount int32 `json:"twoWardsOneSweeperCount,omitempty"` } // ParticipantMissions data object. @@ -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 diff --git a/clients/lor/client.go b/clients/lor/client.go index 8635722..0a819d8 100644 --- a/clients/lor/client.go +++ b/clients/lor/client.go @@ -16,7 +16,7 @@ package lor // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import "github.com/Kyagara/equinox/internal" diff --git a/clients/lor/endpoints.go b/clients/lor/endpoints.go index ab06161..add4469 100644 --- a/clients/lor/endpoints.go +++ b/clients/lor/endpoints.go @@ -8,7 +8,7 @@ package lor // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import ( "context" diff --git a/clients/lor/models.go b/clients/lor/models.go index effd510..adc7e03 100644 --- a/clients/lor/models.go +++ b/clients/lor/models.go @@ -8,7 +8,7 @@ package lor // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 // CardDto data object. type CardV1DTO struct { diff --git a/clients/riot/client.go b/clients/riot/client.go index b109dc2..9238a6a 100644 --- a/clients/riot/client.go +++ b/clients/riot/client.go @@ -12,7 +12,7 @@ package riot // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import "github.com/Kyagara/equinox/internal" diff --git a/clients/riot/endpoints.go b/clients/riot/endpoints.go index 930e9a4..a30ab16 100644 --- a/clients/riot/endpoints.go +++ b/clients/riot/endpoints.go @@ -8,7 +8,7 @@ package riot // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import ( "context" diff --git a/clients/riot/models.go b/clients/riot/models.go index 8525513..cc1497a 100644 --- a/clients/riot/models.go +++ b/clients/riot/models.go @@ -8,7 +8,7 @@ package riot // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 // AccountDto data object. type AccountV1DTO struct { diff --git a/clients/tft/client.go b/clients/tft/client.go index 0fe5d9a..267e7dd 100644 --- a/clients/tft/client.go +++ b/clients/tft/client.go @@ -15,7 +15,7 @@ package tft // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import "github.com/Kyagara/equinox/internal" diff --git a/clients/tft/constants.go b/clients/tft/constants.go index e75e7ed..5c63197 100644 --- a/clients/tft/constants.go +++ b/clients/tft/constants.go @@ -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 diff --git a/clients/tft/endpoints.go b/clients/tft/endpoints.go index 3074fdf..e7135b1 100644 --- a/clients/tft/endpoints.go +++ b/clients/tft/endpoints.go @@ -8,7 +8,7 @@ package tft // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import ( "context" diff --git a/clients/tft/models.go b/clients/tft/models.go index 218277a..69e7fd5 100644 --- a/clients/tft/models.go +++ b/clients/tft/models.go @@ -8,7 +8,7 @@ package tft // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 // CompanionDto data object. type CompanionV1DTO struct { diff --git a/clients/val/client.go b/clients/val/client.go index 6e7a036..2042484 100644 --- a/clients/val/client.go +++ b/clients/val/client.go @@ -15,7 +15,7 @@ package val // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import "github.com/Kyagara/equinox/internal" diff --git a/clients/val/constants.go b/clients/val/constants.go index 563c74b..b3efac9 100644 --- a/clients/val/constants.go +++ b/clients/val/constants.go @@ -8,7 +8,7 @@ package val // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 // Platform routes for Valorant. type PlatformRoute string diff --git a/clients/val/endpoints.go b/clients/val/endpoints.go index cedda79..857ce11 100644 --- a/clients/val/endpoints.go +++ b/clients/val/endpoints.go @@ -8,7 +8,7 @@ package val // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 import ( "context" diff --git a/clients/val/models.go b/clients/val/models.go index e54a754..84d0786 100644 --- a/clients/val/models.go +++ b/clients/val/models.go @@ -8,7 +8,7 @@ package val // // /////////////////////////////////////////////// -// Spec version = d712d94a43004a22ad9f31b9ebfbcaa9e0820305 +// Spec version = e610739a49d23996a0987245e4bb5796bcd18533 // AbilityCastsDto data object. type AbilityCastsV1DTO struct {