|
|
|
@@ -28,8 +28,6 @@ export type Scalars = {
|
|
|
|
|
Boolean: { input: boolean; output: boolean };
|
|
|
|
|
Int: { input: number; output: number };
|
|
|
|
|
Float: { input: number; output: number };
|
|
|
|
|
/** Represents binary data as Base64-encoded strings, using the standard alphabet. */
|
|
|
|
|
Base64: { input: any; output: any };
|
|
|
|
|
/** Date (isoformat) */
|
|
|
|
|
Date: { input: any; output: any };
|
|
|
|
|
/** Date with time (isoformat) */
|
|
|
|
@@ -1944,7 +1942,6 @@ export type HomographyInfoGql = {
|
|
|
|
|
crop: BoundingBoxGql;
|
|
|
|
|
destPoints: PocketPointsGql;
|
|
|
|
|
frameIndex: Scalars["Int"]["output"];
|
|
|
|
|
id: Scalars["Int"]["output"];
|
|
|
|
|
pockets: Array<BoundingBoxGql>;
|
|
|
|
|
sourcePoints: PocketPointsGql;
|
|
|
|
|
};
|
|
|
|
@@ -2011,7 +2008,6 @@ export type Mutation = {
|
|
|
|
|
editProfileImageUri: UserGql;
|
|
|
|
|
editUploadStream: Scalars["Boolean"]["output"];
|
|
|
|
|
editUser: UserGql;
|
|
|
|
|
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
|
|
|
|
followUser: UserGql;
|
|
|
|
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
|
|
|
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
|
|
|
@@ -2053,11 +2049,6 @@ export type MutationEditUserArgs = {
|
|
|
|
|
input: EditUserInputGql;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationFindPrerecordTableLayoutArgs = {
|
|
|
|
|
b64Image: Scalars["Base64"]["input"];
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationFollowUserArgs = {
|
|
|
|
|
followedUserId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
@@ -2667,7 +2658,6 @@ export type VideoProcessingErrorGql = {
|
|
|
|
|
export type VideoProcessingGql = {
|
|
|
|
|
__typename?: "VideoProcessingGQL";
|
|
|
|
|
errors: Array<VideoProcessingErrorGql>;
|
|
|
|
|
id: Scalars["Int"]["output"];
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
statuses: Array<VideoProcessingStatusGql>;
|
|
|
|
|
};
|
|
|
|
@@ -2760,7 +2750,7 @@ export type GetFeedQueryVariables = Exact<{
|
|
|
|
|
|
|
|
|
|
export type GetFeedQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getUserVideos: {
|
|
|
|
|
getFeedVideos: {
|
|
|
|
|
__typename?: "VideoHistoryGQL";
|
|
|
|
|
videos: Array<{
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
@@ -2796,110 +2786,6 @@ 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 }>;
|
|
|
|
|
}>;
|
|
|
|
|
currentProcessing?: {
|
|
|
|
|
__typename?: "VideoProcessingGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>;
|
|
|
|
|
statuses: Array<{
|
|
|
|
|
__typename?: "VideoProcessingStatusGQL";
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
}>;
|
|
|
|
|
} | null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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 }>;
|
|
|
|
|
}>;
|
|
|
|
|
currentProcessing?: {
|
|
|
|
|
__typename?: "VideoProcessingGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
errors: Array<{
|
|
|
|
|
__typename?: "VideoProcessingErrorGQL";
|
|
|
|
|
message: string;
|
|
|
|
|
}>;
|
|
|
|
|
statuses: Array<{
|
|
|
|
|
__typename?: "VideoProcessingStatusGQL";
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
}>;
|
|
|
|
|
} | null;
|
|
|
|
|
}>;
|
|
|
|
|
pageInfo: {
|
|
|
|
|
__typename?: "PageInfoGQL";
|
|
|
|
|
hasNextPage: boolean;
|
|
|
|
|
endCursor?: string | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
|
|
|
|
videoId: Scalars["ID"]["input"];
|
|
|
|
|
intervalDuration: Scalars["Int"]["input"];
|
|
|
|
@@ -3000,20 +2886,6 @@ export type GetShotsWithVideoGqlQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithJustIdsQueryVariables = Exact<{
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
|
|
|
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithJustIdsQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getOrderedShots: {
|
|
|
|
|
__typename?: "GetShotsResult";
|
|
|
|
|
shots: Array<{ __typename?: "ShotGQL"; id: number; videoId: number }>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithMetadataFilterResultQueryVariables = Exact<{
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
|
|
|
@@ -4036,48 +3908,6 @@ 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
|
|
|
|
|
}
|
|
|
|
|
currentProcessing {
|
|
|
|
|
id
|
|
|
|
|
errors {
|
|
|
|
|
message
|
|
|
|
|
}
|
|
|
|
|
status
|
|
|
|
|
statuses {
|
|
|
|
|
status
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export const ShotWithAllFeaturesFragmentDoc = gql`
|
|
|
|
|
fragment ShotWithAllFeatures on ShotGQL {
|
|
|
|
|
id
|
|
|
|
@@ -4358,7 +4188,7 @@ export const GetFeedDocument = gql`
|
|
|
|
|
$after: String = null
|
|
|
|
|
$filters: VideoFilterInput = null
|
|
|
|
|
) {
|
|
|
|
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
|
|
|
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
|
|
|
|
videos {
|
|
|
|
|
id
|
|
|
|
|
owner {
|
|
|
|
@@ -4455,92 +4285,6 @@ 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!
|
|
|
|
@@ -4932,92 +4676,6 @@ export type GetShotsWithVideoGqlQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetShotsWithVideoGqlQuery,
|
|
|
|
|
GetShotsWithVideoGqlQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetShotsWithJustIdsDocument = gql`
|
|
|
|
|
query GetShotsWithJustIds(
|
|
|
|
|
$filterInput: FilterInput!
|
|
|
|
|
$shotsOrdering: GetShotsOrdering
|
|
|
|
|
$limit: Int
|
|
|
|
|
) {
|
|
|
|
|
getOrderedShots(
|
|
|
|
|
filterInput: $filterInput
|
|
|
|
|
shotsOrdering: $shotsOrdering
|
|
|
|
|
limit: $limit
|
|
|
|
|
) {
|
|
|
|
|
shots {
|
|
|
|
|
id
|
|
|
|
|
videoId
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetShotsWithJustIdsQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetShotsWithJustIdsQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetShotsWithJustIdsQuery` 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 } = useGetShotsWithJustIdsQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* filterInput: // value for 'filterInput'
|
|
|
|
|
* shotsOrdering: // value for 'shotsOrdering'
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetShotsWithJustIdsQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>(GetShotsWithJustIdsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetShotsWithJustIdsLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>(GetShotsWithJustIdsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetShotsWithJustIdsSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>(GetShotsWithJustIdsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type GetShotsWithJustIdsQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetShotsWithJustIdsQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetShotsWithJustIdsLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetShotsWithJustIdsLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetShotsWithJustIdsSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetShotsWithJustIdsSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetShotsWithJustIdsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetShotsWithMetadataFilterResultDocument = gql`
|
|
|
|
|
query GetShotsWithMetadataFilterResult(
|
|
|
|
|
$filterInput: FilterInput!
|
|
|
|
|