From 0c4e9ec962aeca566023a818e7a54f9b8f4052ce Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Thu, 20 May 2021 14:11:16 -0700 Subject: [PATCH] Regen for new RSO changes, optional clash-v1.Player.teamId RSO endpoints are not available since they use header params. --- src/endpoints.rs | 44 +++++++++++++++++++++++++++++++++++++++++-- src/meta.rs | 2 +- src/models.rs | 49 +++++++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 89 insertions(+), 6 deletions(-) diff --git a/src/endpoints.rs b/src/endpoints.rs index 780a7b3..51cfa24 100644 --- a/src/endpoints.rs +++ b/src/endpoints.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version e3a10221e77395e8b757d85cecf4413902b9ef10 +// Version bbfb64a2ef9111c6610a823da800b0335587831d //! Automatically generated endpoint handles. @@ -95,6 +95,24 @@ impl RiotApi { pub fn lol_status_v4(&self) -> LolStatusV4 { LolStatusV4 { base: self } } + /// Returns a handle for accessing [LorDeckV1](crate::endpoints::LorDeckV1) endpoints. + /// # Riot Developer API Reference + /// `lor-deck-v1` + /// + /// Note: this method is automatically generated. + #[inline] + pub fn lor_deck_v1(&self) -> LorDeckV1 { + LorDeckV1 { base: self } + } + /// Returns a handle for accessing [LorInventoryV1](crate::endpoints::LorInventoryV1) endpoints. + /// # Riot Developer API Reference + /// `lor-inventory-v1` + /// + /// Note: this method is automatically generated. + #[inline] + pub fn lor_inventory_v1(&self) -> LorInventoryV1 { + LorInventoryV1 { base: self } + } /// Returns a handle for accessing [LorMatchV1](crate::endpoints::LorMatchV1) endpoints. /// # Riot Developer API Reference /// `lor-match-v1` @@ -668,6 +686,28 @@ impl<'a> LolStatusV4<'a> { } +/// LorDeckV1 endpoints handle, accessed by calling [`lor_deck_v1()`](crate::RiotApi::lor_deck_v1) on a [`RiotApi`](crate::RiotApi) instance. +/// # Riot Developer API Reference +/// `lor-deck-v1` +/// +/// Note: this struct is automatically generated. +pub struct LorDeckV1<'a> { + base: &'a RiotApi, +} +impl<'a> LorDeckV1<'a> { +} + +/// LorInventoryV1 endpoints handle, accessed by calling [`lor_inventory_v1()`](crate::RiotApi::lor_inventory_v1) on a [`RiotApi`](crate::RiotApi) instance. +/// # Riot Developer API Reference +/// `lor-inventory-v1` +/// +/// Note: this struct is automatically generated. +pub struct LorInventoryV1<'a> { + base: &'a RiotApi, +} +impl<'a> LorInventoryV1<'a> { +} + /// LorMatchV1 endpoints handle, accessed by calling [`lor_match_v1()`](crate::RiotApi::lor_match_v1) on a [`RiotApi`](crate::RiotApi) instance. /// # Riot Developer API Reference /// `lor-match-v1` @@ -1440,7 +1480,7 @@ impl<'a> ValMatchV1<'a> { /// Get recent matches /// ## Implementation Notes - /// Returns a list of match ids that have completed in the last 10 minutes. NA/LATAM/BR share a match history deployment. As such, recent matches will return a combined list of matches from those three regions. Requests are load balanced so you may see some inconsistencies as matches are added/removed from the list. + /// Returns a list of match ids that have completed in the last 10 minutes for live regions and 12 hours for the esports routing value. NA/LATAM/BR share a match history deployment. As such, recent matches will return a combined list of matches from those three regions. Requests are load balanced so you may see some inconsistencies as matches are added/removed from the list. /// # Parameters /// * `region` - Region to query. /// * `queue` diff --git a/src/meta.rs b/src/meta.rs index 542048e..7c1ddec 100644 --- a/src/meta.rs +++ b/src/meta.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version e3a10221e77395e8b757d85cecf4413902b9ef10 +// Version bbfb64a2ef9111c6610a823da800b0335587831d //! Metadata about the Riot API and Riven. //! diff --git a/src/models.rs b/src/models.rs index 8a84f29..257bb9e 100644 --- a/src/models.rs +++ b/src/models.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version e3a10221e77395e8b757d85cecf4413902b9ef10 +// Version bbfb64a2ef9111c6610a823da800b0335587831d //! Data transfer structs. //! @@ -120,7 +120,7 @@ pub mod clash_v1 { #[serde(rename = "summonerId")] pub summoner_id: String, #[serde(rename = "teamId")] - pub team_id: String, + pub team_id: Option, /// (Legal values: UNSELECTED, FILL, TOP, JUNGLE, MIDDLE, BOTTOM, UTILITY) #[serde(rename = "position")] pub position: String, @@ -500,6 +500,49 @@ pub mod lol_status_v4 { } } +/// Data structs used by [`LorDeckV1`](crate::endpoints::LorDeckV1). +/// +/// Note: this module is automatically generated. +#[allow(dead_code)] +pub mod lor_deck_v1 { + /// Deck data object. + #[derive(Debug)] + #[derive(serde::Serialize, serde::Deserialize)] + pub struct Deck { + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "code")] + pub code: String, + } + /// NewDeck data object. + #[derive(Debug)] + #[derive(serde::Serialize, serde::Deserialize)] + pub struct NewDeck { + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "code")] + pub code: String, + } +} + +/// Data structs used by [`LorInventoryV1`](crate::endpoints::LorInventoryV1). +/// +/// Note: this module is automatically generated. +#[allow(dead_code)] +pub mod lor_inventory_v1 { + /// Card data object. + #[derive(Debug)] + #[derive(serde::Serialize, serde::Deserialize)] + pub struct Card { + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "count")] + pub count: String, + } +} + /// Data structs used by [`LorMatchV1`](crate::endpoints::LorMatchV1). /// /// Note: this module is automatically generated. @@ -1559,7 +1602,7 @@ pub mod summoner_v4 { /// ID of the summoner icon associated with the summoner. #[serde(rename = "profileIconId")] pub profile_icon_id: i32, - /// Date summoner was last modified specified as epoch milliseconds. The following events will update this timestamp: summoner name change, summoner level change, or profile icon change. + /// Date summoner was last modified specified as epoch milliseconds. The following events will update this timestamp: profile icon change, playing the tutorial or advanced tutorial, finishing a game, summoner name change #[serde(rename = "revisionDate")] pub revision_date: i64, /// Summoner name.