|
|
|
@@ -2211,6 +2211,7 @@ export type QueryGetMedalsArgs = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetOrderedShotsArgs = {
|
|
|
|
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
@@ -2226,6 +2227,7 @@ export type QueryGetShotAnnotationTypesArgs = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetShotsArgs = {
|
|
|
|
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
|
shotsPagination?: InputMaybe<GetShotsPagination>;
|
|
|
|
@@ -2236,6 +2238,7 @@ export type QueryGetShotsByIdsArgs = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetShotsWithMetadataArgs = {
|
|
|
|
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
@@ -2783,6 +2786,87 @@ export type GetFeedQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type VideoCardFieldsFragment = {
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
name?: string | null;
|
|
|
|
|
screenshotUri?: string | null;
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
|
endTime?: any | null;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
profileImageUri?: string | null;
|
|
|
|
|
} | null;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
isCompleted: boolean;
|
|
|
|
|
} | null;
|
|
|
|
|
tags: Array<{
|
|
|
|
|
__typename?: "VideoTag";
|
|
|
|
|
name: string;
|
|
|
|
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetVideoFeedQueryVariables = Exact<{
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
filters?: InputMaybe<VideoFilterInput>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetVideoFeedQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getFeedVideos: {
|
|
|
|
|
__typename?: "VideoHistoryGQL";
|
|
|
|
|
videos: Array<{
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
name?: string | null;
|
|
|
|
|
screenshotUri?: string | null;
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
|
endTime?: any | null;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
profileImageUri?: string | null;
|
|
|
|
|
} | null;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
isCompleted: boolean;
|
|
|
|
|
} | null;
|
|
|
|
|
tags: Array<{
|
|
|
|
|
__typename?: "VideoTag";
|
|
|
|
|
name: string;
|
|
|
|
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
|
|
|
|
}>;
|
|
|
|
|
}>;
|
|
|
|
|
pageInfo: {
|
|
|
|
|
__typename?: "PageInfoGQL";
|
|
|
|
|
hasNextPage: boolean;
|
|
|
|
|
endCursor?: string | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
|
|
|
|
videoId: Scalars["ID"]["input"];
|
|
|
|
|
intervalDuration: Scalars["Int"]["input"];
|
|
|
|
@@ -2888,6 +2972,7 @@ export type GetShotsWithMetadataFilterResultQueryVariables = Exact<{
|
|
|
|
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
|
|
|
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
|
|
|
|
countRespectsLimit?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithMetadataFilterResultQuery = {
|
|
|
|
@@ -3235,8 +3320,17 @@ export type FollowUserMutation = {
|
|
|
|
|
followUser: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
username: string;
|
|
|
|
|
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
|
|
|
|
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
|
|
|
|
id: number;
|
|
|
|
|
following?: Array<{
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
}> | null;
|
|
|
|
|
followers?: Array<{
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
}> | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -3249,8 +3343,17 @@ export type UnfollowUserMutation = {
|
|
|
|
|
unfollowUser: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
username: string;
|
|
|
|
|
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
|
|
|
|
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
|
|
|
|
id: number;
|
|
|
|
|
following?: Array<{
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
}> | null;
|
|
|
|
|
followers?: Array<{
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
}> | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -3262,6 +3365,7 @@ export type GetUserFollowingFollowersQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getLoggedInUser?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
following?: Array<{
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
@@ -3275,6 +3379,15 @@ export type GetUserFollowingFollowersQuery = {
|
|
|
|
|
} | null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type DoesUsernameExistQueryVariables = Exact<{
|
|
|
|
|
candidateUsername: Scalars["String"]["input"];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type DoesUsernameExistQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
doesUsernameExist: boolean;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
|
|
|
@@ -3876,6 +3989,38 @@ export type GetUploadStreamsWithDetailsQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const VideoCardFieldsFragmentDoc = gql`
|
|
|
|
|
fragment VideoCardFields on VideoGQL {
|
|
|
|
|
id
|
|
|
|
|
owner {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
profileImageUri
|
|
|
|
|
}
|
|
|
|
|
name
|
|
|
|
|
screenshotUri
|
|
|
|
|
totalShotsMade
|
|
|
|
|
totalShots
|
|
|
|
|
makePercentage
|
|
|
|
|
createdAt
|
|
|
|
|
updatedAt
|
|
|
|
|
startTime
|
|
|
|
|
endTime
|
|
|
|
|
elapsedTime
|
|
|
|
|
screenshotUri
|
|
|
|
|
stream {
|
|
|
|
|
id
|
|
|
|
|
isCompleted
|
|
|
|
|
}
|
|
|
|
|
tableSize
|
|
|
|
|
tags {
|
|
|
|
|
tagClasses {
|
|
|
|
|
name
|
|
|
|
|
}
|
|
|
|
|
name
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export const ShotWithAllFeaturesFragmentDoc = gql`
|
|
|
|
|
fragment ShotWithAllFeatures on ShotGQL {
|
|
|
|
|
id
|
|
|
|
@@ -4253,6 +4398,92 @@ export type GetFeedQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetFeedQuery,
|
|
|
|
|
GetFeedQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetVideoFeedDocument = gql`
|
|
|
|
|
query GetVideoFeed(
|
|
|
|
|
$limit: Int! = 5
|
|
|
|
|
$after: String = null
|
|
|
|
|
$filters: VideoFilterInput = null
|
|
|
|
|
) {
|
|
|
|
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
|
|
|
|
videos {
|
|
|
|
|
...VideoCardFields
|
|
|
|
|
}
|
|
|
|
|
pageInfo {
|
|
|
|
|
hasNextPage
|
|
|
|
|
endCursor
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
${VideoCardFieldsFragmentDoc}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetVideoFeedQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetVideoFeedQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetVideoFeedQuery` 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 } = useGetVideoFeedQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* after: // value for 'after'
|
|
|
|
|
* filters: // value for 'filters'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetVideoFeedQuery(
|
|
|
|
|
baseOptions?: Apollo.QueryHookOptions<
|
|
|
|
|
GetVideoFeedQuery,
|
|
|
|
|
GetVideoFeedQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
|
|
|
|
GetVideoFeedDocument,
|
|
|
|
|
options,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export function useGetVideoFeedLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetVideoFeedQuery,
|
|
|
|
|
GetVideoFeedQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
|
|
|
|
GetVideoFeedDocument,
|
|
|
|
|
options,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export function useGetVideoFeedSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetVideoFeedQuery,
|
|
|
|
|
GetVideoFeedQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
|
|
|
|
GetVideoFeedDocument,
|
|
|
|
|
options,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export type GetVideoFeedQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetVideoFeedQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetVideoFeedLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetVideoFeedLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetVideoFeedSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetVideoFeedSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetVideoFeedQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetVideoFeedQuery,
|
|
|
|
|
GetVideoFeedQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetVideoMakePercentageIntervalsDocument = gql`
|
|
|
|
|
query GetVideoMakePercentageIntervals(
|
|
|
|
|
$videoId: ID!
|
|
|
|
@@ -4650,12 +4881,14 @@ export const GetShotsWithMetadataFilterResultDocument = gql`
|
|
|
|
|
$shotsOrdering: GetShotsOrdering
|
|
|
|
|
$limit: Int
|
|
|
|
|
$ids: [Int!]
|
|
|
|
|
$countRespectsLimit: Boolean
|
|
|
|
|
) {
|
|
|
|
|
getOrderedShots(
|
|
|
|
|
filterInput: $filterInput
|
|
|
|
|
shotsOrdering: $shotsOrdering
|
|
|
|
|
limit: $limit
|
|
|
|
|
ids: $ids
|
|
|
|
|
countRespectsLimit: $countRespectsLimit
|
|
|
|
|
) {
|
|
|
|
|
count
|
|
|
|
|
shots {
|
|
|
|
@@ -4683,6 +4916,7 @@ export const GetShotsWithMetadataFilterResultDocument = gql`
|
|
|
|
|
* shotsOrdering: // value for 'shotsOrdering'
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* ids: // value for 'ids'
|
|
|
|
|
* countRespectsLimit: // value for 'countRespectsLimit'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
@@ -5418,11 +5652,14 @@ export const FollowUserDocument = gql`
|
|
|
|
|
mutation followUser($followedUserId: Int!) {
|
|
|
|
|
followUser(followedUserId: $followedUserId) {
|
|
|
|
|
username
|
|
|
|
|
id
|
|
|
|
|
following {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
}
|
|
|
|
|
followers {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -5474,11 +5711,14 @@ export const UnfollowUserDocument = gql`
|
|
|
|
|
mutation unfollowUser($followedUserId: Int!) {
|
|
|
|
|
unfollowUser(followedUserId: $followedUserId) {
|
|
|
|
|
username
|
|
|
|
|
id
|
|
|
|
|
following {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
}
|
|
|
|
|
followers {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@@ -5529,6 +5769,7 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
|
|
|
|
|
export const GetUserFollowingFollowersDocument = gql`
|
|
|
|
|
query getUserFollowingFollowers {
|
|
|
|
|
getLoggedInUser {
|
|
|
|
|
id
|
|
|
|
|
following {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
@@ -5605,6 +5846,77 @@ export type GetUserFollowingFollowersQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetUserFollowingFollowersQuery,
|
|
|
|
|
GetUserFollowingFollowersQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const DoesUsernameExistDocument = gql`
|
|
|
|
|
query doesUsernameExist($candidateUsername: String!) {
|
|
|
|
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useDoesUsernameExistQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useDoesUsernameExistQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useDoesUsernameExistQuery` 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 } = useDoesUsernameExistQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* candidateUsername: // value for 'candidateUsername'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useDoesUsernameExistQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>(DoesUsernameExistDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useDoesUsernameExistLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>(DoesUsernameExistDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useDoesUsernameExistSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>(DoesUsernameExistDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type DoesUsernameExistQueryHookResult = ReturnType<
|
|
|
|
|
typeof useDoesUsernameExistQuery
|
|
|
|
|
>;
|
|
|
|
|
export type DoesUsernameExistLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useDoesUsernameExistLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type DoesUsernameExistSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useDoesUsernameExistSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type DoesUsernameExistQueryResult = Apollo.QueryResult<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetStreamMonitoringDetailsDocument = gql`
|
|
|
|
|
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
|
|
|
|
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
|
|
|
|