Compare commits
5 Commits
dean/neste
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1914b2f5c0 | |||
|
|
722b2ca2b0 | ||
| 79f38fa45f | |||
| 2886d2f5b8 | |||
|
|
8441bb12e9 |
257
src/index.tsx
257
src/index.tsx
@@ -5414,6 +5414,69 @@ export type GetMyDrillRunsQuery = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type GetRecordedStreamsQueryVariables = Exact<{
|
||||
limit?: Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetRecordedStreamsQuery = {
|
||||
__typename?: "Query";
|
||||
getFeedVideos: {
|
||||
__typename?: "VideoHistoryGQL";
|
||||
videos: Array<{
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
name?: string | null;
|
||||
createdAt?: any | null;
|
||||
screenshotUri?: string | null;
|
||||
framesPerSecond?: number | null;
|
||||
totalShots: number;
|
||||
owner?: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
} | null;
|
||||
}>;
|
||||
};
|
||||
};
|
||||
|
||||
export type GetLiveStreamsQueryVariables = Exact<{
|
||||
limit?: Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetLiveStreamsQuery = {
|
||||
__typename?: "Query";
|
||||
getFeedVideos: {
|
||||
__typename?: "VideoHistoryGQL";
|
||||
videos: Array<{
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
name?: string | null;
|
||||
startTime?: any | null;
|
||||
createdAt?: any | null;
|
||||
screenshotUri?: string | null;
|
||||
elapsedTime?: number | null;
|
||||
owner?: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
} | null;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
isCompleted: boolean;
|
||||
lastSegmentUploadedAt?: any | null;
|
||||
} | null;
|
||||
}>;
|
||||
pageInfo: {
|
||||
__typename?: "PageInfoGQL";
|
||||
hasNextPage: boolean;
|
||||
endCursor?: string | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
||||
videoId: Scalars["ID"]["input"];
|
||||
intervalDuration: Scalars["Int"]["input"];
|
||||
@@ -9204,6 +9267,7 @@ export type GetUploadLinkMutation = {
|
||||
};
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
uploadCompletionCursor: number;
|
||||
} | null;
|
||||
};
|
||||
@@ -9302,6 +9366,7 @@ export type UploadStreamWithDetailsFragment = {
|
||||
startTime?: any | null;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
isCompleted: boolean;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
uploadCompletionCursor: number;
|
||||
@@ -9326,6 +9391,7 @@ export type GetUploadStreamsWithDetailsQuery = {
|
||||
startTime?: any | null;
|
||||
stream?: {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
isCompleted: boolean;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
uploadCompletionCursor: number;
|
||||
@@ -9903,6 +9969,7 @@ export const UploadStreamWithDetailsFragmentDoc = gql`
|
||||
name
|
||||
startTime
|
||||
stream {
|
||||
id
|
||||
isCompleted
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
@@ -12381,6 +12448,195 @@ export type GetMyDrillRunsQueryResult = Apollo.QueryResult<
|
||||
GetMyDrillRunsQuery,
|
||||
GetMyDrillRunsQueryVariables
|
||||
>;
|
||||
export const GetRecordedStreamsDocument = gql`
|
||||
query GetRecordedStreams($limit: Int! = 25) {
|
||||
getFeedVideos(
|
||||
limit: $limit
|
||||
filters: { isStreamCompleted: true, excludeVideosWithNoShots: true }
|
||||
includePrivate: MINE
|
||||
feedInput: { allUsers: true }
|
||||
) {
|
||||
videos {
|
||||
id
|
||||
name
|
||||
createdAt
|
||||
screenshotUri
|
||||
framesPerSecond
|
||||
totalShots
|
||||
owner {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetRecordedStreamsQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetRecordedStreamsQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetRecordedStreamsQuery` 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 } = useGetRecordedStreamsQuery({
|
||||
* variables: {
|
||||
* limit: // value for 'limit'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetRecordedStreamsQuery(
|
||||
baseOptions?: Apollo.QueryHookOptions<
|
||||
GetRecordedStreamsQuery,
|
||||
GetRecordedStreamsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetRecordedStreamsQuery,
|
||||
GetRecordedStreamsQueryVariables
|
||||
>(GetRecordedStreamsDocument, options);
|
||||
}
|
||||
export function useGetRecordedStreamsLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetRecordedStreamsQuery,
|
||||
GetRecordedStreamsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetRecordedStreamsQuery,
|
||||
GetRecordedStreamsQueryVariables
|
||||
>(GetRecordedStreamsDocument, options);
|
||||
}
|
||||
export function useGetRecordedStreamsSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetRecordedStreamsQuery,
|
||||
GetRecordedStreamsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetRecordedStreamsQuery,
|
||||
GetRecordedStreamsQueryVariables
|
||||
>(GetRecordedStreamsDocument, options);
|
||||
}
|
||||
export type GetRecordedStreamsQueryHookResult = ReturnType<
|
||||
typeof useGetRecordedStreamsQuery
|
||||
>;
|
||||
export type GetRecordedStreamsLazyQueryHookResult = ReturnType<
|
||||
typeof useGetRecordedStreamsLazyQuery
|
||||
>;
|
||||
export type GetRecordedStreamsSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetRecordedStreamsSuspenseQuery
|
||||
>;
|
||||
export type GetRecordedStreamsQueryResult = Apollo.QueryResult<
|
||||
GetRecordedStreamsQuery,
|
||||
GetRecordedStreamsQueryVariables
|
||||
>;
|
||||
export const GetLiveStreamsDocument = gql`
|
||||
query GetLiveStreams($limit: Int! = 25) {
|
||||
getFeedVideos(
|
||||
limit: $limit
|
||||
filters: { isStreamCompleted: false, requireCursorCompletion: false }
|
||||
includePrivate: MINE
|
||||
feedInput: { allUsers: true }
|
||||
) {
|
||||
videos {
|
||||
id
|
||||
name
|
||||
startTime
|
||||
createdAt
|
||||
screenshotUri
|
||||
elapsedTime
|
||||
owner {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
stream {
|
||||
id
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
endCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetLiveStreamsQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetLiveStreamsQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetLiveStreamsQuery` 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 } = useGetLiveStreamsQuery({
|
||||
* variables: {
|
||||
* limit: // value for 'limit'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetLiveStreamsQuery(
|
||||
baseOptions?: Apollo.QueryHookOptions<
|
||||
GetLiveStreamsQuery,
|
||||
GetLiveStreamsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<GetLiveStreamsQuery, GetLiveStreamsQueryVariables>(
|
||||
GetLiveStreamsDocument,
|
||||
options,
|
||||
);
|
||||
}
|
||||
export function useGetLiveStreamsLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetLiveStreamsQuery,
|
||||
GetLiveStreamsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<GetLiveStreamsQuery, GetLiveStreamsQueryVariables>(
|
||||
GetLiveStreamsDocument,
|
||||
options,
|
||||
);
|
||||
}
|
||||
export function useGetLiveStreamsSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetLiveStreamsQuery,
|
||||
GetLiveStreamsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetLiveStreamsQuery,
|
||||
GetLiveStreamsQueryVariables
|
||||
>(GetLiveStreamsDocument, options);
|
||||
}
|
||||
export type GetLiveStreamsQueryHookResult = ReturnType<
|
||||
typeof useGetLiveStreamsQuery
|
||||
>;
|
||||
export type GetLiveStreamsLazyQueryHookResult = ReturnType<
|
||||
typeof useGetLiveStreamsLazyQuery
|
||||
>;
|
||||
export type GetLiveStreamsSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetLiveStreamsSuspenseQuery
|
||||
>;
|
||||
export type GetLiveStreamsQueryResult = Apollo.QueryResult<
|
||||
GetLiveStreamsQuery,
|
||||
GetLiveStreamsQueryVariables
|
||||
>;
|
||||
export const GetVideoMakePercentageIntervalsDocument = gql`
|
||||
query GetVideoMakePercentageIntervals(
|
||||
$videoId: ID!
|
||||
@@ -19680,6 +19936,7 @@ export const GetUploadLinkDocument = gql`
|
||||
}
|
||||
}
|
||||
stream {
|
||||
id
|
||||
uploadCompletionCursor
|
||||
}
|
||||
}
|
||||
|
||||
25
src/operations/legacy_shotsim.gql
Normal file
25
src/operations/legacy_shotsim.gql
Normal file
@@ -0,0 +1,25 @@
|
||||
# Legacy shot-sim operations still used by mobile master's
|
||||
# LiveStreamPicker / RecordedShotPicker; remove when those are deleted.
|
||||
|
||||
query GetRecordedStreams($limit: Int! = 25) {
|
||||
getFeedVideos(
|
||||
limit: $limit
|
||||
filters: { isStreamCompleted: true, excludeVideosWithNoShots: true }
|
||||
includePrivate: MINE
|
||||
feedInput: { allUsers: true }
|
||||
) {
|
||||
videos {
|
||||
id
|
||||
name
|
||||
createdAt
|
||||
screenshotUri
|
||||
framesPerSecond
|
||||
totalShots
|
||||
owner {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
34
src/operations/live_streams.gql
Normal file
34
src/operations/live_streams.gql
Normal file
@@ -0,0 +1,34 @@
|
||||
# Lightweight listing of live (in-progress) streams for pickers like the
|
||||
# Shot Lab "follow a live stream" flow. Selects only what a picker card
|
||||
# needs; intentionally avoids the heavy VideoCardFields fragment.
|
||||
query GetLiveStreams($limit: Int! = 25) {
|
||||
getFeedVideos(
|
||||
limit: $limit
|
||||
filters: { isStreamCompleted: false, requireCursorCompletion: false }
|
||||
includePrivate: MINE
|
||||
feedInput: { allUsers: true }
|
||||
) {
|
||||
videos {
|
||||
id
|
||||
name
|
||||
startTime
|
||||
createdAt
|
||||
screenshotUri
|
||||
elapsedTime
|
||||
owner {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
stream {
|
||||
id
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
endCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,7 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
}
|
||||
}
|
||||
stream {
|
||||
id
|
||||
uploadCompletionCursor
|
||||
}
|
||||
}
|
||||
@@ -127,6 +128,7 @@ fragment UploadStreamWithDetails on VideoGQL {
|
||||
name
|
||||
startTime
|
||||
stream {
|
||||
id
|
||||
isCompleted
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
|
||||
Reference in New Issue
Block a user