Compare commits

..

No commits in common. "master" and "mk/extend-makes-medals" have entirely different histories.

3 changed files with 116 additions and 95 deletions

View File

@ -2999,12 +2999,6 @@ 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"]>;
@ -3079,27 +3073,37 @@ 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;
dailyMakes50?: { totalMakes200?: {
__typename?: "MedalGQL"; __typename?: "MedalGQL";
count: number; count: number;
nickname?: string | null; nickname?: string | null;
} | null; } | null;
dailyMakes100?: { totalMakes300?: {
__typename?: "MedalGQL"; __typename?: "MedalGQL";
count: number; count: number;
nickname?: string | null; nickname?: string | null;
} | null; } | null;
dailyMakes150?: { totalMakes400?: {
__typename?: "MedalGQL";
count: number;
nickname?: string | null;
} | null;
dailyMakes200?: {
__typename?: "MedalGQL"; __typename?: "MedalGQL";
count: number; count: number;
nickname?: string | null; nickname?: string | null;
@ -3670,7 +3674,6 @@ export type GetStreamMonitoringDetailsQuery = {
elapsedTime?: number | null; elapsedTime?: number | null;
currentHomography?: { currentHomography?: {
__typename?: "HomographyInfoGQL"; __typename?: "HomographyInfoGQL";
id: number;
frameIndex: number; frameIndex: number;
crop: { crop: {
__typename?: "BoundingBoxGQL"; __typename?: "BoundingBoxGQL";
@ -3886,7 +3889,6 @@ export type GetVideoQuery = {
} | null; } | null;
homographyHistory: Array<{ homographyHistory: Array<{
__typename?: "HomographyInfoGQL"; __typename?: "HomographyInfoGQL";
id: number;
frameIndex: number; frameIndex: number;
crop: { crop: {
__typename?: "BoundingBoxGQL"; __typename?: "BoundingBoxGQL";
@ -4097,7 +4099,6 @@ export type FindPrerecordTableLayoutMutation = {
__typename?: "Mutation"; __typename?: "Mutation";
findPrerecordTableLayout?: { findPrerecordTableLayout?: {
__typename?: "HomographyInfoGQL"; __typename?: "HomographyInfoGQL";
id: number;
frameIndex: number; frameIndex: number;
crop: { crop: {
__typename?: "BoundingBoxGQL"; __typename?: "BoundingBoxGQL";
@ -4127,7 +4128,6 @@ export type FindPrerecordTableLayoutMutation = {
export type HomographyInfoFragment = { export type HomographyInfoFragment = {
__typename?: "HomographyInfoGQL"; __typename?: "HomographyInfoGQL";
id: number;
frameIndex: number; frameIndex: number;
crop: { crop: {
__typename?: "BoundingBoxGQL"; __typename?: "BoundingBoxGQL";
@ -4369,12 +4369,6 @@ 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
@ -4496,7 +4490,6 @@ export const VideoDurationDataFragmentDoc = gql`
`; `;
export const HomographyInfoFragmentDoc = gql` export const HomographyInfoFragmentDoc = gql`
fragment HomographyInfo on HomographyInfoGQL { fragment HomographyInfo on HomographyInfoGQL {
id
frameIndex frameIndex
crop { crop {
left left
@ -4951,62 +4944,87 @@ 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 {
...MedalFields count
nickname
} }
distanceOver78 { distanceOver78 {
...MedalFields count
nickname
} }
distanceOver90 { distanceOver90 {
...MedalFields count
nickname
} }
runLength3 { runLength3 {
...MedalFields count
nickname
} }
runLength5 { runLength5 {
...MedalFields count
nickname
} }
runLength8 { runLength8 {
...MedalFields count
nickname
} }
runLength10 { runLength10 {
...MedalFields count
nickname
} }
runLength15 { runLength15 {
...MedalFields count
nickname
} }
runLength20 { runLength20 {
...MedalFields count
nickname
} }
runLength25 { runLength25 {
...MedalFields count
nickname
} }
runLength30 { runLength30 {
...MedalFields count
nickname
} }
runLength40 { runLength40 {
...MedalFields count
nickname
} }
runLength50 { runLength50 {
...MedalFields count
nickname
}
totalMakes25 {
count
nickname
}
totalMakes50 {
count
nickname
}
totalMakes75 {
count
nickname
} }
totalMakes100 { totalMakes100 {
...MedalFields count
nickname
} }
dailyMakes50 { totalMakes200 {
...MedalFields count
nickname
} }
dailyMakes100 { totalMakes300 {
...MedalFields count
nickname
} }
dailyMakes150 { totalMakes400 {
...MedalFields count
} nickname
dailyMakes200 {
...MedalFields
} }
} }
} }
${MedalFieldsFragmentDoc}
`; `;
/** /**

View File

@ -1,80 +1,84 @@
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 {
...MedalFields count
nickname
} }
distanceOver78 { distanceOver78 {
...MedalFields count
nickname
} }
distanceOver90 { distanceOver90 {
...MedalFields count
nickname
} }
runLength3 { runLength3 {
...MedalFields count
nickname
} }
runLength5 { runLength5 {
...MedalFields count
nickname
} }
runLength8 { runLength8 {
...MedalFields count
nickname
} }
runLength10 { runLength10 {
...MedalFields count
nickname
} }
runLength15 { runLength15 {
...MedalFields count
nickname
} }
runLength20 { runLength20 {
...MedalFields count
nickname
} }
runLength25 { runLength25 {
...MedalFields count
nickname
} }
runLength30 { runLength30 {
...MedalFields count
nickname
} }
runLength40 { runLength40 {
...MedalFields count
nickname
} }
runLength50 { runLength50 {
...MedalFields count
nickname
}
totalMakes25 {
count
nickname
}
totalMakes50 {
count
nickname
}
totalMakes75 {
count
nickname
} }
totalMakes100 { totalMakes100 {
...MedalFields count
nickname
} }
# missing assets totalMakes200 {
# totalMakes500 { count
# ...MedalFields nickname
# }
# totalMakes1000 {
# ...MedalFields
# }
# totalMakes5000 {
# ...MedalFields
# }
# totalMakes10000 {
# ...MedalFields
# }
dailyMakes50 {
...MedalFields
} }
dailyMakes100 { totalMakes300 {
...MedalFields count
nickname
} }
dailyMakes150 { totalMakes400 {
...MedalFields count
nickname
} }
dailyMakes200 {
...MedalFields
}
# missing asset
# dailyMakes250 {
# ...MedalFields
# }
} }
} }

View File

@ -222,7 +222,6 @@ mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
} }
fragment HomographyInfo on HomographyInfoGQL { fragment HomographyInfo on HomographyInfoGQL {
id
frameIndex frameIndex
crop { crop {
left left