From 8c458c000aa95dcf6aa560bb188e98ddec30bf8c Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Mon, 4 Apr 2022 10:57:54 -0700 Subject: [PATCH] Add EUW1_5765650307 match test, regen --- riven/src/endpoints.rs | 2 +- riven/src/meta.rs | 2 +- riven/src/models.rs | 97 ++++++++++++++++++++++++++++++------- riven/tests/tests_europe.rs | 1 + 4 files changed, 82 insertions(+), 20 deletions(-) diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index ae8e8c5..aee46a0 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 08f681e25b2fefe96794ab13b53fddfa096341ef +// Version 55679c92250cb02f03ebf8d1d761e16d5c93c59c //! Automatically generated endpoint handles. #![allow(clippy::let_and_return, clippy::too_many_arguments)] diff --git a/riven/src/meta.rs b/riven/src/meta.rs index 6ad3092..84b7e58 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 08f681e25b2fefe96794ab13b53fddfa096341ef +// Version 55679c92250cb02f03ebf8d1d761e16d5c93c59c //! Metadata about the Riot API and Riven. //! diff --git a/riven/src/models.rs b/riven/src/models.rs index 9453e31..4d9b349 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -7,7 +7,7 @@ /////////////////////////////////////////////// // http://www.mingweisamuel.com/riotapi-schema/tool/ -// Version 08f681e25b2fefe96794ab13b53fddfa096341ef +// Version 55679c92250cb02f03ebf8d1d761e16d5c93c59c #![allow(missing_docs)] @@ -1222,6 +1222,9 @@ pub mod match_v5 { #[serde(rename = "buffsStolen")] #[serde(skip_serializing_if = "Option::is_none")] pub buffs_stolen: Option, + #[serde(rename = "completeSupportQuestInTime")] + #[serde(skip_serializing_if = "Option::is_none")] + pub complete_support_quest_in_time: Option, #[serde(rename = "controlWardsPlaced")] #[serde(skip_serializing_if = "Option::is_none")] pub control_wards_placed: Option, @@ -1240,6 +1243,9 @@ pub mod match_v5 { #[serde(rename = "deathsByEnemyChamps")] #[serde(skip_serializing_if = "Option::is_none")] pub deaths_by_enemy_champs: Option, + #[serde(rename = "dodgeSkillShotsSmallWindow")] + #[serde(skip_serializing_if = "Option::is_none")] + pub dodge_skill_shots_small_window: Option, #[serde(rename = "doubleAces")] #[serde(skip_serializing_if = "Option::is_none")] pub double_aces: Option, @@ -1282,6 +1288,12 @@ pub mod match_v5 { #[serde(rename = "epicMonsterSteals")] #[serde(skip_serializing_if = "Option::is_none")] pub epic_monster_steals: Option, + #[serde(rename = "epicMonsterStolenWithoutSmite")] + #[serde(skip_serializing_if = "Option::is_none")] + pub epic_monster_stolen_without_smite: Option, + #[serde(rename = "fasterSupportQuestCompletion")] + #[serde(skip_serializing_if = "Option::is_none")] + pub faster_support_quest_completion: Option, #[serde(rename = "fastestLegendary")] #[serde(skip_serializing_if = "Option::is_none")] pub fastest_legendary: Option, @@ -1318,6 +1330,9 @@ pub mod match_v5 { #[serde(rename = "highestWardKills")] #[serde(skip_serializing_if = "Option::is_none")] pub highest_ward_kills: Option, + #[serde(rename = "immobilizeAndKillWithAlly")] + #[serde(skip_serializing_if = "Option::is_none")] + pub immobilize_and_kill_with_ally: Option, #[serde(rename = "initialBuffCount")] #[serde(skip_serializing_if = "Option::is_none")] pub initial_buff_count: Option, @@ -1336,6 +1351,12 @@ pub mod match_v5 { #[serde(rename = "kda")] #[serde(skip_serializing_if = "Option::is_none")] pub kda: Option, + #[serde(rename = "killAfterHiddenWithAlly")] + #[serde(skip_serializing_if = "Option::is_none")] + pub kill_after_hidden_with_ally: Option, + #[serde(rename = "killedChampTookFullTeamDamageSurvived")] + #[serde(skip_serializing_if = "Option::is_none")] + pub killed_champ_took_full_team_damage_survived: Option, #[serde(rename = "killParticipation")] #[serde(skip_serializing_if = "Option::is_none")] pub kill_participation: Option, @@ -1357,6 +1378,15 @@ pub mod match_v5 { #[serde(rename = "killsWithHelpFromEpicMonster")] #[serde(skip_serializing_if = "Option::is_none")] pub kills_with_help_from_epic_monster: Option, + #[serde(rename = "knockEnemyIntoTeamAndKill")] + #[serde(skip_serializing_if = "Option::is_none")] + pub knock_enemy_into_team_and_kill: Option, + #[serde(rename = "kTurretsDestroyedBeforePlatesFall")] + #[serde(skip_serializing_if = "Option::is_none")] + pub k_turrets_destroyed_before_plates_fall: Option, + #[serde(rename = "landSkillShotsEarlyGame")] + #[serde(skip_serializing_if = "Option::is_none")] + pub land_skill_shots_early_game: Option, #[serde(rename = "laneMinionsFirst10Minutes")] #[serde(skip_serializing_if = "Option::is_none")] pub lane_minions_first10_minutes: Option, @@ -1393,6 +1423,9 @@ pub mod match_v5 { #[serde(rename = "multikillsAfterAggressiveFlash")] #[serde(skip_serializing_if = "Option::is_none")] pub multikills_after_aggressive_flash: Option, + #[serde(rename = "multiTurretRiftHeraldCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub multi_turret_rift_herald_count: Option, #[serde(rename = "mythicItemUsed")] #[serde(skip_serializing_if = "Option::is_none")] pub mythic_item_used: Option, @@ -1411,12 +1444,27 @@ pub mod match_v5 { #[serde(rename = "perfectGame")] #[serde(skip_serializing_if = "Option::is_none")] pub perfect_game: Option, + #[serde(rename = "pickKillWithAlly")] + #[serde(skip_serializing_if = "Option::is_none")] + pub pick_kill_with_ally: Option, #[serde(rename = "poroExplosions")] #[serde(skip_serializing_if = "Option::is_none")] pub poro_explosions: Option, + #[serde(rename = "quickCleanse")] + #[serde(skip_serializing_if = "Option::is_none")] + pub quick_cleanse: Option, + #[serde(rename = "quickFirstTurret")] + #[serde(skip_serializing_if = "Option::is_none")] + pub quick_first_turret: Option, + #[serde(rename = "quickSoloKills")] + #[serde(skip_serializing_if = "Option::is_none")] + pub quick_solo_kills: Option, #[serde(rename = "riftHeraldTakedowns")] #[serde(skip_serializing_if = "Option::is_none")] pub rift_herald_takedowns: Option, + #[serde(rename = "saveAllyFromDeath")] + #[serde(skip_serializing_if = "Option::is_none")] + pub save_ally_from_death: Option, #[serde(rename = "scuttleCrabKills")] #[serde(skip_serializing_if = "Option::is_none")] pub scuttle_crab_kills: Option, @@ -1438,12 +1486,18 @@ pub mod match_v5 { #[serde(rename = "soloKills")] #[serde(skip_serializing_if = "Option::is_none")] pub solo_kills: Option, + #[serde(rename = "soloTurretsLategame")] + #[serde(skip_serializing_if = "Option::is_none")] + pub solo_turrets_lategame: Option, #[serde(rename = "stealthWardsPlaced")] #[serde(skip_serializing_if = "Option::is_none")] pub stealth_wards_placed: Option, #[serde(rename = "survivedSingleDigitHpCount")] #[serde(skip_serializing_if = "Option::is_none")] pub survived_single_digit_hp_count: Option, + #[serde(rename = "survivedThreeImmobilizesInFight")] + #[serde(skip_serializing_if = "Option::is_none")] + pub survived_three_immobilizes_in_fight: Option, #[serde(rename = "takedownOnFirstTurret")] #[serde(skip_serializing_if = "Option::is_none")] pub takedown_on_first_turret: Option, @@ -1483,6 +1537,12 @@ pub mod match_v5 { #[serde(rename = "thirdInhibitorDestroyedTime")] #[serde(skip_serializing_if = "Option::is_none")] pub third_inhibitor_destroyed_time: Option, + #[serde(rename = "threeWardsOneSweeperCount")] + #[serde(skip_serializing_if = "Option::is_none")] + pub three_wards_one_sweeper_count: Option, + #[serde(rename = "tookLargeDamageSurvived")] + #[serde(skip_serializing_if = "Option::is_none")] + pub took_large_damage_survived: Option, #[serde(rename = "turretPlatesTaken")] #[serde(skip_serializing_if = "Option::is_none")] pub turret_plates_taken: Option, @@ -1524,7 +1584,7 @@ pub mod match_v5 { pub real_timestamp: Option, #[serde(rename = "timestamp")] pub timestamp: i32, - /// Timeline event type.
+ /// Timeline event type.
/// (Known legal values: ASCENDED_EVENT, BUILDING_KILL, CAPTURE_POINT, CHAMPION_KILL, CHAMPION_SPECIAL_KILL, CHAMPION_TRANSFORM, DRAGON_SOUL_GIVEN, ELITE_MONSTER_KILL, GAME_END, ITEM_DESTROYED, ITEM_PURCHASED, ITEM_SOLD, ITEM_UNDO, LEVEL_UP, PAUSE_END, PAUSE_START, SKILL_LEVEL_UP, TURRET_PLATE_DESTROYED, WARD_KILL, WARD_PLACED) #[serde(rename = "type")] pub r#type: String, @@ -1997,7 +2057,7 @@ pub mod spectator_v4 { #[derive(serde::Serialize, serde::Deserialize)] #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] pub struct FeaturedGameInfo { - /// The game mode
+ /// The game mode
/// (Legal values: CLASSIC, ODIN, ARAM, TUTORIAL, ONEFORALL, ASCENSION, FIRSTBLOOD, KINGPORO) #[serde(rename = "gameMode")] pub game_mode: crate::consts::GameMode, @@ -2007,7 +2067,7 @@ pub mod spectator_v4 { /// The ID of the map #[serde(rename = "mapId")] pub map_id: crate::consts::Map, - /// The game type
+ /// The game type
/// (Legal values: CUSTOM_GAME, MATCHED_GAME, TUTORIAL_GAME) #[serde(rename = "gameType")] pub game_type: crate::consts::GameType, @@ -2183,7 +2243,7 @@ pub mod tft_league_v1 { pub summoner_name: String, #[serde(rename = "queueType")] pub queue_type: crate::consts::QueueType, - /// Only included for the RANKED_TFT_TURBO queueType.
+ /// Only included for the RANKED_TFT_TURBO queueType.
/// (Legal values: ORANGE, PURPLE, BLUE, GREEN, GRAY) #[serde(rename = "ratedTier")] #[serde(skip_serializing_if = "Option::is_none")] @@ -2471,15 +2531,15 @@ pub mod tournament_stub_v4 { /// The team size of the game. Valid values are 1-5. #[serde(rename = "teamSize")] pub team_size: i32, - /// The pick type of the game.
+ /// The pick type of the game.
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT) #[serde(rename = "pickType")] pub pick_type: String, - /// The map type of the game.
+ /// The map type of the game.
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS) #[serde(rename = "mapType")] pub map_type: String, - /// The spectator type of the game.
+ /// The spectator type of the game.
/// (Legal values: NONE, LOBBYONLY, ALL) #[serde(rename = "spectatorType")] pub spectator_type: String, @@ -2512,7 +2572,7 @@ pub mod tournament_stub_v4 { #[derive(serde::Serialize, serde::Deserialize)] #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] pub struct ProviderRegistrationParameters { - /// The region in which the provider will be running tournaments.
+ /// The region in which the provider will be running tournaments.
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR) #[serde(rename = "region")] pub region: String, @@ -2556,15 +2616,15 @@ pub mod tournament_v4 { /// The team size of the game. Valid values are 1-5. #[serde(rename = "teamSize")] pub team_size: i32, - /// The pick type of the game.
+ /// The pick type of the game.
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT) #[serde(rename = "pickType")] pub pick_type: String, - /// The map type of the game.
+ /// The map type of the game.
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS) #[serde(rename = "mapType")] pub map_type: String, - /// The spectator type of the game.
+ /// The spectator type of the game.
/// (Legal values: NONE, LOBBYONLY, ALL) #[serde(rename = "spectatorType")] pub spectator_type: String, @@ -2604,7 +2664,7 @@ pub mod tournament_v4 { /// The tournament code's ID. #[serde(rename = "id")] pub id: i32, - /// The tournament code's region.
+ /// The tournament code's region.
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR) #[serde(rename = "region")] pub region: String, @@ -2624,15 +2684,15 @@ pub mod tournament_v4 { #[serde(rename = "allowedSummonerIds")] #[serde(skip_serializing_if = "Option::is_none")] pub allowed_summoner_ids: Option>, - /// The pick type
+ /// The pick type
/// (Legal values: BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT) #[serde(rename = "pickType")] pub pick_type: String, - /// The map type
+ /// The map type
/// (Legal values: SUMMONERS_RIFT, TWISTED_TREELINE, HOWLING_ABYSS) #[serde(rename = "mapType")] pub map_type: String, - /// The spectator type
+ /// The spectator type
/// (Legal values: NONE, LOBBYONLY, ALL) #[serde(rename = "spectatorType")] pub spectator_type: String, @@ -2665,7 +2725,7 @@ pub mod tournament_v4 { #[derive(serde::Serialize, serde::Deserialize)] #[cfg_attr(feature = "deny-unknown-fields", serde(deny_unknown_fields))] pub struct ProviderRegistrationParameters { - /// The region in which the provider will be running tournaments.
+ /// The region in which the provider will be running tournaments.
/// (Legal values: BR, EUNE, EUW, JP, LAN, LAS, NA, OCE, PBE, RU, TR) #[serde(rename = "region")] pub region: String, @@ -2762,7 +2822,8 @@ pub mod val_content_v1 { #[serde(rename = "de-DE")] pub de_de: String, #[serde(rename = "en-GB")] - pub en_gb: String, + #[serde(skip_serializing_if = "Option::is_none")] + pub en_gb: Option, #[serde(rename = "en-US")] pub en_us: String, #[serde(rename = "es-ES")] diff --git a/riven/tests/tests_europe.rs b/riven/tests/tests_europe.rs index 08d8308..ddf707f 100644 --- a/riven/tests/tests_europe.rs +++ b/riven/tests/tests_europe.rs @@ -16,6 +16,7 @@ static MATCHES: &[&str] = &[ "EUW1_5097684633", "EUW1_5097963383", "EUW1_5102203800", // https://github.com/MingweiSamuel/Riven/issues/36 + "EUW1_5765650307", // https://gist.github.com/MingweiSamuel/d5f9dc40cc5a80a9255e488f27705c56?permalink_comment_id=4088256#gistcomment-4088256 ]; async_tests! {