Add Shot Lab video feed scopes and pagination #312
@@ -6874,8 +6874,10 @@ export type ReactToVideoMutation = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type GetShotLabVideosQueryVariables = Exact<{
|
export type GetShotLabVideosQueryVariables = Exact<{
|
||||||
userId: Scalars["Int"]["input"];
|
feedInput: VideoFeedInputGql;
|
||||||
|
includePrivate: IncludePrivateEnum;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetShotLabVideosQuery = {
|
export type GetShotLabVideosQuery = {
|
||||||
@@ -6903,6 +6905,11 @@ export type GetShotLabVideosQuery = {
|
|||||||
lastSegmentUploadedAt?: any | null;
|
lastSegmentUploadedAt?: any | null;
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
|
pageInfo: {
|
||||||
|
__typename?: "PageInfoGQL";
|
||||||
|
hasNextPage: boolean;
|
||||||
|
endCursor?: string | null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -15140,12 +15147,18 @@ export type ReactToVideoMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
ReactToVideoMutationVariables
|
ReactToVideoMutationVariables
|
||||||
>;
|
>;
|
||||||
export const GetShotLabVideosDocument = gql`
|
export const GetShotLabVideosDocument = gql`
|
||||||
query GetShotLabVideos($userId: Int!, $limit: Int! = 25) {
|
query GetShotLabVideos(
|
||||||
|
$feedInput: VideoFeedInputGQL!
|
||||||
|
$includePrivate: IncludePrivateEnum!
|
||||||
|
$limit: Int! = 25
|
||||||
|
$after: String = null
|
||||||
|
) {
|
||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: $limit
|
limit: $limit
|
||||||
|
after: $after
|
||||||
includeCallersVideos: false
|
includeCallersVideos: false
|
||||||
includePrivate: MINE
|
includePrivate: $includePrivate
|
||||||
feedInput: { userId: $userId }
|
feedInput: $feedInput
|
||||||
) {
|
) {
|
||||||
videos {
|
videos {
|
||||||
id
|
id
|
||||||
@@ -15165,6 +15178,10 @@ export const GetShotLabVideosDocument = gql`
|
|||||||
lastSegmentUploadedAt
|
lastSegmentUploadedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pageInfo {
|
||||||
|
hasNextPage
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -15181,8 +15198,10 @@ export const GetShotLabVideosDocument = gql`
|
|||||||
* @example
|
* @example
|
||||||
* const { data, loading, error } = useGetShotLabVideosQuery({
|
* const { data, loading, error } = useGetShotLabVideosQuery({
|
||||||
* variables: {
|
* variables: {
|
||||||
* userId: // value for 'userId'
|
* feedInput: // value for 'feedInput'
|
||||||
|
* includePrivate: // value for 'includePrivate'
|
||||||
* limit: // value for 'limit'
|
* limit: // value for 'limit'
|
||||||
|
* after: // value for 'after'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,12 +1,19 @@
|
|||||||
# Lightweight two-step picker data for Shot Lab's video-first source: the
|
# Lightweight two-step picker data for Shot Lab's video-first source: recent
|
||||||
# caller's recent videos (completed or still uploading), then that video's
|
# videos from the requested audience (mine, followed users, or public), then
|
||||||
# shots. The stream fields hint at "actively updating" without gating.
|
# that video's shots. The stream fields hint at "actively updating" without
|
||||||
query GetShotLabVideos($userId: Int!, $limit: Int! = 25) {
|
# gating.
|
||||||
|
query GetShotLabVideos(
|
||||||
|
$feedInput: VideoFeedInputGQL!
|
||||||
|
$includePrivate: IncludePrivateEnum!
|
||||||
|
$limit: Int! = 25
|
||||||
|
$after: String = null
|
||||||
|
) {
|
||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: $limit
|
limit: $limit
|
||||||
|
after: $after
|
||||||
includeCallersVideos: false
|
includeCallersVideos: false
|
||||||
includePrivate: MINE
|
includePrivate: $includePrivate
|
||||||
feedInput: { userId: $userId }
|
feedInput: $feedInput
|
||||||
) {
|
) {
|
||||||
videos {
|
videos {
|
||||||
id
|
id
|
||||||
@@ -26,6 +33,10 @@ query GetShotLabVideos($userId: Int!, $limit: Int! = 25) {
|
|||||||
lastSegmentUploadedAt
|
lastSegmentUploadedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pageInfo {
|
||||||
|
hasNextPage
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user