Compare commits

..

2 Commits

Author SHA1 Message Date
63deef3508 remove dasystreak
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-11-15 12:51:46 -08:00
84a7c439aa Medals
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-11-15 20:27:37 +01:00
3 changed files with 63 additions and 142 deletions

View File

@ -1979,7 +1979,6 @@ export type MakePercentageIntervalGql = {
export type MedalGql = { export type MedalGql = {
__typename?: "MedalGQL"; __typename?: "MedalGQL";
count: Scalars["Int"]["output"]; count: Scalars["Int"]["output"];
nickname?: Maybe<Scalars["String"]["output"]>;
}; };
export type MedalScope = export type MedalScope =
@ -2300,6 +2299,17 @@ export type QueryWaitForArgs = {
export type RequestedMedalsGql = { export type RequestedMedalsGql = {
__typename?: "RequestedMedalsGQL"; __typename?: "RequestedMedalsGQL";
dayStreak2?: Maybe<MedalGql>;
dayStreak3?: Maybe<MedalGql>;
dayStreak4?: Maybe<MedalGql>;
dayStreak5?: Maybe<MedalGql>;
dayStreak6?: Maybe<MedalGql>;
dayStreak7?: Maybe<MedalGql>;
dayStreak14?: Maybe<MedalGql>;
dayStreak21?: Maybe<MedalGql>;
dayStreak30?: Maybe<MedalGql>;
dayStreak60?: Maybe<MedalGql>;
dayStreak90?: Maybe<MedalGql>;
distanceOver66?: Maybe<MedalGql>; distanceOver66?: Maybe<MedalGql>;
distanceOver78?: Maybe<MedalGql>; distanceOver78?: Maybe<MedalGql>;
distanceOver90?: Maybe<MedalGql>; distanceOver90?: Maybe<MedalGql>;
@ -2941,106 +2951,29 @@ export type GetMedalsQuery = {
__typename?: "Query"; __typename?: "Query";
getMedals: { getMedals: {
__typename?: "RequestedMedalsGQL"; __typename?: "RequestedMedalsGQL";
distanceOver66?: { distanceOver66?: { __typename?: "MedalGQL"; count: number } | null;
__typename?: "MedalGQL"; distanceOver78?: { __typename?: "MedalGQL"; count: number } | null;
count: number; distanceOver90?: { __typename?: "MedalGQL"; count: number } | null;
nickname?: string | null; runLength3?: { __typename?: "MedalGQL"; count: number } | null;
} | null; runLength5?: { __typename?: "MedalGQL"; count: number } | null;
distanceOver78?: { runLength8?: { __typename?: "MedalGQL"; count: number } | null;
__typename?: "MedalGQL"; runLength10?: { __typename?: "MedalGQL"; count: number } | null;
count: number; runLength15?: { __typename?: "MedalGQL"; count: number } | null;
nickname?: string | null; runLength20?: { __typename?: "MedalGQL"; count: number } | null;
} | null; runLength25?: { __typename?: "MedalGQL"; count: number } | null;
distanceOver90?: { runLength30?: { __typename?: "MedalGQL"; count: number } | null;
__typename?: "MedalGQL"; runLength40?: { __typename?: "MedalGQL"; count: number } | null;
count: number; runLength50?: { __typename?: "MedalGQL"; count: number } | null;
nickname?: string | null; totalMakes25?: { __typename?: "MedalGQL"; count: number } | null;
} | null; totalMakes50?: { __typename?: "MedalGQL"; count: number } | null;
runLength3?: { totalMakes75?: { __typename?: "MedalGQL"; count: number } | null;
__typename?: "MedalGQL"; totalMakes100?: { __typename?: "MedalGQL"; count: number } | null;
count: number; totalMakes200?: { __typename?: "MedalGQL"; count: number } | null;
nickname?: string | null; totalMakes300?: { __typename?: "MedalGQL"; count: number } | null;
} | null; totalMakes400?: { __typename?: "MedalGQL"; count: number } | null;
runLength5?: { totalMakes500?: { __typename?: "MedalGQL"; count: number } | null;
__typename?: "MedalGQL"; totalMakes750?: { __typename?: "MedalGQL"; count: number } | null;
count: number; totalMakes1000?: { __typename?: "MedalGQL"; count: number } | null;
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;
}; };
}; };
@ -4873,83 +4806,72 @@ export const GetMedalsDocument = gql`
getMedals(scope: $scope, userId: $userId) { getMedals(scope: $scope, userId: $userId) {
distanceOver66 { distanceOver66 {
count count
nickname
} }
distanceOver78 { distanceOver78 {
count count
nickname
} }
distanceOver90 { distanceOver90 {
count count
nickname
} }
runLength3 { runLength3 {
count count
nickname
} }
runLength5 { runLength5 {
count count
nickname
} }
runLength8 { runLength8 {
count count
nickname
} }
runLength10 { runLength10 {
count count
nickname
} }
runLength15 { runLength15 {
count count
nickname
} }
runLength20 { runLength20 {
count count
nickname
} }
runLength25 { runLength25 {
count count
nickname
} }
runLength30 { runLength30 {
count count
nickname
} }
runLength40 { runLength40 {
count count
nickname
} }
runLength50 { runLength50 {
count count
nickname
} }
totalMakes25 { totalMakes25 {
count count
nickname
} }
totalMakes50 { totalMakes50 {
count count
nickname
} }
totalMakes75 { totalMakes75 {
count count
nickname
} }
totalMakes100 { totalMakes100 {
count count
nickname
} }
totalMakes200 { totalMakes200 {
count count
nickname
} }
totalMakes300 { totalMakes300 {
count count
nickname
} }
totalMakes400 { totalMakes400 {
count count
nickname }
totalMakes500 {
count
}
totalMakes750 {
count
}
totalMakes1000 {
count
} }
} }
} }

View File

@ -2,83 +2,72 @@ query getMedals($scope: MedalScope!, $userId: Int) {
getMedals(scope: $scope, userId: $userId) { getMedals(scope: $scope, userId: $userId) {
distanceOver66 { distanceOver66 {
count count
nickname
} }
distanceOver78 { distanceOver78 {
count count
nickname
} }
distanceOver90 { distanceOver90 {
count count
nickname
} }
runLength3 { runLength3 {
count count
nickname
} }
runLength5 { runLength5 {
count count
nickname
} }
runLength8 { runLength8 {
count count
nickname
} }
runLength10 { runLength10 {
count count
nickname
} }
runLength15 { runLength15 {
count count
nickname
} }
runLength20 { runLength20 {
count count
nickname
} }
runLength25 { runLength25 {
count count
nickname
} }
runLength30 { runLength30 {
count count
nickname
} }
runLength40 { runLength40 {
count count
nickname
} }
runLength50 { runLength50 {
count count
nickname
} }
totalMakes25 { totalMakes25 {
count count
nickname
} }
totalMakes50 { totalMakes50 {
count count
nickname
} }
totalMakes75 { totalMakes75 {
count count
nickname
} }
totalMakes100 { totalMakes100 {
count count
nickname
} }
totalMakes200 { totalMakes200 {
count count
nickname
} }
totalMakes300 { totalMakes300 {
count count
nickname
} }
totalMakes400 { totalMakes400 {
count count
nickname }
totalMakes500 {
count
}
totalMakes750 {
count
}
totalMakes1000 {
count
} }
} }
} }

View File

@ -296,11 +296,21 @@ type RequestedMedalsGQL {
totalMakes500: MedalGQL totalMakes500: MedalGQL
totalMakes750: MedalGQL totalMakes750: MedalGQL
totalMakes1000: MedalGQL totalMakes1000: MedalGQL
dayStreak2: MedalGQL
dayStreak3: MedalGQL
dayStreak4: MedalGQL
dayStreak5: MedalGQL
dayStreak6: MedalGQL
dayStreak7: MedalGQL
dayStreak14: MedalGQL
dayStreak21: MedalGQL
dayStreak30: MedalGQL
dayStreak60: MedalGQL
dayStreak90: MedalGQL
} }
type MedalGQL { type MedalGQL {
count: Int! count: Int!
nickname: String
} }
input MedalScope @oneOf { input MedalScope @oneOf {