Compare commits

...

5 Commits

Author SHA1 Message Date
c4c3ccde00 id in homography 2024-11-25 14:53:41 -08:00
e137ce8ad1 Request id in Homography info 2024-11-21 17:59:29 -07:00
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
ac1fceb648 Merge pull request 'Add new makes medals' (#141) from mk/extend-makes-medals into master
Reviewed-on: #141
2024-11-21 11:56:49 -07:00
3 changed files with 95 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;
@ -3674,6 +3670,7 @@ 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";
@ -3889,6 +3886,7 @@ 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";
@ -4099,6 +4097,7 @@ 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";
@ -4128,6 +4127,7 @@ 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,6 +4369,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
@ -4490,6 +4496,7 @@ 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
@ -4944,87 +4951,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 {
count
nickname
} }
dailyMakes150 {
...MedalFields
}
dailyMakes200 {
...MedalFields
}
# missing asset
# dailyMakes250 {
# ...MedalFields
# }
} }
} }

View File

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