From d115d33079339771131681795fef63562021a096 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 May 2022 22:50:52 +0200 Subject: [PATCH] feat: May 2022 update (#20) --- data/routes.mjs | 15 +++++ scripts/helpers/update-data.mjs | 7 +- src/achievements.ts | 10 +++ src/bikeFrames.ts | 12 ++++ src/headgears.ts | 10 +++ src/jerseys.ts | 114 +++++++++++++++++++++++++++----- src/paintJobs.ts | 20 ++++++ src/routes.ts | 48 ++++++++++++++ src/runShirts.ts | 35 ++++++++++ src/runShoes.ts | 5 ++ src/runShorts.ts | 35 ++++++++++ src/socks.ts | 10 +++ 12 files changed, 301 insertions(+), 20 deletions(-) diff --git a/data/routes.mjs b/data/routes.mjs index 58ac45b4..a3df1fa8 100644 --- a/data/routes.mjs +++ b/data/routes.mjs @@ -1766,6 +1766,7 @@ export const routes = [ id: 5745690, slug: "downdown-titans", segments: [], + experience: 490, }, { id: 910684583, @@ -1780,6 +1781,7 @@ export const routes = [ id: 1082034232, slug: "mayan-bridge-loop", segments: [], + experience: 105, stravaSegmentId: 26774640, zwiftInsiderUrl: "https://zwiftinsider.com/mayan-bridge-loop", }, @@ -1787,6 +1789,7 @@ export const routes = [ id: 1993374659, slug: "handful-of-gravel", segments: [], + experience: 125, }, { id: 2627606248, @@ -1799,6 +1802,7 @@ export const routes = [ id: 2708527018, slug: "handful-of-gravel-run", segments: [], + experience: 125, }, { id: 2746475460, @@ -1809,6 +1813,7 @@ export const routes = [ "titans-grove-kom-rev", "fuego-flats", ], + experience: 134, stravaSegmentId: 22914116, zwiftInsiderUrl: "https://zwiftinsider.com/eastern-eight", }, @@ -1831,6 +1836,7 @@ export const routes = [ id: 3453194200, slug: "triple-flat-loops", segments: ["watopia-sprint-rev", "fuego-flats", "watopia-sprint"], + experience: 680, stravaSegmentId: 20453276, zwiftInsiderUrl: "https://zwiftinsider.com/triple-flat-loops", }, @@ -1838,7 +1844,16 @@ export const routes = [ id: 3573087582, slug: "italian-villas-circuit", segments: ["watopia-sprint"], + experience: 40, stravaSegmentId: 26792130, zwiftInsiderUrl: "https://zwiftinsider.com/italian-villas-sprint-circuit", }, + { + id: 1988847319, + slug: "splash-and-dash", + }, + { + id: 4232726854, + slug: "surfin-safari", + }, ]; diff --git a/scripts/helpers/update-data.mjs b/scripts/helpers/update-data.mjs index a99c125d..3e4874dc 100644 --- a/scripts/helpers/update-data.mjs +++ b/scripts/helpers/update-data.mjs @@ -78,9 +78,10 @@ export async function updateData() { supportsTT: item.supportsTimeTrialMode === "1", supportsMeetups: item.blockedForMeetups === "0", sports: item.sports === "2" ? ["running"] : ["running", "cycling"], - experience: item.xp - ? +item.xp - : manualRouteData?.experience ?? undefined, + experience: + item.xp && +item.xp > 10 + ? +item.xp + : manualRouteData?.experience ?? undefined, stravaSegmentId: manualRouteData?.stravaSegmentId ?? undefined, stravaSegmentUrl: manualRouteData?.stravaSegmentId ? `https://www.strava.com/segments/${manualRouteData.stravaSegmentId}` diff --git a/src/achievements.ts b/src/achievements.ts index d6cbb61f..2bb96354 100644 --- a/src/achievements.ts +++ b/src/achievements.ts @@ -891,5 +891,15 @@ export const achievements: ReadonlyArray = [ "id": 184, "name": "HANDFUL OF GRAVEL (RUNNING)", "imageName": "RouteComplete" + }, + { + "id": 185, + "name": "SURFIN' SAFARI", + "imageName": "RouteComplete" + }, + { + "id": 186, + "name": "SPLASH AND DASH", + "imageName": "RouteComplete" } ]; diff --git a/src/bikeFrames.ts b/src/bikeFrames.ts index f3813c51..46ed9f3d 100644 --- a/src/bikeFrames.ts +++ b/src/bikeFrames.ts @@ -8,6 +8,12 @@ export const bikeFrames: ReadonlyArray = [ "modelYear": 2018, "isTT": true }, + { + "id": 11394848, + "name": "Felt Felt TT 2021", + "modelYear": 2021, + "isTT": true + }, { "id": 57842352, "name": "Liv LivLangma2021", @@ -307,6 +313,12 @@ export const bikeFrames: ReadonlyArray = [ "modelYear": 2021, "isTT": false }, + { + "id": 2002850191, + "name": "Scott ScottPlasma2022", + "modelYear": 2022, + "isTT": true + }, { "id": 2005280203, "name": "Cannondale System Six", diff --git a/src/headgears.ts b/src/headgears.ts index 0b7e6bc2..a57c77e2 100644 --- a/src/headgears.ts +++ b/src/headgears.ts @@ -27,6 +27,11 @@ export const headgears: ReadonlyArray = [ "name": "Giro Vanquish", "imageName": "GiroVanquish" }, + { + "id": 322596379, + "name": "2022 ZA Tri Team Design", + "imageName": "SpecializedZATri2022" + }, { "id": 407446488, "name": "Tour de Zwift 2022 Ride Cap", @@ -47,6 +52,11 @@ export const headgears: ReadonlyArray = [ "name": "SworksTT2020 Helmet", "imageName": "SworksTT2020" }, + { + "id": 518828917, + "name": "2022 adidas RFTO", + "imageName": "RunnerCapRFTO2022_thumb" + }, { "id": 521965311, "name": "Giro Eclipse Bike Exchange", diff --git a/src/jerseys.ts b/src/jerseys.ts index ea41d755..f6495d83 100644 --- a/src/jerseys.ts +++ b/src/jerseys.ts @@ -67,6 +67,11 @@ export const jerseys: ReadonlyArray = [ "name": "Ceratizit-WNT", "imageName": "WNTRotor2019_thumb" }, + { + "id": 119884741, + "name": "Velos", + "imageName": "Velos2022_thumb" + }, { "id": 120279066, "name": "Super League Community 2021 Kit", @@ -257,6 +262,11 @@ export const jerseys: ReadonlyArray = [ "name": "Orica Scott", "imageName": "OricaScott_thumb" }, + { + "id": 310916269, + "name": "WattFabrik", + "imageName": "WattFabrik2022_thumb" + }, { "id": 315634460, "name": "Saris-NoPinz", @@ -372,6 +382,11 @@ export const jerseys: ReadonlyArray = [ "name": "Norseman Black Jersey", "imageName": "Norseman2018_thumb" }, + { + "id": 429028749, + "name": "Scannellare", + "imageName": "Scannellare2022_thumb" + }, { "id": 429292215, "name": "Adventure Stache 2020", @@ -472,6 +487,11 @@ export const jerseys: ReadonlyArray = [ "name": "DD-Qhubeka-Fan", "imageName": "DD-Qhubeka-Fan_thumb" }, + { + "id": 561363741, + "name": "CredoTri", + "imageName": "CredoTri2022_thumb" + }, { "id": 571847813, "name": "Giant Seorak Gran Fondo", @@ -957,6 +977,11 @@ export const jerseys: ReadonlyArray = [ "name": "SZ", "imageName": "SZ2020_thumb" }, + { + "id": 1079776699, + "name": "TRINITY Racing Training", + "imageName": "TRINITYTraining2022_thumb" + }, { "id": 1086432412, "name": "Alpine Slopes 2", @@ -1104,7 +1129,7 @@ export const jerseys: ReadonlyArray = [ }, { "id": 1276763333, - "name": "SAS", + "name": "SAINTS", "imageName": "SASCycleClub_thumb" }, { @@ -1693,9 +1718,9 @@ export const jerseys: ReadonlyArray = [ "imageName": "AHDRLivBison_thumb" }, { - "id": 1957749265, - "name": "Ruhr Riders", - "imageName": "ZwiftRuhrRiders2018_thumb" + "id": 1953455256, + "name": "Ruhrrider 2022", + "imageName": "RuhrRiders2022_thumb" }, { "id": 1969335676, @@ -1952,6 +1977,16 @@ export const jerseys: ReadonlyArray = [ "name": "Zwift Women's Day", "imageName": "Zwift_WomensDay_thumb" }, + { + "id": 2303114199, + "name": "Enjoy Your Bike", + "imageName": "EnjoyYourBike2022_thumb" + }, + { + "id": 2308547097, + "name": "Pride 2022", + "imageName": "PrideOn2022_thumb" + }, { "id": 2327670378, "name": "Wahoo Climbers", @@ -2022,6 +2057,11 @@ export const jerseys: ReadonlyArray = [ "name": "El Giro de Rigo 2021", "imageName": "ElGiroDeRigoCR2021_thumb" }, + { + "id": 2389611207, + "name": "Varlo Cycling", + "imageName": "Varlo2022_thumb" + }, { "id": 2394699876, "name": "GearPatrol", @@ -2237,6 +2277,11 @@ export const jerseys: ReadonlyArray = [ "name": "Team Vitality Kit", "imageName": "VitalityCycling2021_thumb" }, + { + "id": 2636119382, + "name": "Team Greece", + "imageName": "TeamGreece2022_thumb" + }, { "id": 2643412332, "name": "Rave", @@ -2248,9 +2293,9 @@ export const jerseys: ReadonlyArray = [ "imageName": "FreeSpeed2015_thumb" }, { - "id": 2651946795, - "name": "Trinity", - "imageName": "Trinity2021_thumb" + "id": 2662676193, + "name": "Alpentroedler Velo Club", + "imageName": "Alpentroedler2022_thumb" }, { "id": 2668995113, @@ -2312,6 +2357,11 @@ export const jerseys: ReadonlyArray = [ "name": "Sprint/Overall", "imageName": "Zwift_Green_Orange" }, + { + "id": 2727136434, + "name": "Team Novo Nordisk 2022", + "imageName": "TeamNovoNordisk2022_thumb" + }, { "id": 2736225678, "name": "ZHCC", @@ -2357,6 +2407,11 @@ export const jerseys: ReadonlyArray = [ "name": "Castelli Virtual Aero Dark", "imageName": "CastelliVirtualClimber_Dark_thumb" }, + { + "id": 2756919352, + "name": "Ride Like King 14", + "imageName": "RideLikeAKing2022_thumb" + }, { "id": 2757515117, "name": "Trek", @@ -2367,6 +2422,11 @@ export const jerseys: ReadonlyArray = [ "name": "Black Sheep Black", "imageName": "BlackSheepBlack2019_thumb" }, + { + "id": 2761385929, + "name": "TriMag.DE", + "imageName": "TriMagde2022_thumb" + }, { "id": 2763945545, "name": "Switzerland Elite", @@ -2387,6 +2447,11 @@ export const jerseys: ReadonlyArray = [ "name": "Team ODZ 2018", "imageName": "ODZ2018Mens_thumb" }, + { + "id": 2781649419, + "name": "Halo ID", + "imageName": "HaloID2022_thumb" + }, { "id": 2784272641, "name": "Garneau Club 2018", @@ -2552,6 +2617,11 @@ export const jerseys: ReadonlyArray = [ "name": "Classy 2", "imageName": "ZwiftClassy02_thumb" }, + { + "id": 2988130623, + "name": "LUX Cycling", + "imageName": "LUXCycling2022_thumb" + }, { "id": 2993458510, "name": "Canyon Eisberg", @@ -2742,11 +2812,6 @@ export const jerseys: ReadonlyArray = [ "name": "WEZ 2020", "imageName": "WEZ2020_thumb" }, - { - "id": 3236010357, - "name": "Women's Ride Series 2022", - "imageName": "ZwiftWomens2022_thumb" - }, { "id": 3237599752, "name": "Zwift zFondo December 2018", @@ -2892,11 +2957,6 @@ export const jerseys: ReadonlyArray = [ "name": "Valcar-Travel and Service", "imageName": "ValcarCylance2019_thumb" }, - { - "id": 3375581593, - "name": "Team Novo Nordisk", - "imageName": "NovoNordisk_thumb" - }, { "id": 3382526362, "name": "USAC Elite", @@ -2922,6 +2982,11 @@ export const jerseys: ReadonlyArray = [ "name": "Zwift Insider", "imageName": "ZwiftInsider2022_thumb" }, + { + "id": 3398931495, + "name": "Team Roland Cogeas Edelweiss", + "imageName": "TeamRolandCogeas2022_thumb" + }, { "id": 3405367476, "name": "Evoq.Bike", @@ -2937,6 +3002,11 @@ export const jerseys: ReadonlyArray = [ "name": "World Bicycle Relief", "imageName": "WBRKit2019_thumb" }, + { + "id": 3415411505, + "name": "Sansego", + "imageName": "SansegoTri2022_thumb" + }, { "id": 3419241775, "name": "Agowatt", @@ -2972,6 +3042,11 @@ export const jerseys: ReadonlyArray = [ "name": "Liv Ride Like King 2018", "imageName": "RideLikeKing2018_thumb" }, + { + "id": 3430221138, + "name": "2022 ZA Tri Team Design", + "imageName": "ZATri2022_thumb" + }, { "id": 3439799665, "name": "Jan Frodeno", @@ -3172,6 +3247,11 @@ export const jerseys: ReadonlyArray = [ "name": "Movember", "imageName": "Movember2019_thumb" }, + { + "id": 3651831027, + "name": "TRINITY Racing Race", + "imageName": "TRINITYRace2022_thumb" + }, { "id": 3652093952, "name": "I Race Like A Girl", diff --git a/src/paintJobs.ts b/src/paintJobs.ts index 97f68e8d..58f6417e 100644 --- a/src/paintJobs.ts +++ b/src/paintJobs.ts @@ -138,6 +138,10 @@ export const paintJobs: ReadonlyArray = [ "id": 937986506, "name": "Mosaic MosaicRT12022-Mosaic RT1" }, + { + "id": 967878476, + "name": "Giant GiantTCRAdvancedSL-" + }, { "id": 997166951, "name": "Specialized Allez Sprint-Sagan" @@ -154,6 +158,10 @@ export const paintJobs: ReadonlyArray = [ "id": 1132004705, "name": "Specialized Roubaix S-Works-Rocket Red" }, + { + "id": 1204138276, + "name": "Scott Foil-Scott2022" + }, { "id": 1205664811, "name": "Ridley Noah Fast 2019-Lotto Soudal" @@ -170,6 +178,10 @@ export const paintJobs: ReadonlyArray = [ "id": 1215759893, "name": "Zwift Carbon-Total Direct Energie" }, + { + "id": 1240711427, + "name": "Liv LivLangma2021-Bike Exchange 2022" + }, { "id": 1248651886, "name": "Zwift Carbon-Lapierre FDJ" @@ -234,6 +246,10 @@ export const paintJobs: ReadonlyArray = [ "id": 1705788757, "name": "Specialized Tarmac SL7-Bora Hansgrohe" }, + { + "id": 1740143364, + "name": "Liv LivLangma2021-XSTRA 2022" + }, { "id": 1772206727, "name": "Canyon Ultimate-Canyon Ultimate Team Edition" @@ -538,6 +554,10 @@ export const paintJobs: ReadonlyArray = [ "id": 3593209473, "name": "Liv LivLangma2021-Liv Langma" }, + { + "id": 3608080215, + "name": "Specialized Shiv Disc-Specialized Shiv 2022" + }, { "id": 3628655892, "name": "Canyon Speedmax-Black/White" diff --git a/src/routes.ts b/src/routes.ts index 24e695a3..cf8709b2 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -2580,6 +2580,30 @@ export const routes: ReadonlyArray = [ "zwiftInsiderUrl": "https://zwiftinsider.com/route/valley-to-mountaintop", "whatsOnZwiftUrl": "https://whatsonzwift.com/world/makuri-islands/route/valley-to-mountaintop" }, + { + "id": 1988847319, + "name": "Splash and Dash", + "slug": "splash-and-dash", + "world": "watopia", + "eventOnly": true, + "distance": 6.03, + "elevation": 26, + "leadInDistance": 0.217, + "leadInElevation": 0, + "leadInDistanceFreeRide": 0.22, + "leadInElevationFreeRide": 0, + "leadInDistanceMeetups": 0.22, + "leadInElevationInMeetups": 0, + "segments": [], + "segmentsOnRoute": [], + "levelLocked": false, + "lap": false, + "supportsTT": false, + "supportsMeetups": false, + "sports": [ + "running" + ] + }, { "id": 1993374659, "name": "Handful Of Gravel", @@ -6882,6 +6906,30 @@ export const routes: ReadonlyArray = [ "zwiftInsiderUrl": "https://zwiftinsider.com/route/london-triple-loops", "whatsOnZwiftUrl": "https://whatsonzwift.com/world/london/route/triple-loops" }, + { + "id": 4232726854, + "name": "Surfin' Safari", + "slug": "surfin-safari", + "world": "watopia", + "eventOnly": true, + "distance": 9.77, + "elevation": 43, + "leadInDistance": 0.197, + "leadInElevation": 0, + "leadInDistanceFreeRide": 0.185, + "leadInElevationFreeRide": 0, + "leadInDistanceMeetups": 0.185, + "leadInElevationInMeetups": 0, + "segments": [], + "segmentsOnRoute": [], + "levelLocked": false, + "lap": false, + "supportsTT": false, + "supportsMeetups": false, + "sports": [ + "running" + ] + }, { "id": 4240327959, "name": "11.1 Ocean Blvd", diff --git a/src/runShirts.ts b/src/runShirts.ts index 888a4131..0db85e5b 100644 --- a/src/runShirts.ts +++ b/src/runShirts.ts @@ -182,6 +182,11 @@ export const runShirts: ReadonlyArray = [ "name": "Dempsey Challenge", "imageName": "DempseyChallengeRun2021_thumb" }, + { + "id": 1207872178, + "name": "2022 adidas RFTO", + "imageName": "RFTO2022_thumb" + }, { "id": 1288766544, "name": "Super League Tri Arena Games - White Jersey", @@ -287,6 +292,11 @@ export const runShirts: ReadonlyArray = [ "name": "Halloween Chase", "imageName": "HalloweenChase2019_thumb" }, + { + "id": 1954985515, + "name": "2022 ZA Tri Team Design", + "imageName": "ZATriRun2022_thumb" + }, { "id": 1972429209, "name": "Super League Tri Arena Games - Green Jersey", @@ -362,6 +372,11 @@ export const runShirts: ReadonlyArray = [ "name": "Jan Frodeno", "imageName": "JanFrodeno2019_thumb" }, + { + "id": 2292871545, + "name": "Pride 2022", + "imageName": "PrideOn2022_thumb" + }, { "id": 2296133418, "name": "Zwift Women's Tank Top 2", @@ -382,6 +397,11 @@ export const runShirts: ReadonlyArray = [ "name": "ZRS Summer 2021 Shirt", "imageName": "ZRS022021_thumb" }, + { + "id": 2327454175, + "name": "Varlo Team", + "imageName": "VarloRun2022_thumb" + }, { "id": 2354164139, "name": "NGNM WRRS 2021 Run Shirt", @@ -462,6 +482,11 @@ export const runShirts: ReadonlyArray = [ "name": "Lionel Sanders", "imageName": "LionelSanders2019_thumb" }, + { + "id": 2795593609, + "name": "Halo ID", + "imageName": "HaloIDRun2022_thumb" + }, { "id": 2839896779, "name": "Tour Of Watopia", @@ -597,6 +622,11 @@ export const runShirts: ReadonlyArray = [ "name": "Feels Like Summer", "imageName": "FeelsLikeSummer2019Thumb" }, + { + "id": 3742868537, + "name": "CredoTri", + "imageName": "CredoTriRun2022_thumb" + }, { "id": 3746982074, "name": "Norseman White Run Shirt", @@ -632,6 +662,11 @@ export const runShirts: ReadonlyArray = [ "name": "Pride On", "imageName": "PrideOn2020_thumb" }, + { + "id": 4116498457, + "name": "Sansego", + "imageName": "SansegoTriRun2022_thumb" + }, { "id": 4197967370, "name": "Zwift Running Shirt 11", diff --git a/src/runShoes.ts b/src/runShoes.ts index 319328d3..4b36464f 100644 --- a/src/runShoes.ts +++ b/src/runShoes.ts @@ -52,6 +52,11 @@ export const runShoes: ReadonlyArray = [ "name": "Zwift Blue", "imageName": "RunningShoe_Blue" }, + { + "id": 2810712238, + "name": "adidas ULTRABOOST 22", + "imageName": "RunningShoesRFTO2022_thumb" + }, { "id": 3055713810, "name": "HOVR Machina 2", diff --git a/src/runShorts.ts b/src/runShorts.ts index 9d608e40..2462ac38 100644 --- a/src/runShorts.ts +++ b/src/runShorts.ts @@ -42,6 +42,11 @@ export const runShorts: ReadonlyArray = [ "name": "LA Road Runners", "imageName": "LARR2019_thumb" }, + { + "id": 325633081, + "name": "2022 ZA Tri Team Design", + "imageName": "ZATriRun2022_thumb" + }, { "id": 424581175, "name": "World Cancer Day", @@ -152,6 +157,11 @@ export const runShorts: ReadonlyArray = [ "name": "2021 ZA Tri Run Shorts", "imageName": "ZATriRun2021_thumb" }, + { + "id": 1434435763, + "name": "Halo ID", + "imageName": "HaloIDRun2022_thumb" + }, { "id": 1625357719, "name": "WHOOP Run Shorts", @@ -187,6 +197,11 @@ export const runShorts: ReadonlyArray = [ "name": "Women's Run Series 2022", "imageName": "ZwiftWomensRun2022_thumb" }, + { + "id": 2127809752, + "name": "2022 adidas RFTO", + "imageName": "RFTO2022_thumb" + }, { "id": 2226846384, "name": "Zwift Running Shorts 12", @@ -232,11 +247,21 @@ export const runShorts: ReadonlyArray = [ "name": "ZA Run Team In Season", "imageName": "ZARunInSeason2022_thumb" }, + { + "id": 2584610635, + "name": "CredoTri", + "imageName": "CredoTriRun2022_thumb" + }, { "id": 2642396308, "name": "Team Zoot 2022", "imageName": "TeamZootRun2022_thumb" }, + { + "id": 2810864678, + "name": "Sansego", + "imageName": "SansegoTriRun2022_thumb" + }, { "id": 2825173794, "name": "ZRL Munich Run Shorts", @@ -277,6 +302,11 @@ export const runShorts: ReadonlyArray = [ "name": "Zwift Running Shorts 13", "imageName": "Shorts13" }, + { + "id": 3146952674, + "name": "Pride 2022", + "imageName": "PrideOn2022_thumb" + }, { "id": 3147597225, "name": "Running Day", @@ -377,6 +407,11 @@ export const runShorts: ReadonlyArray = [ "name": "ZRL Sydney Run Shorts", "imageName": "ZRLSydney2022_thumb" }, + { + "id": 3981726669, + "name": "Varlo Team", + "imageName": "VarloRun2022_thumb" + }, { "id": 4037580579, "name": "New Balance", diff --git a/src/socks.ts b/src/socks.ts index 2c57a043..6977ef29 100644 --- a/src/socks.ts +++ b/src/socks.ts @@ -397,6 +397,11 @@ export const socks: ReadonlyArray = [ "name": "Fondo Plan Socks", "imageName": "HelloFondo" }, + { + "id": 3523567906, + "name": "Pride 2022", + "imageName": "Socks_PrideOn2022" + }, { "id": 3620800398, "name": "2021 ZA Run Socks", @@ -462,6 +467,11 @@ export const socks: ReadonlyArray = [ "name": "GranFondo Plan Socks", "imageName": "GranFondo" }, + { + "id": 4049893898, + "name": "2022 adidas RFTO", + "imageName": "SocksRFTO2022" + }, { "id": 4137098634, "name": "Le Col CC",