Update medal collection #142

Merged
loewy merged 1 commits from loewy/update-medals-operation into master 2024-11-21 15:16:24 -07:00
2 changed files with 89 additions and 116 deletions

View File

@ -2999,6 +2999,12 @@ export type GetVideoMakePercentageIntervalsQuery = {
}>; }>;
}; };
export type MedalFieldsFragment = {
__typename?: "MedalGQL";
count: number;
nickname?: string | null;
};
export type GetMedalsQueryVariables = Exact<{ export type GetMedalsQueryVariables = Exact<{
scope: MedalScope; scope: MedalScope;
userId?: InputMaybe<Scalars["Int"]["input"]>; userId?: InputMaybe<Scalars["Int"]["input"]>;
@ -3073,37 +3079,27 @@ export type GetMedalsQuery = {
count: number; count: number;
nickname?: string | null; nickname?: string | null;
} | 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?: { totalMakes100?: {
__typename?: "MedalGQL"; __typename?: "MedalGQL";
count: number; count: number;
nickname?: string | null; nickname?: string | null;
} | null; } | null;
totalMakes200?: { dailyMakes50?: {
__typename?: "MedalGQL"; __typename?: "MedalGQL";
count: number; count: number;
nickname?: string | null; nickname?: string | null;
} | null; } | null;
totalMakes300?: { dailyMakes100?: {
__typename?: "MedalGQL"; __typename?: "MedalGQL";
count: number; count: number;
nickname?: string | null; nickname?: string | null;
} | null; } | null;
totalMakes400?: { dailyMakes150?: {
__typename?: "MedalGQL";
count: number;
nickname?: string | null;
} | null;
dailyMakes200?: {
__typename?: "MedalGQL"; __typename?: "MedalGQL";
count: number; count: number;
nickname?: string | null; nickname?: string | null;
@ -4369,6 +4365,12 @@ export const VideoCardFieldsFragmentDoc = gql`
} }
} }
`; `;
export const MedalFieldsFragmentDoc = gql`
fragment MedalFields on MedalGQL {
count
nickname
}
`;
export const ShotWithAllFeaturesFragmentDoc = gql` export const ShotWithAllFeaturesFragmentDoc = gql`
fragment ShotWithAllFeatures on ShotGQL { fragment ShotWithAllFeatures on ShotGQL {
id id
@ -4944,87 +4946,62 @@ export const GetMedalsDocument = gql`
query getMedals($scope: MedalScope!, $userId: Int) { query getMedals($scope: MedalScope!, $userId: Int) {
getMedals(scope: $scope, userId: $userId) { getMedals(scope: $scope, userId: $userId) {
distanceOver66 { distanceOver66 {
count ...MedalFields
nickname
} }
distanceOver78 { distanceOver78 {
count ...MedalFields
nickname
} }
distanceOver90 { distanceOver90 {
count ...MedalFields
nickname
} }
runLength3 { runLength3 {
count ...MedalFields
nickname
} }
runLength5 { runLength5 {
count ...MedalFields
nickname
} }
runLength8 { runLength8 {
count ...MedalFields
nickname
} }
runLength10 { runLength10 {
count ...MedalFields
nickname
} }
runLength15 { runLength15 {
count ...MedalFields
nickname
} }
runLength20 { runLength20 {
count ...MedalFields
nickname
} }
runLength25 { runLength25 {
count ...MedalFields
nickname
} }
runLength30 { runLength30 {
count ...MedalFields
nickname
} }
runLength40 { runLength40 {
count ...MedalFields
nickname
} }
runLength50 { runLength50 {
count ...MedalFields
nickname
}
totalMakes25 {
count
nickname
}
totalMakes50 {
count
nickname
}
totalMakes75 {
count
nickname
} }
totalMakes100 { totalMakes100 {
count ...MedalFields
nickname
} }
totalMakes200 { dailyMakes50 {
count ...MedalFields
nickname
} }
totalMakes300 { dailyMakes100 {
count ...MedalFields
nickname
} }
totalMakes400 { dailyMakes150 {
count ...MedalFields
nickname }
dailyMakes200 {
...MedalFields
} }
} }
} }
${MedalFieldsFragmentDoc}
`; `;
/** /**

View File

@ -1,84 +1,80 @@
fragment MedalFields on MedalGQL {
count
nickname
}
query getMedals($scope: MedalScope!, $userId: Int) { query getMedals($scope: MedalScope!, $userId: Int) {
getMedals(scope: $scope, userId: $userId) { getMedals(scope: $scope, userId: $userId) {
distanceOver66 { distanceOver66 {
count ...MedalFields
nickname
} }
distanceOver78 { distanceOver78 {
count ...MedalFields
nickname
} }
distanceOver90 { distanceOver90 {
count ...MedalFields
nickname
} }
runLength3 { runLength3 {
count ...MedalFields
nickname
} }
runLength5 { runLength5 {
count ...MedalFields
nickname
} }
runLength8 { runLength8 {
count ...MedalFields
nickname
} }
runLength10 { runLength10 {
count ...MedalFields
nickname
} }
runLength15 { runLength15 {
count ...MedalFields
nickname
} }
runLength20 { runLength20 {
count ...MedalFields
nickname
} }
runLength25 { runLength25 {
count ...MedalFields
nickname
} }
runLength30 { runLength30 {
count ...MedalFields
nickname
} }
runLength40 { runLength40 {
count ...MedalFields
nickname
} }
runLength50 { runLength50 {
count ...MedalFields
nickname
}
totalMakes25 {
count
nickname
}
totalMakes50 {
count
nickname
}
totalMakes75 {
count
nickname
} }
totalMakes100 { totalMakes100 {
count ...MedalFields
nickname
} }
totalMakes200 { # missing assets
count # totalMakes500 {
nickname # ...MedalFields
# }
# totalMakes1000 {
# ...MedalFields
# }
# totalMakes5000 {
# ...MedalFields
# }
# totalMakes10000 {
# ...MedalFields
# }
dailyMakes50 {
...MedalFields
} }
totalMakes300 { dailyMakes100 {
count ...MedalFields
nickname
} }
totalMakes400 { dailyMakes150 {
count ...MedalFields
nickname
} }
dailyMakes200 {
...MedalFields
}
# missing asset
# dailyMakes250 {
# ...MedalFields
# }
} }
} }