diff --git a/AGENTS.md b/AGENTS.md index d92daa0..f5a7cf0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -87,6 +87,9 @@ All tools are prefixed with `pcm_` and carry `readOnlyHint: true` / `destructive - **Platform:** auto-discovery is Windows-only. On macOS/Linux (Wine/Proton), `pcm_list_saves`/`getPcmRoot` throw — pass an absolute `.cdb` path to `pcm_select_save`. - **Logging** must go to `stderr` (`console.error`); stdout is the MCP transport. +- **Country fields** must use `STA_country.gene_sz_flag` (human-readable name, e.g. + `France`), never `STA_country.CONSTANT` (internal constant). Keep this consistent + across all tools that expose a cyclist/team country. ## README maintenance diff --git a/src/tools/get-team-roster.ts b/src/tools/get-team-roster.ts index 060f095..1115ad0 100644 --- a/src/tools/get-team-roster.ts +++ b/src/tools/get-team-roster.ts @@ -11,7 +11,7 @@ const cyclistSchema = z.object({ country: z .string() .nullable() - .describe("Country name (STA_country.CONSTANT)"), + .describe("Country name (STA_country.gene_sz_flag), e.g. `France`"), age: z .number() .nullable() @@ -138,7 +138,7 @@ export function registerGetTeamRoster(server: McpServer): void { tr.CONSTANT AS type, ct.iYearEnd AS contractEndYear, ct.finan_i_period_wage AS wage, - co.CONSTANT AS country, + co.gene_sz_flag AS country, ${ratingsColumns(hasMediumMountain)} FROM DYN_cyclist c LEFT JOIN STA_type_rider tr ON c.fkIDtype_rider = tr.IDtype_rider diff --git a/src/tools/search-cyclist.ts b/src/tools/search-cyclist.ts index 9bbf1c5..f0a8113 100644 --- a/src/tools/search-cyclist.ts +++ b/src/tools/search-cyclist.ts @@ -10,7 +10,7 @@ const cyclistSchema = z.object({ country: z .string() .nullable() - .describe("Country name (STA_country.CONSTANT)"), + .describe("Country name (STA_country.gene_sz_flag), e.g. `France`"), ...ratingsSchema.shape, currentAbility: z .number() @@ -70,7 +70,7 @@ export function registerSearchCyclist(server: McpServer): void { c.gene_sz_lastname, ${ratingsColumns(hasMediumMountain)}, ${hasCurrentAbility ? "c.value_f_current_ability" : "NULL"} AS currentAbility, - co.CONSTANT AS country + co.gene_sz_flag AS country FROM DYN_cyclist c LEFT JOIN STA_region r ON c.fkIDregion = r.IDregion LEFT JOIN STA_country co ON r.fkIDcountry = co.IDcountry diff --git a/test/tools/__snapshots__/get-team-roster.test.ts.snap b/test/tools/__snapshots__/get-team-roster.test.ts.snap index 405c556..3e7ea77 100644 --- a/test/tools/__snapshots__/get-team-roster.test.ts.snap +++ b/test/tools/__snapshots__/get-team-roster.test.ts.snap @@ -9,7 +9,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 78, "cobble": 72, "contractEndYear": null, - "country": "CRC", + "country": "Costa-Rica", "downhilling": 75, "endurance": 70, "firstName": "Andrey", @@ -35,7 +35,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 53, "contractEndYear": null, - "country": "COL", + "country": "Colombia", "downhilling": 64, "endurance": 65, "firstName": "Winner Andrew", @@ -61,7 +61,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 61, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 65, "endurance": 64, "firstName": "Jorge", @@ -87,7 +87,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 61, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 69, "firstName": "Carlos", @@ -113,7 +113,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 71, "contractEndYear": null, - "country": "ITA", + "country": "Italy", "downhilling": 71, "endurance": 72, "firstName": "Daniele", @@ -139,7 +139,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 58, "contractEndYear": null, - "country": "COL", + "country": "Colombia", "downhilling": 71, "endurance": 69, "firstName": "Carlos Alberto", @@ -165,7 +165,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 69, "cobble": 55, "contractEndYear": null, - "country": "POR", + "country": "Portugal", "downhilling": 64, "endurance": 63, "firstName": "Nuno", @@ -191,7 +191,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 66, "cobble": 57, "contractEndYear": null, - "country": "ECU", + "country": "Ecuador", "downhilling": 68, "endurance": 69, "firstName": "Richard", @@ -217,7 +217,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 62, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 69, "endurance": 61, "firstName": "Héctor", @@ -243,7 +243,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 62, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 59, "firstName": "Jaime", @@ -269,7 +269,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 68, "cobble": 57, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 66, "firstName": "Victor", @@ -295,7 +295,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 81, "cobble": 75, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 72, "endurance": 74, "firstName": "Imanol", @@ -321,7 +321,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 65, "cobble": 55, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 67, "endurance": 66, "firstName": "Ruben", @@ -347,7 +347,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 61, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 75, "endurance": 70, "firstName": "Mikel", @@ -373,7 +373,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 73, "contractEndYear": null, - "country": "POR", + "country": "Portugal", "downhilling": 67, "endurance": 70, "firstName": "Nelson", @@ -399,7 +399,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 63, "cobble": 54, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 63, "endurance": 61, "firstName": "Antonio", @@ -425,7 +425,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 65, "cobble": 63, "contractEndYear": 2019, - "country": "COL", + "country": "Colombia", "downhilling": 76, "endurance": 71, "firstName": "Nairo", @@ -451,7 +451,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 69, "cobble": 63, "contractEndYear": null, - "country": "COL", + "country": "Colombia", "downhilling": 68, "endurance": 67, "firstName": "Dayer", @@ -477,7 +477,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 59, "cobble": 67, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 74, "endurance": 70, "firstName": "José Joaquin", @@ -503,7 +503,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 61, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 67, "firstName": "Jaime", @@ -529,7 +529,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 69, "cobble": 59, "contractEndYear": 2019, - "country": "ARG", + "country": "Argentina", "downhilling": 65, "endurance": 64, "firstName": "Eduardo", @@ -555,7 +555,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 65, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 70, "firstName": "Marc", @@ -581,7 +581,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 70, "contractEndYear": null, - "country": "GER", + "country": "Germany", "downhilling": 71, "endurance": 66, "firstName": "Jasha", @@ -607,7 +607,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 54, "contractEndYear": 2018, - "country": "ESP", + "country": "Spain", "downhilling": 72, "endurance": 66, "firstName": "Rafael", @@ -633,7 +633,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 68, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 75, "endurance": 81, "firstName": "Alejandro", @@ -667,7 +667,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 78, "cobble": 72, "contractEndYear": 2019, - "country": "CRC", + "country": "Costa-Rica", "downhilling": 75, "endurance": 70, "firstName": "Andrey", @@ -693,7 +693,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 57, "contractEndYear": 2019, - "country": "COL", + "country": "Colombia", "downhilling": 64, "endurance": 67, "firstName": "Winner Andrew", @@ -719,7 +719,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 62, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 65, "endurance": 63, "firstName": "Jorge", @@ -745,7 +745,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 62, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 70, "firstName": "Carlos", @@ -771,7 +771,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 71, "contractEndYear": 2019, - "country": "ITA", + "country": "Italy", "downhilling": 71, "endurance": 72, "firstName": "Daniele", @@ -797,7 +797,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 60, "contractEndYear": 2019, - "country": "COL", + "country": "Colombia", "downhilling": 71, "endurance": 69, "firstName": "Carlos Alberto", @@ -823,7 +823,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 69, "cobble": 59, "contractEndYear": 2019, - "country": "ECU", + "country": "Ecuador", "downhilling": 73, "endurance": 71, "firstName": "Richard", @@ -849,7 +849,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 60, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 69, "endurance": 61, "firstName": "Héctor", @@ -875,7 +875,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 61, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 59, "firstName": "Jaime", @@ -901,7 +901,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 81, "cobble": 74, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 72, "endurance": 74, "firstName": "Imanol", @@ -927,7 +927,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 65, "cobble": 58, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 67, "endurance": 66, "firstName": "Ruben", @@ -953,7 +953,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 75, "cobble": 69, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 75, "endurance": 72, "firstName": "Mikel", @@ -979,7 +979,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 82, "cobble": 61, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 71, "endurance": 65, "firstName": "Luis", @@ -1005,7 +1005,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 73, "contractEndYear": 2019, - "country": "POR", + "country": "Portugal", "downhilling": 67, "endurance": 70, "firstName": "Nelson", @@ -1031,7 +1031,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 63, "cobble": 57, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 64, "firstName": "Antonio", @@ -1057,7 +1057,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 69, "cobble": 63, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 69, "firstName": "Eduard", @@ -1083,7 +1083,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 68, "cobble": 69, "contractEndYear": 2019, - "country": "COL", + "country": "Colombia", "downhilling": 76, "endurance": 70, "firstName": "Nairo", @@ -1109,7 +1109,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 78, "contractEndYear": 2019, - "country": "BEL", + "country": "Belgium", "downhilling": 70, "endurance": 72, "firstName": "Jürgen", @@ -1135,7 +1135,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 59, "cobble": 68, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 74, "endurance": 69, "firstName": "José Joaquin", @@ -1161,7 +1161,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 69, "cobble": 60, "contractEndYear": 2019, - "country": "ARG", + "country": "Argentina", "downhilling": 65, "endurance": 64, "firstName": "Eduardo", @@ -1187,7 +1187,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 65, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 70, "firstName": "Marc", @@ -1213,7 +1213,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 73, "contractEndYear": 2019, - "country": "GER", + "country": "Germany", "downhilling": 71, "endurance": 68, "firstName": "Jasha", @@ -1239,7 +1239,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 57, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 72, "endurance": 63, "firstName": "Rafael", @@ -1265,7 +1265,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 72, "contractEndYear": 2019, - "country": "ESP", + "country": "Spain", "downhilling": 75, "endurance": 80, "firstName": "Alejandro", @@ -1291,7 +1291,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 58, "contractEndYear": 2020, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 69, "firstName": "Carlos", @@ -1325,7 +1325,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 60, "cobble": 58, "contractEndYear": 2021, - "country": "COL", + "country": "Colombia", "downhilling": 62, "endurance": 60, "firstName": "Juan Diego", @@ -1351,7 +1351,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 67, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 65, "endurance": 66, "firstName": "Jorge", @@ -1377,7 +1377,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 72, "cobble": 60, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 72, "endurance": 64, "firstName": "Héctor", @@ -1403,7 +1403,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 66, "cobble": 60, "contractEndYear": 2021, - "country": "ITA", + "country": "Italy", "downhilling": 65, "endurance": 68, "firstName": "Dario", @@ -1429,7 +1429,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 65, "contractEndYear": 2021, - "country": "GBR", + "country": "United-Kingdom", "downhilling": 69, "endurance": 65, "firstName": "Gabriel", @@ -1455,7 +1455,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 69, "cobble": 64, "contractEndYear": 2022, - "country": "ESP", + "country": "Spain", "downhilling": 65, "endurance": 62, "firstName": "Inigo", @@ -1481,7 +1481,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 81, "cobble": 72, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 72, "endurance": 68, "firstName": "Imanol", @@ -1507,7 +1507,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 75, "contractEndYear": 2023, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 73, "firstName": "Iván", @@ -1533,7 +1533,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 68, "cobble": 56, "contractEndYear": 2023, - "country": "PRI", + "country": "Puerto-Rico", "downhilling": 64, "endurance": 61, "firstName": "Abner", @@ -1559,7 +1559,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 60, "cobble": 66, "contractEndYear": 2021, - "country": "GER", + "country": "Germany", "downhilling": 66, "endurance": 64, "firstName": "Juri", @@ -1585,7 +1585,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 73, "contractEndYear": 2023, - "country": "SWI", + "country": "Switzerland", "downhilling": 73, "endurance": 67, "firstName": "Johan", @@ -1611,7 +1611,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 65, "cobble": 67, "contractEndYear": 2023, - "country": "USA", + "country": "United-States", "downhilling": 70, "endurance": 67, "firstName": "Matteo", @@ -1637,7 +1637,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 60, "contractEndYear": 2021, - "country": "COL", + "country": "Colombia", "downhilling": 64, "endurance": 71, "firstName": "Miguel Angel", @@ -1663,7 +1663,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 59, "contractEndYear": 2022, - "country": "ESP", + "country": "Spain", "downhilling": 69, "endurance": 70, "firstName": "Enric", @@ -1689,7 +1689,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 80, "cobble": 61, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 71, "endurance": 65, "firstName": "Lluís", @@ -1715,7 +1715,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 62, "cobble": 65, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 62, "firstName": "Sebastián", @@ -1741,7 +1741,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 72, "cobble": 65, "contractEndYear": 2023, - "country": "AUT", + "country": "Austria", "downhilling": 79, "endurance": 67, "firstName": "Gregor", @@ -1767,7 +1767,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 65, "cobble": 62, "contractEndYear": 2021, - "country": "DEN", + "country": "Denmark", "downhilling": 63, "endurance": 62, "firstName": "Mathias", @@ -1793,7 +1793,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 72, "contractEndYear": 2021, - "country": "POR", + "country": "Portugal", "downhilling": 67, "endurance": 66, "firstName": "Nelson", @@ -1819,7 +1819,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 63, "cobble": 57, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 67, "firstName": "Antonio", @@ -1845,7 +1845,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 59, "cobble": 68, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 74, "endurance": 69, "firstName": "José Joaquin", @@ -1871,7 +1871,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 59, "contractEndYear": 2021, - "country": "COL", + "country": "Colombia", "downhilling": 65, "endurance": 64, "firstName": "Einer", @@ -1897,7 +1897,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 67, "cobble": 62, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 69, "endurance": 66, "firstName": "Sergio", @@ -1923,7 +1923,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 75, "cobble": 71, "contractEndYear": 2022, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 67, "firstName": "Gonzalo", @@ -1949,7 +1949,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 74, "cobble": 65, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 70, "firstName": "Marc", @@ -1975,7 +1975,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 61, "cobble": 64, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 69, "endurance": 65, "firstName": "Albert", @@ -2001,7 +2001,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 70, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 75, "endurance": 74, "firstName": "Alejandro", @@ -2027,7 +2027,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 58, "contractEndYear": 2021, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 68, "firstName": "Carlos", @@ -2053,7 +2053,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 59, "contractEndYear": 2021, - "country": "ITA", + "country": "Italy", "downhilling": 68, "endurance": 66, "firstName": "Davide", @@ -2087,7 +2087,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 67, "contractEndYear": 2025, - "country": "ESP", + "country": "Spain", "downhilling": 65, "endurance": 66, "firstName": "Jorge", @@ -2113,7 +2113,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 62, "cobble": 66, "contractEndYear": 2026, - "country": "VEN", + "country": "Venezuela", "downhilling": 71, "endurance": 70, "firstName": "Orluis", @@ -2139,7 +2139,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 74, "cobble": 65, "contractEndYear": 2027, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 71, "firstName": "Jon", @@ -2165,7 +2165,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 72, "cobble": 65, "contractEndYear": 2025, - "country": "USA", + "country": "United-States", "downhilling": 68, "endurance": 69, "firstName": "William", @@ -2191,7 +2191,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 70, "contractEndYear": 2027, - "country": "ESP", + "country": "Spain", "downhilling": 76, "endurance": 70, "firstName": "Carlos", @@ -2217,7 +2217,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 74, "cobble": 69, "contractEndYear": 2027, - "country": "ESP", + "country": "Spain", "downhilling": 72, "endurance": 73, "firstName": "Pablo", @@ -2243,7 +2243,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 72, "cobble": 60, "contractEndYear": 2026, - "country": "ECU", + "country": "Ecuador", "downhilling": 70, "endurance": 71, "firstName": "Jefferson Alveiro", @@ -2269,7 +2269,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 66, "cobble": 67, "contractEndYear": 2025, - "country": "ITA", + "country": "Italy", "downhilling": 71, "endurance": 68, "firstName": "Davide", @@ -2295,7 +2295,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 72, "cobble": 67, "contractEndYear": 2026, - "country": "ITA", + "country": "Italy", "downhilling": 74, "endurance": 71, "firstName": "Davide", @@ -2321,7 +2321,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 75, "contractEndYear": 2026, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 71, "firstName": "Iván", @@ -2347,7 +2347,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 70, "contractEndYear": 2025, - "country": "COL", + "country": "Colombia", "downhilling": 78, "endurance": 70, "firstName": "Fernando", @@ -2373,7 +2373,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 75, "cobble": 63, "contractEndYear": 2025, - "country": "POR", + "country": "Portugal", "downhilling": 68, "endurance": 70, "firstName": "Ruben", @@ -2399,7 +2399,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 64, "cobble": 62, "contractEndYear": 2026, - "country": "GER", + "country": "Germany", "downhilling": 66, "endurance": 65, "firstName": "Michel", @@ -2425,7 +2425,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 74, "cobble": 64, "contractEndYear": 2025, - "country": "ESP", + "country": "Spain", "downhilling": 69, "endurance": 76, "firstName": "Enric", @@ -2451,7 +2451,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 59, "cobble": 66, "contractEndYear": 2026, - "country": "ITA", + "country": "Italy", "downhilling": 68, "endurance": 65, "firstName": "Lorenzo", @@ -2477,7 +2477,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 68, "cobble": 65, "contractEndYear": 2026, - "country": "ITA", + "country": "Italy", "downhilling": 66, "endurance": 60, "firstName": "Manlio", @@ -2503,7 +2503,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 65, "contractEndYear": 2025, - "country": "AUT", + "country": "Austria", "downhilling": 74, "endurance": 67, "firstName": "Gregor", @@ -2529,7 +2529,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 72, "contractEndYear": 2026, - "country": "DEN", + "country": "Denmark", "downhilling": 77, "endurance": 66, "firstName": "Mathias", @@ -2555,7 +2555,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 72, "contractEndYear": 2025, - "country": "POR", + "country": "Portugal", "downhilling": 67, "endurance": 70, "firstName": "Nelson", @@ -2581,7 +2581,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 63, "cobble": 57, "contractEndYear": 2025, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 67, "firstName": "Antonio", @@ -2607,7 +2607,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 59, "cobble": 52, "contractEndYear": 2027, - "country": "COL", + "country": "Colombia", "downhilling": 68, "endurance": 62, "firstName": "Diego", @@ -2633,7 +2633,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 68, "cobble": 67, "contractEndYear": 2025, - "country": "COL", + "country": "Colombia", "downhilling": 80, "endurance": 68, "firstName": "Nairo", @@ -2659,7 +2659,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 74, "cobble": 65, "contractEndYear": 2027, - "country": "ESP", + "country": "Spain", "downhilling": 72, "endurance": 73, "firstName": "Iván", @@ -2685,7 +2685,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 70, "cobble": 65, "contractEndYear": 2027, - "country": "ESP", + "country": "Spain", "downhilling": 68, "endurance": 71, "firstName": "Javier", @@ -2711,7 +2711,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 73, "cobble": 59, "contractEndYear": 2026, - "country": "COL", + "country": "Colombia", "downhilling": 73, "endurance": 74, "firstName": "Einer", @@ -2737,7 +2737,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 75, "cobble": 71, "contractEndYear": 2026, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 68, "firstName": "Gonzalo", @@ -2763,7 +2763,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 61, "cobble": 61, "contractEndYear": 2027, - "country": "ESP", + "country": "Spain", "downhilling": 70, "endurance": 71, "firstName": "Pelayo", @@ -2789,7 +2789,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 71, "cobble": 60, "contractEndYear": 2026, - "country": "ERI", + "country": "Eritrea", "downhilling": 67, "endurance": 68, "firstName": "Natnael", @@ -2815,7 +2815,7 @@ exports[`getTeamRoster > returns the roster for a given team for Pro cycling man "baroudeur": 61, "cobble": 64, "contractEndYear": null, - "country": "ESP", + "country": "Spain", "downhilling": 69, "endurance": 65, "firstName": "Albert", diff --git a/test/tools/__snapshots__/search-cyclist.test.ts.snap b/test/tools/__snapshots__/search-cyclist.test.ts.snap index ca4aa86..268cb17 100644 --- a/test/tools/__snapshots__/search-cyclist.test.ts.snap +++ b/test/tools/__snapshots__/search-cyclist.test.ts.snap @@ -7,7 +7,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 74, "baroudeur": 65, "cobble": 67, - "country": "BEL", + "country": "Belgium", "currentAbility": null, "downhilling": 75, "endurance": 68, @@ -28,7 +28,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 73, "baroudeur": 61, "cobble": 65, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 67, "endurance": 67, @@ -49,7 +49,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 65, "baroudeur": 66, "cobble": 61, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 66, "endurance": 60, @@ -70,7 +70,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 67, "baroudeur": 67, "cobble": 62, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 67, "endurance": 62, @@ -91,7 +91,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 72, "baroudeur": 61, "cobble": 63, - "country": "AUS", + "country": "Australia", "currentAbility": null, "downhilling": 69, "endurance": 65, @@ -112,7 +112,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 72, "baroudeur": 69, "cobble": 63, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 63, "endurance": 61, @@ -133,7 +133,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 65, "baroudeur": 68, "cobble": 61, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 65, "endurance": 61, @@ -154,7 +154,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 61, "baroudeur": 68, "cobble": 56, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 61, "endurance": 58, @@ -175,7 +175,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 64, "baroudeur": 71, "cobble": 51, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 68, "endurance": 56, @@ -196,7 +196,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 52, "baroudeur": 56, "cobble": 57, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 65, "endurance": 57, @@ -224,7 +224,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 74, "baroudeur": 65, "cobble": 68, - "country": "BEL", + "country": "Belgium", "currentAbility": null, "downhilling": 75, "endurance": 68, @@ -245,7 +245,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 74, "baroudeur": 61, "cobble": 65, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 67, "endurance": 69, @@ -266,7 +266,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 65, "baroudeur": 66, "cobble": 61, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 66, "endurance": 60, @@ -287,7 +287,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 67, "baroudeur": 71, "cobble": 68, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 67, "endurance": 68, @@ -308,7 +308,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 72, "baroudeur": 61, "cobble": 63, - "country": "AUS", + "country": "Australia", "currentAbility": null, "downhilling": 69, "endurance": 65, @@ -329,7 +329,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 72, "baroudeur": 69, "cobble": 63, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 63, "endurance": 61, @@ -350,7 +350,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 65, "baroudeur": 68, "cobble": 61, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 65, "endurance": 61, @@ -371,7 +371,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 72, "baroudeur": 61, "cobble": 64, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 75, "endurance": 57, @@ -392,7 +392,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 61, "baroudeur": 68, "cobble": 56, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 61, "endurance": 58, @@ -413,7 +413,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 201 "acceleration": 76, "baroudeur": 67, "cobble": 65, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 70, "endurance": 66, @@ -441,7 +441,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 75, "baroudeur": 65, "cobble": 73, - "country": "BEL", + "country": "Belgium", "currentAbility": null, "downhilling": 75, "endurance": 70, @@ -462,7 +462,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 69, "baroudeur": 61, "cobble": 65, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 67, "endurance": 69, @@ -483,7 +483,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 69, "baroudeur": 75, "cobble": 72, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 72, "endurance": 70, @@ -504,7 +504,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 72, "baroudeur": 69, "cobble": 63, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 63, "endurance": 61, @@ -525,7 +525,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 72, "baroudeur": 61, "cobble": 64, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 75, "endurance": 57, @@ -546,7 +546,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 61, "baroudeur": 68, "cobble": 56, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 61, "endurance": 58, @@ -567,7 +567,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 76, "baroudeur": 67, "cobble": 65, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 70, "endurance": 66, @@ -588,7 +588,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 64, "baroudeur": 66, "cobble": 61, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 65, "endurance": 59, @@ -609,7 +609,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 62, "baroudeur": 64, "cobble": 60, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 65, "endurance": 59, @@ -630,7 +630,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 84, "baroudeur": 69, "cobble": 82, - "country": "NED", + "country": "Netherlands", "currentAbility": null, "downhilling": 84, "endurance": 82, @@ -658,7 +658,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 68, "baroudeur": 65, "cobble": 72, - "country": "BEL", + "country": "Belgium", "currentAbility": 0, "downhilling": 75, "endurance": 65, @@ -679,7 +679,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 69, "baroudeur": 80, "cobble": 72, - "country": "NED", + "country": "Netherlands", "currentAbility": 0, "downhilling": 72, "endurance": 72, @@ -700,7 +700,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 72, "baroudeur": 69, "cobble": 65, - "country": "NED", + "country": "Netherlands", "currentAbility": 0, "downhilling": 63, "endurance": 62, @@ -721,7 +721,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 64, "baroudeur": 66, "cobble": 61, - "country": "NED", + "country": "Netherlands", "currentAbility": 0, "downhilling": 65, "endurance": 59, @@ -742,7 +742,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 61, "baroudeur": 64, "cobble": 64, - "country": "POL", + "country": "Poland", "currentAbility": 0, "downhilling": 65, "endurance": 60, @@ -763,7 +763,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 81, "baroudeur": 76, "cobble": 82, - "country": "NED", + "country": "Netherlands", "currentAbility": 0, "downhilling": 84, "endurance": 83, @@ -784,7 +784,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 56, "baroudeur": 67, "cobble": 57, - "country": "NED", + "country": "Netherlands", "currentAbility": 0, "downhilling": 60, "endurance": 56, @@ -805,7 +805,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 66, "baroudeur": 65, "cobble": 60, - "country": "BEL", + "country": "Belgium", "currentAbility": 0, "downhilling": 65, "endurance": 64, @@ -826,7 +826,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 65, "baroudeur": 70, "cobble": 70, - "country": "NED", + "country": "Netherlands", "currentAbility": 0, "downhilling": 70, "endurance": 66, @@ -847,7 +847,7 @@ exports[`searchCyclist > finds cyclists by last name for Pro cycling manager 202 "acceleration": 58, "baroudeur": 72, "cobble": 64, - "country": "NED", + "country": "Netherlands", "currentAbility": 0, "downhilling": 68, "endurance": 59,