Compare commits
11 Commits
mk/extend-
...
5efd8ef8e5
Author | SHA1 | Date | |
---|---|---|---|
5efd8ef8e5 | |||
6ad3d449d8 | |||
8fe20d1c41 | |||
e151f39582 | |||
f136ddb9ca | |||
5d05614e07 | |||
c4c3ccde00 | |||
e137ce8ad1 | |||
bd5bebb747 | |||
034facebf3 | |||
ac1fceb648 |
158
src/index.tsx
158
src/index.tsx
@@ -186,12 +186,29 @@ export type DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
| DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote;
|
||||
|
||||
export type EditShotReturn = {
|
||||
__typename?: "EditShotReturn";
|
||||
error?: Maybe<DoesNotOwnShotErr>;
|
||||
shot?: Maybe<ShotGql>;
|
||||
};
|
||||
|
||||
export type EditUserInputGql = {
|
||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
username?: InputMaybe<Scalars["String"]["input"]>;
|
||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
};
|
||||
|
||||
export type EditableShotFieldInputGql = {
|
||||
backcut?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
excludeFromStats?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
intendedPocketType?: InputMaybe<PocketEnum>;
|
||||
make?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
notes?: InputMaybe<Scalars["String"]["input"]>;
|
||||
shotDirection?: InputMaybe<ShotDirectionEnum>;
|
||||
spinType?: InputMaybe<SpinTypeEnum>;
|
||||
targetPocketAngleDirection?: InputMaybe<ShotDirectionEnum>;
|
||||
};
|
||||
|
||||
export type EnumAggregation = {
|
||||
feature: Scalars["String"]["input"];
|
||||
};
|
||||
@@ -1999,8 +2016,17 @@ export type MedalGql = {
|
||||
};
|
||||
|
||||
export type MedalScope =
|
||||
| { interval: TimeInterval; videoId?: never }
|
||||
| { interval?: never; videoId: Scalars["Int"]["input"] };
|
||||
| {
|
||||
datetimeRange: DatetimeRangeAggregationInput;
|
||||
interval?: never;
|
||||
videoId?: never;
|
||||
} /** @deprecated NO LONGER SUPPORTED, USE DATETIME_RANGE */
|
||||
| { datetimeRange?: never; interval: TimeInterval; videoId?: never }
|
||||
| {
|
||||
datetimeRange?: never;
|
||||
interval?: never;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MustHaveSetForUploadLinkErr = {
|
||||
__typename?: "MustHaveSetForUploadLinkErr";
|
||||
@@ -2025,6 +2051,7 @@ export type Mutation = {
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editShot: EditShotReturn;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
editUser: UserGql;
|
||||
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
||||
@@ -2060,6 +2087,11 @@ export type MutationEditProfileImageUriArgs = {
|
||||
profileImageUri: Scalars["String"]["input"];
|
||||
};
|
||||
|
||||
export type MutationEditShotArgs = {
|
||||
fieldsToEdit: EditableShotFieldInputGql;
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationEditUploadStreamArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
videoMetadata: VideoMetadataInput;
|
||||
@@ -2999,6 +3031,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"]>;
|
||||
@@ -3008,11 +3046,6 @@ export type GetMedalsQuery = {
|
||||
__typename?: "Query";
|
||||
getMedals: {
|
||||
__typename?: "RequestedMedalsGQL";
|
||||
distanceOver66?: {
|
||||
__typename?: "MedalGQL";
|
||||
count: number;
|
||||
nickname?: string | null;
|
||||
} | null;
|
||||
distanceOver78?: {
|
||||
__typename?: "MedalGQL";
|
||||
count: number;
|
||||
@@ -3073,37 +3106,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;
|
||||
@@ -3674,6 +3697,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
||||
elapsedTime?: number | null;
|
||||
currentHomography?: {
|
||||
__typename?: "HomographyInfoGQL";
|
||||
id: number;
|
||||
frameIndex: number;
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
@@ -3889,6 +3913,7 @@ export type GetVideoQuery = {
|
||||
} | null;
|
||||
homographyHistory: Array<{
|
||||
__typename?: "HomographyInfoGQL";
|
||||
id: number;
|
||||
frameIndex: number;
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
@@ -4099,6 +4124,7 @@ export type FindPrerecordTableLayoutMutation = {
|
||||
__typename?: "Mutation";
|
||||
findPrerecordTableLayout?: {
|
||||
__typename?: "HomographyInfoGQL";
|
||||
id: number;
|
||||
frameIndex: number;
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
@@ -4128,6 +4154,7 @@ export type FindPrerecordTableLayoutMutation = {
|
||||
|
||||
export type HomographyInfoFragment = {
|
||||
__typename?: "HomographyInfoGQL";
|
||||
id: number;
|
||||
frameIndex: number;
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
@@ -4369,6 +4396,12 @@ export const VideoCardFieldsFragmentDoc = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
export const MedalFieldsFragmentDoc = gql`
|
||||
fragment MedalFields on MedalGQL {
|
||||
count
|
||||
nickname
|
||||
}
|
||||
`;
|
||||
export const ShotWithAllFeaturesFragmentDoc = gql`
|
||||
fragment ShotWithAllFeatures on ShotGQL {
|
||||
id
|
||||
@@ -4490,6 +4523,7 @@ export const VideoDurationDataFragmentDoc = gql`
|
||||
`;
|
||||
export const HomographyInfoFragmentDoc = gql`
|
||||
fragment HomographyInfo on HomographyInfoGQL {
|
||||
id
|
||||
frameIndex
|
||||
crop {
|
||||
left
|
||||
@@ -4943,88 +4977,60 @@ export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult<
|
||||
export const GetMedalsDocument = gql`
|
||||
query getMedals($scope: MedalScope!, $userId: Int) {
|
||||
getMedals(scope: $scope, userId: $userId) {
|
||||
distanceOver66 {
|
||||
count
|
||||
nickname
|
||||
}
|
||||
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}
|
||||
`;
|
||||
|
||||
/**
|
||||
|
@@ -1,84 +1,77 @@
|
||||
fragment MedalFields on MedalGQL {
|
||||
count
|
||||
nickname
|
||||
}
|
||||
|
||||
query getMedals($scope: MedalScope!, $userId: Int) {
|
||||
getMedals(scope: $scope, userId: $userId) {
|
||||
distanceOver66 {
|
||||
count
|
||||
nickname
|
||||
}
|
||||
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
|
||||
# }
|
||||
}
|
||||
}
|
||||
|
@@ -222,6 +222,7 @@ mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
||||
}
|
||||
|
||||
fragment HomographyInfo on HomographyInfoGQL {
|
||||
id
|
||||
frameIndex
|
||||
crop {
|
||||
left
|
||||
|
@@ -320,6 +320,8 @@ type MedalGQL {
|
||||
input MedalScope @oneOf {
|
||||
videoId: Int
|
||||
interval: TimeInterval
|
||||
@deprecated(reason: "NO LONGER SUPPORTED, USE DATETIME_RANGE")
|
||||
datetimeRange: DatetimeRangeAggregationInput
|
||||
}
|
||||
|
||||
type GetRunsResult {
|
||||
@@ -705,6 +707,10 @@ scalar JSON
|
||||
type Mutation {
|
||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||
editShot(
|
||||
shotId: Int!
|
||||
fieldsToEdit: EditableShotFieldInputGQL!
|
||||
): EditShotReturn!
|
||||
addAnnotationToShot(
|
||||
shotId: Int!
|
||||
annotationName: String!
|
||||
@@ -742,6 +748,27 @@ input CreateBucketSetInput {
|
||||
buckets: [BucketInputGQL!]!
|
||||
}
|
||||
|
||||
type EditShotReturn {
|
||||
shot: ShotGQL
|
||||
error: DoesNotOwnShotErr
|
||||
}
|
||||
|
||||
type DoesNotOwnShotErr {
|
||||
shotId: Int!
|
||||
msg: String
|
||||
}
|
||||
|
||||
input EditableShotFieldInputGQL {
|
||||
intendedPocketType: PocketEnum
|
||||
shotDirection: ShotDirectionEnum
|
||||
spinType: SpinTypeEnum
|
||||
targetPocketAngleDirection: ShotDirectionEnum
|
||||
make: Boolean
|
||||
backcut: Boolean
|
||||
excludeFromStats: Boolean
|
||||
notes: String
|
||||
}
|
||||
|
||||
type AddShotAnnotationReturn {
|
||||
value: SuccessfulAddAddShotAnnotationErrors!
|
||||
}
|
||||
@@ -762,11 +789,6 @@ union DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote
|
||||
|
||||
type DoesNotOwnShotErr {
|
||||
shotId: Int!
|
||||
msg: String
|
||||
}
|
||||
|
||||
type OtherErrorNeedsNote {
|
||||
msg: String
|
||||
}
|
||||
|
Reference in New Issue
Block a user