Add VideoMakePercentageIntervals call & connected to graph (#281)

should be tested after startTime/endTime is implemented to verify system works

CLOSES #1078

Co-authored-by: Loewy <loewy@chainstarters.com>
Reviewed-on: railbird/railbird-mobile#281
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
This commit is contained in:
loewy 2024-03-22 16:44:02 -06:00
parent 7889476bc9
commit 87fabdc8f9
2 changed files with 15 additions and 4 deletions

View File

@ -537,6 +537,7 @@ export type GetFeedQuery = {
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
videoId: Scalars["ID"]["input"];
intervalDuration: Scalars["Int"]["input"];
}>;
export type GetVideoMakePercentageIntervalsQuery = {
@ -991,8 +992,14 @@ export type GetFeedQueryResult = Apollo.QueryResult<
GetFeedQueryVariables
>;
export const GetVideoMakePercentageIntervalsDocument = gql`
query GetVideoMakePercentageIntervals($videoId: ID!) {
getVideoMakePercentageIntervals(videoId: $videoId) {
query GetVideoMakePercentageIntervals(
$videoId: ID!
$intervalDuration: Int!
) {
getVideoMakePercentageIntervals(
videoId: $videoId
intervalDuration: $intervalDuration
) {
makePercentage
elapsedTime
}
@ -1012,6 +1019,7 @@ export const GetVideoMakePercentageIntervalsDocument = gql`
* const { data, loading, error } = useGetVideoMakePercentageIntervalsQuery({
* variables: {
* videoId: // value for 'videoId'
* intervalDuration: // value for 'intervalDuration'
* },
* });
*/

View File

@ -1,5 +1,8 @@
query GetVideoMakePercentageIntervals($videoId: ID!) {
getVideoMakePercentageIntervals(videoId: $videoId) {
query GetVideoMakePercentageIntervals($videoId: ID!, $intervalDuration: Int!) {
getVideoMakePercentageIntervals(
videoId: $videoId
intervalDuration: $intervalDuration
) {
makePercentage
elapsedTime
}