Compare commits
1 Commits
dean/label
...
88afcc38cc
| Author | SHA1 | Date | |
|---|---|---|---|
| 88afcc38cc |
154
src/index.tsx
154
src/index.tsx
@@ -205,11 +205,6 @@ export enum ClientUploadStatusEnum {
|
||||
UploadEnabled = "UPLOAD_ENABLED",
|
||||
}
|
||||
|
||||
export type ClusterAssignmentInput = {
|
||||
clusterId: Scalars["Int"]["input"];
|
||||
userId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type CommentGql = {
|
||||
__typename?: "CommentGQL";
|
||||
id: Scalars["Int"]["output"];
|
||||
@@ -229,11 +224,6 @@ export type CreateBucketSetInput = {
|
||||
keyName: Scalars["String"]["input"];
|
||||
};
|
||||
|
||||
export type CreateCustomerPortalSessionResultGql = {
|
||||
__typename?: "CreateCustomerPortalSessionResultGQL";
|
||||
portalUrl: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type CreateSubscriptionResultGql = {
|
||||
__typename?: "CreateSubscriptionResultGQL";
|
||||
checkoutUrl: Scalars["String"]["output"];
|
||||
@@ -2187,12 +2177,6 @@ export type FilterInput =
|
||||
videoId: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type FinalizePlayerAssignmentsInput = {
|
||||
clusterAssignments?: Array<ClusterAssignmentInput>;
|
||||
shotMoves?: Array<ShotMoveInput>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type FloatOrdering = {
|
||||
descending?: Scalars["Boolean"]["input"];
|
||||
startingAt?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
@@ -2389,7 +2373,6 @@ export type Mutation = {
|
||||
commentOnVideo: Scalars["Boolean"]["output"];
|
||||
createBucketSet: BucketSetGql;
|
||||
createChallenge: Challenge;
|
||||
createCustomerPortalSession: CreateCustomerPortalSessionResultGql;
|
||||
createRuleSet: RuleSet;
|
||||
createSubscription: CreateSubscriptionResultGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
@@ -2405,7 +2388,6 @@ export type Mutation = {
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
editUser: UserGql;
|
||||
ensureStripeCustomerExists: UserGql;
|
||||
finalizePlayerAssignments: Array<PlayerClusterGql>;
|
||||
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
||||
followUser: UserGql;
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
@@ -2529,10 +2511,6 @@ export type MutationEditUserArgs = {
|
||||
input: EditUserInputGql;
|
||||
};
|
||||
|
||||
export type MutationFinalizePlayerAssignmentsArgs = {
|
||||
input: FinalizePlayerAssignmentsInput;
|
||||
};
|
||||
|
||||
export type MutationFindPrerecordTableLayoutArgs = {
|
||||
b64Image: Scalars["String"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
@@ -2695,29 +2673,6 @@ export type PageInfoGql = {
|
||||
hasNextPage: Scalars["Boolean"]["output"];
|
||||
};
|
||||
|
||||
export type PlayerClusterGql = {
|
||||
__typename?: "PlayerClusterGQL";
|
||||
clusterId: Scalars["Int"]["output"];
|
||||
confirmed: Scalars["Boolean"]["output"];
|
||||
nShots: Scalars["Int"]["output"];
|
||||
shots: Array<PlayerClusterShotGql>;
|
||||
userId?: Maybe<Scalars["Int"]["output"]>;
|
||||
videoId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type PlayerClusterShotGql = {
|
||||
__typename?: "PlayerClusterShotGQL";
|
||||
bboxX1: Scalars["Int"]["output"];
|
||||
bboxX2: Scalars["Int"]["output"];
|
||||
bboxY1: Scalars["Int"]["output"];
|
||||
bboxY2: Scalars["Int"]["output"];
|
||||
confidence: Scalars["Float"]["output"];
|
||||
cropUrl?: Maybe<Scalars["String"]["output"]>;
|
||||
fullFrameUrl?: Maybe<Scalars["String"]["output"]>;
|
||||
isConfirmed: Scalars["Boolean"]["output"];
|
||||
shotId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export enum PocketEnum {
|
||||
Corner = "CORNER",
|
||||
Side = "SIDE",
|
||||
@@ -2828,7 +2783,6 @@ export type Query = {
|
||||
notifications: NotificationConnection;
|
||||
ruleSets: Array<RuleSet>;
|
||||
unreadNotificationCount: Scalars["Int"]["output"];
|
||||
videoPlayerClusters: Array<PlayerClusterGql>;
|
||||
waitFor: Scalars["Float"]["output"];
|
||||
};
|
||||
|
||||
@@ -2995,10 +2949,6 @@ export type QueryNotificationsArgs = {
|
||||
offset?: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type QueryVideoPlayerClustersArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type QueryWaitForArgs = {
|
||||
duration: Scalars["Float"]["input"];
|
||||
};
|
||||
@@ -3216,11 +3166,6 @@ export type ShotGql = {
|
||||
videoId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type ShotMoveInput = {
|
||||
newClusterId: Scalars["Int"]["input"];
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type ShotsOrderingComponent =
|
||||
| {
|
||||
difficulty: FloatOrdering;
|
||||
@@ -3319,7 +3264,6 @@ export type StripeProductGql = {
|
||||
export type StripeSubscriptionOptionsGql = {
|
||||
__typename?: "StripeSubscriptionOptionsGQL";
|
||||
products: Array<StripeProductGql>;
|
||||
trialPeriodDays?: Maybe<Scalars["Int"]["output"]>;
|
||||
};
|
||||
|
||||
export enum StripeSubscriptionStatusEnum {
|
||||
@@ -5627,23 +5571,6 @@ export type GetUserTagsQuery = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type GetGameTypeTagMetricsQueryVariables = Exact<{
|
||||
input: GameTypeTagMetricsInput;
|
||||
}>;
|
||||
|
||||
export type GetGameTypeTagMetricsQuery = {
|
||||
__typename?: "Query";
|
||||
getGameTypeTagMetrics: Array<{
|
||||
__typename?: "GameTypeTagMetric";
|
||||
tagName: string;
|
||||
tagLabel: string;
|
||||
tableSize?: number | null;
|
||||
shotCount: number;
|
||||
madeShots: number;
|
||||
makeRate: number;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type FollowUserMutationVariables = Exact<{
|
||||
followedUserId: Scalars["Int"]["input"];
|
||||
}>;
|
||||
@@ -6523,6 +6450,7 @@ export type UploadStreamWithDetailsFragment = {
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
uploadCompletionCursor: number;
|
||||
uploadsCompleted: number;
|
||||
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||
} | null;
|
||||
};
|
||||
|
||||
@@ -6547,6 +6475,7 @@ export type GetUploadStreamsWithDetailsQuery = {
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
uploadCompletionCursor: number;
|
||||
uploadsCompleted: number;
|
||||
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||
} | null;
|
||||
}>;
|
||||
pageInfo: {
|
||||
@@ -6889,6 +6818,7 @@ export const UploadStreamWithDetailsFragmentDoc = gql`
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
uploadsCompleted
|
||||
initPlaylistUploadStatus
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -11627,84 +11557,6 @@ export type GetUserTagsQueryResult = Apollo.QueryResult<
|
||||
GetUserTagsQuery,
|
||||
GetUserTagsQueryVariables
|
||||
>;
|
||||
export const GetGameTypeTagMetricsDocument = gql`
|
||||
query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) {
|
||||
getGameTypeTagMetrics(input: $input) {
|
||||
tagName
|
||||
tagLabel
|
||||
tableSize
|
||||
shotCount
|
||||
madeShots
|
||||
makeRate
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetGameTypeTagMetricsQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetGameTypeTagMetricsQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetGameTypeTagMetricsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
||||
* you can use to render your UI.
|
||||
*
|
||||
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
||||
*
|
||||
* @example
|
||||
* const { data, loading, error } = useGetGameTypeTagMetricsQuery({
|
||||
* variables: {
|
||||
* input: // value for 'input'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetGameTypeTagMetricsQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>(GetGameTypeTagMetricsDocument, options);
|
||||
}
|
||||
export function useGetGameTypeTagMetricsLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>(GetGameTypeTagMetricsDocument, options);
|
||||
}
|
||||
export function useGetGameTypeTagMetricsSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>(GetGameTypeTagMetricsDocument, options);
|
||||
}
|
||||
export type GetGameTypeTagMetricsQueryHookResult = ReturnType<
|
||||
typeof useGetGameTypeTagMetricsQuery
|
||||
>;
|
||||
export type GetGameTypeTagMetricsLazyQueryHookResult = ReturnType<
|
||||
typeof useGetGameTypeTagMetricsLazyQuery
|
||||
>;
|
||||
export type GetGameTypeTagMetricsSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetGameTypeTagMetricsSuspenseQuery
|
||||
>;
|
||||
export type GetGameTypeTagMetricsQueryResult = Apollo.QueryResult<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>;
|
||||
export const FollowUserDocument = gql`
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
|
||||
@@ -92,17 +92,6 @@ query GetUserTags {
|
||||
}
|
||||
}
|
||||
|
||||
query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) {
|
||||
getGameTypeTagMetrics(input: $input) {
|
||||
tagName
|
||||
tagLabel
|
||||
tableSize
|
||||
shotCount
|
||||
madeShots
|
||||
makeRate
|
||||
}
|
||||
}
|
||||
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
id
|
||||
|
||||
@@ -117,6 +117,7 @@ fragment UploadStreamWithDetails on VideoGQL {
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
uploadsCompleted
|
||||
initPlaylistUploadStatus
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ type Query {
|
||||
getLongestRunsLeaderboard(
|
||||
interval: TimeInterval = null
|
||||
when: DateTime = null
|
||||
limit: Int! = 50
|
||||
limit: Int! = 100
|
||||
requiredTags: [String!] = null
|
||||
): RunLeaderboardGQL!
|
||||
getMakesLeaderboard(
|
||||
@@ -49,7 +49,6 @@ type Query {
|
||||
limit: Int! = 500
|
||||
countRespectsLimit: Boolean! = false
|
||||
): GetRunsResult!
|
||||
videoPlayerClusters(videoId: Int!): [PlayerClusterGQL!]!
|
||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||
getTableState(
|
||||
b64Image: String!
|
||||
@@ -861,27 +860,6 @@ input DatetimeOrdering {
|
||||
startingAt: DateTime = null
|
||||
}
|
||||
|
||||
type PlayerClusterGQL {
|
||||
videoId: Int!
|
||||
clusterId: Int!
|
||||
nShots: Int!
|
||||
userId: Int
|
||||
confirmed: Boolean!
|
||||
shots: [PlayerClusterShotGQL!]!
|
||||
}
|
||||
|
||||
type PlayerClusterShotGQL {
|
||||
shotId: Int!
|
||||
bboxX1: Int!
|
||||
bboxY1: Int!
|
||||
bboxX2: Int!
|
||||
bboxY2: Int!
|
||||
confidence: Float!
|
||||
isConfirmed: Boolean!
|
||||
cropUrl: String
|
||||
fullFrameUrl: String
|
||||
}
|
||||
|
||||
type TableStateGQL {
|
||||
identifierToPosition: [[Float!]!]!
|
||||
homography: HomographyInfoGQL
|
||||
@@ -962,7 +940,6 @@ type UserRelationship {
|
||||
|
||||
type StripeSubscriptionOptionsGQL {
|
||||
products: [StripeProductGQL!]!
|
||||
trialPeriodDays: Int
|
||||
}
|
||||
|
||||
type StripeProductGQL {
|
||||
@@ -1116,9 +1093,6 @@ type Mutation {
|
||||
markAllNotificationsAsRead: Boolean!
|
||||
markNotificationsAsRead(notificationIds: [Int!]!): Boolean!
|
||||
deleteNotification(notificationId: Int!): Boolean!
|
||||
finalizePlayerAssignments(
|
||||
input: FinalizePlayerAssignmentsInput!
|
||||
): [PlayerClusterGQL!]!
|
||||
addAnnotationToShot(
|
||||
shotId: Int!
|
||||
annotationName: String!
|
||||
@@ -1143,7 +1117,6 @@ type Mutation {
|
||||
ensureStripeCustomerExists: UserGQL!
|
||||
deleteUser: Boolean!
|
||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||
createCustomerPortalSession: CreateCustomerPortalSessionResultGQL!
|
||||
cancelSubscription: UserSubscriptionStatusGQL!
|
||||
grantManualEntitlement(
|
||||
userId: Int!
|
||||
@@ -1190,22 +1163,6 @@ enum ReportReasonEnum {
|
||||
OTHER
|
||||
}
|
||||
|
||||
input FinalizePlayerAssignmentsInput {
|
||||
videoId: Int!
|
||||
clusterAssignments: [ClusterAssignmentInput!]! = []
|
||||
shotMoves: [ShotMoveInput!]! = []
|
||||
}
|
||||
|
||||
input ClusterAssignmentInput {
|
||||
clusterId: Int!
|
||||
userId: Int = null
|
||||
}
|
||||
|
||||
input ShotMoveInput {
|
||||
shotId: Int!
|
||||
newClusterId: Int!
|
||||
}
|
||||
|
||||
type AddShotAnnotationReturn {
|
||||
value: SuccessfulAddAddShotAnnotationErrors!
|
||||
}
|
||||
@@ -1299,10 +1256,6 @@ type CreateSubscriptionResultGQL {
|
||||
sessionId: String!
|
||||
}
|
||||
|
||||
type CreateCustomerPortalSessionResultGQL {
|
||||
portalUrl: String!
|
||||
}
|
||||
|
||||
enum CancellationReasonEnum {
|
||||
DONT_PLAY_ENOUGH
|
||||
TOO_EXPENSIVE
|
||||
|
||||
Reference in New Issue
Block a user