Compare commits

...

2 Commits

Author SHA1 Message Date
bd5bebb747 Merge pull request 'Update medal collection' (#142) from loewy/update-medals-operation into master
Reviewed-on: #142
2024-11-21 15:16:23 -07:00
034facebf3 update medal operation, create fragment
All checks were successful
Tests / Tests (pull_request) Successful in 16s
2024-11-21 12:18:17 -08: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<{
scope: MedalScope;
userId?: InputMaybe<Scalars["Int"]["input"]>;
@ -3073,37 +3079,27 @@ export type GetMedalsQuery = {
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?: {
dailyMakes50?: {
__typename?: "MedalGQL";
count: number;
nickname?: string | null;
} | null;
totalMakes300?: {
dailyMakes100?: {
__typename?: "MedalGQL";
count: number;
nickname?: string | null;
} | null;
totalMakes400?: {
dailyMakes150?: {
__typename?: "MedalGQL";
count: number;
nickname?: string | null;
} | null;
dailyMakes200?: {
__typename?: "MedalGQL";
count: number;
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`
fragment ShotWithAllFeatures on ShotGQL {
id
@ -4944,87 +4946,62 @@ export const GetMedalsDocument = gql`
query getMedals($scope: MedalScope!, $userId: Int) {
getMedals(scope: $scope, userId: $userId) {
distanceOver66 {
count
nickname
...MedalFields
}
distanceOver78 {
count
nickname
...MedalFields
}
distanceOver90 {
count
nickname
...MedalFields
}
runLength3 {
count
nickname
...MedalFields
}
runLength5 {
count
nickname
...MedalFields
}
runLength8 {
count
nickname
...MedalFields
}
runLength10 {
count
nickname
...MedalFields
}
runLength15 {
count
nickname
...MedalFields
}
runLength20 {
count
nickname
...MedalFields
}
runLength25 {
count
nickname
...MedalFields
}
runLength30 {
count
nickname
...MedalFields
}
runLength40 {
count
nickname
...MedalFields
}
runLength50 {
count
nickname
}
totalMakes25 {
count
nickname
}
totalMakes50 {
count
nickname
}
totalMakes75 {
count
nickname
...MedalFields
}
totalMakes100 {
count
nickname
...MedalFields
}
totalMakes200 {
count
nickname
dailyMakes50 {
...MedalFields
}
totalMakes300 {
count
nickname
dailyMakes100 {
...MedalFields
}
totalMakes400 {
count
nickname
dailyMakes150 {
...MedalFields
}
dailyMakes200 {
...MedalFields
}
}
}
${MedalFieldsFragmentDoc}
`;
/**

View File

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