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:
parent
7889476bc9
commit
87fabdc8f9
@ -537,6 +537,7 @@ export type GetFeedQuery = {
|
|||||||
|
|
||||||
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
||||||
videoId: Scalars["ID"]["input"];
|
videoId: Scalars["ID"]["input"];
|
||||||
|
intervalDuration: Scalars["Int"]["input"];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetVideoMakePercentageIntervalsQuery = {
|
export type GetVideoMakePercentageIntervalsQuery = {
|
||||||
@ -991,8 +992,14 @@ export type GetFeedQueryResult = Apollo.QueryResult<
|
|||||||
GetFeedQueryVariables
|
GetFeedQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetVideoMakePercentageIntervalsDocument = gql`
|
export const GetVideoMakePercentageIntervalsDocument = gql`
|
||||||
query GetVideoMakePercentageIntervals($videoId: ID!) {
|
query GetVideoMakePercentageIntervals(
|
||||||
getVideoMakePercentageIntervals(videoId: $videoId) {
|
$videoId: ID!
|
||||||
|
$intervalDuration: Int!
|
||||||
|
) {
|
||||||
|
getVideoMakePercentageIntervals(
|
||||||
|
videoId: $videoId
|
||||||
|
intervalDuration: $intervalDuration
|
||||||
|
) {
|
||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
}
|
}
|
||||||
@ -1012,6 +1019,7 @@ export const GetVideoMakePercentageIntervalsDocument = gql`
|
|||||||
* const { data, loading, error } = useGetVideoMakePercentageIntervalsQuery({
|
* const { data, loading, error } = useGetVideoMakePercentageIntervalsQuery({
|
||||||
* variables: {
|
* variables: {
|
||||||
* videoId: // value for 'videoId'
|
* videoId: // value for 'videoId'
|
||||||
|
* intervalDuration: // value for 'intervalDuration'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
query GetVideoMakePercentageIntervals($videoId: ID!) {
|
query GetVideoMakePercentageIntervals($videoId: ID!, $intervalDuration: Int!) {
|
||||||
getVideoMakePercentageIntervals(videoId: $videoId) {
|
getVideoMakePercentageIntervals(
|
||||||
|
videoId: $videoId
|
||||||
|
intervalDuration: $intervalDuration
|
||||||
|
) {
|
||||||
makePercentage
|
makePercentage
|
||||||
elapsedTime
|
elapsedTime
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user