From 2536f5db6bd3049f2fc93cc9b9637bbeccf349ca Mon Sep 17 00:00:00 2001 From: Loewy Date: Fri, 15 Nov 2024 16:51:17 -0800 Subject: [PATCH] add nickname to operation, remove currently unsupported fields from request --- src/index.tsx | 152 ++++++++++++++++++++++++++++++-------- src/operations/medals.gql | 29 +++++--- 2 files changed, 140 insertions(+), 41 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 26d8a48..8937756 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2941,29 +2941,106 @@ export type GetMedalsQuery = { __typename?: "Query"; getMedals: { __typename?: "RequestedMedalsGQL"; - distanceOver66?: { __typename?: "MedalGQL"; count: number } | null; - distanceOver78?: { __typename?: "MedalGQL"; count: number } | null; - distanceOver90?: { __typename?: "MedalGQL"; count: number } | null; - runLength3?: { __typename?: "MedalGQL"; count: number } | null; - runLength5?: { __typename?: "MedalGQL"; count: number } | null; - runLength8?: { __typename?: "MedalGQL"; count: number } | null; - runLength10?: { __typename?: "MedalGQL"; count: number } | null; - runLength15?: { __typename?: "MedalGQL"; count: number } | null; - runLength20?: { __typename?: "MedalGQL"; count: number } | null; - runLength25?: { __typename?: "MedalGQL"; count: number } | null; - runLength30?: { __typename?: "MedalGQL"; count: number } | null; - runLength40?: { __typename?: "MedalGQL"; count: number } | null; - runLength50?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes25?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes50?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes75?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes100?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes200?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes300?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes400?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes500?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes750?: { __typename?: "MedalGQL"; count: number } | null; - totalMakes1000?: { __typename?: "MedalGQL"; count: number } | null; + distanceOver66?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + distanceOver78?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + distanceOver90?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength3?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength5?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength8?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength10?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength15?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength20?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength25?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength30?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength40?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + runLength50?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + totalMakes25?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + totalMakes50?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + totalMakes75?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + totalMakes100?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + totalMakes200?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + totalMakes300?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; + totalMakes400?: { + __typename?: "MedalGQL"; + count: number; + nickname?: string | null; + } | null; }; }; @@ -4796,72 +4873,83 @@ export const GetMedalsDocument = gql` getMedals(scope: $scope, userId: $userId) { distanceOver66 { count + nickname } distanceOver78 { count + nickname } distanceOver90 { count + nickname } runLength3 { count + nickname } runLength5 { count + nickname } runLength8 { count + nickname } runLength10 { count + nickname } runLength15 { count + nickname } runLength20 { count + nickname } runLength25 { count + nickname } runLength30 { count + nickname } runLength40 { count + nickname } runLength50 { count + nickname } totalMakes25 { count + nickname } totalMakes50 { count + nickname } totalMakes75 { count + nickname } totalMakes100 { count + nickname } totalMakes200 { count + nickname } totalMakes300 { count + nickname } totalMakes400 { count - } - totalMakes500 { - count - } - totalMakes750 { - count - } - totalMakes1000 { - count + nickname } } } diff --git a/src/operations/medals.gql b/src/operations/medals.gql index 51a3457..97886dc 100644 --- a/src/operations/medals.gql +++ b/src/operations/medals.gql @@ -2,72 +2,83 @@ query getMedals($scope: MedalScope!, $userId: Int) { getMedals(scope: $scope, userId: $userId) { distanceOver66 { count + nickname } distanceOver78 { count + nickname } distanceOver90 { count + nickname } runLength3 { count + nickname } runLength5 { count + nickname } runLength8 { count + nickname } runLength10 { count + nickname } runLength15 { count + nickname } runLength20 { count + nickname } runLength25 { count + nickname } runLength30 { count + nickname } runLength40 { count + nickname } runLength50 { count + nickname } totalMakes25 { count + nickname } totalMakes50 { count + nickname } totalMakes75 { count + nickname } totalMakes100 { count + nickname } totalMakes200 { count + nickname } totalMakes300 { count + nickname } totalMakes400 { count - } - totalMakes500 { - count - } - totalMakes750 { - count - } - totalMakes1000 { - count + nickname } } }