Compare commits
6 Commits
ivan/manua
...
loewy/add-
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f663b766e | |||
| ad9cab4543 | |||
| cd3ecdfba4 | |||
| 28ba01c07f | |||
| 27a0c08cd5 | |||
| 99f0913fd8 |
123
src/index.tsx
123
src/index.tsx
@@ -2191,6 +2191,26 @@ export type FloatRangeFilter = {
|
|||||||
lessThanInclusive?: Scalars["Boolean"]["input"];
|
lessThanInclusive?: Scalars["Boolean"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GameTypeTagMetric = {
|
||||||
|
__typename?: "GameTypeTagMetric";
|
||||||
|
madeShots: Scalars["Int"]["output"];
|
||||||
|
makeRate: Scalars["Float"]["output"];
|
||||||
|
shotCount: Scalars["Int"]["output"];
|
||||||
|
tableSize?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
tagLabel: Scalars["String"]["output"];
|
||||||
|
tagName: Scalars["String"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GameTypeTagMetricsInput = {
|
||||||
|
createdAt?: InputMaybe<DateRangeFilter>;
|
||||||
|
groupByTableSize?: Scalars["Boolean"]["input"];
|
||||||
|
includePrivate?: IncludePrivateEnum;
|
||||||
|
includeUnknown?: Scalars["Boolean"]["input"];
|
||||||
|
maxTags?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
tagClass?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
userId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type GetProfileUploadLinkErrors = {
|
export type GetProfileUploadLinkErrors = {
|
||||||
__typename?: "GetProfileUploadLinkErrors";
|
__typename?: "GetProfileUploadLinkErrors";
|
||||||
error: TooManyProfileImageUploadsErr;
|
error: TooManyProfileImageUploadsErr;
|
||||||
@@ -2732,6 +2752,7 @@ export type Query = {
|
|||||||
getBucketSet?: Maybe<BucketSetGql>;
|
getBucketSet?: Maybe<BucketSetGql>;
|
||||||
getDeployedConfig: DeployedConfigGql;
|
getDeployedConfig: DeployedConfigGql;
|
||||||
getFeedVideos: VideoHistoryGql;
|
getFeedVideos: VideoHistoryGql;
|
||||||
|
getGameTypeTagMetrics: Array<GameTypeTagMetric>;
|
||||||
getLoggedInUser?: Maybe<UserGql>;
|
getLoggedInUser?: Maybe<UserGql>;
|
||||||
getLongestRunsLeaderboard: RunLeaderboardGql;
|
getLongestRunsLeaderboard: RunLeaderboardGql;
|
||||||
getMakesLeaderboard: CountLeaderboardGql;
|
getMakesLeaderboard: CountLeaderboardGql;
|
||||||
@@ -2799,6 +2820,10 @@ export type QueryGetFeedVideosArgs = {
|
|||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryGetGameTypeTagMetricsArgs = {
|
||||||
|
input: GameTypeTagMetricsInput;
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryGetLongestRunsLeaderboardArgs = {
|
export type QueryGetLongestRunsLeaderboardArgs = {
|
||||||
interval?: InputMaybe<TimeInterval>;
|
interval?: InputMaybe<TimeInterval>;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
@@ -5546,6 +5571,23 @@ 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<{
|
export type FollowUserMutationVariables = Exact<{
|
||||||
followedUserId: Scalars["Int"]["input"];
|
followedUserId: Scalars["Int"]["input"];
|
||||||
}>;
|
}>;
|
||||||
@@ -6425,6 +6467,7 @@ export type UploadStreamWithDetailsFragment = {
|
|||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
uploadCompletionCursor: number;
|
uploadCompletionCursor: number;
|
||||||
uploadsCompleted: number;
|
uploadsCompleted: number;
|
||||||
|
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -6449,6 +6492,7 @@ export type GetUploadStreamsWithDetailsQuery = {
|
|||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
uploadCompletionCursor: number;
|
uploadCompletionCursor: number;
|
||||||
uploadsCompleted: number;
|
uploadsCompleted: number;
|
||||||
|
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
@@ -6791,6 +6835,7 @@ export const UploadStreamWithDetailsFragmentDoc = gql`
|
|||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
uploadsCompleted
|
uploadsCompleted
|
||||||
|
initPlaylistUploadStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -11529,6 +11574,84 @@ export type GetUserTagsQueryResult = Apollo.QueryResult<
|
|||||||
GetUserTagsQuery,
|
GetUserTagsQuery,
|
||||||
GetUserTagsQueryVariables
|
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`
|
export const FollowUserDocument = gql`
|
||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
|
|||||||
@@ -92,6 +92,17 @@ query GetUserTags {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) {
|
||||||
|
getGameTypeTagMetrics(input: $input) {
|
||||||
|
tagName
|
||||||
|
tagLabel
|
||||||
|
tableSize
|
||||||
|
shotCount
|
||||||
|
madeShots
|
||||||
|
makeRate
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
id
|
id
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ fragment UploadStreamWithDetails on VideoGQL {
|
|||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
uploadsCompleted
|
uploadsCompleted
|
||||||
|
initPlaylistUploadStatus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ type Query {
|
|||||||
filters: VideoFilterInput = null
|
filters: VideoFilterInput = null
|
||||||
): VideoHistoryGQL!
|
): VideoHistoryGQL!
|
||||||
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
||||||
|
getGameTypeTagMetrics(input: GameTypeTagMetricsInput!): [GameTypeTagMetric!]!
|
||||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
||||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||||
}
|
}
|
||||||
@@ -1017,6 +1018,25 @@ type TagClassGQL {
|
|||||||
name: String!
|
name: String!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type GameTypeTagMetric {
|
||||||
|
tagName: String!
|
||||||
|
tagLabel: String!
|
||||||
|
tableSize: Float
|
||||||
|
shotCount: Int!
|
||||||
|
madeShots: Int!
|
||||||
|
makeRate: Float!
|
||||||
|
}
|
||||||
|
|
||||||
|
input GameTypeTagMetricsInput {
|
||||||
|
userId: Int!
|
||||||
|
createdAt: DateRangeFilter = null
|
||||||
|
maxTags: Int = null
|
||||||
|
groupByTableSize: Boolean! = true
|
||||||
|
includeUnknown: Boolean! = true
|
||||||
|
tagClass: String = "game_type"
|
||||||
|
includePrivate: IncludePrivateEnum! = MINE
|
||||||
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).
|
The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user