diff --git a/src/index.tsx b/src/index.tsx index 5ef5663..261187f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -173,10 +173,8 @@ export type IntendedPocketTypeInput = { export type MakePercentageIntervalGql = { __typename?: "MakePercentageIntervalGQL"; - endFrame: Scalars["Float"]["output"]; - framesPerSecond: Scalars["Float"]["output"]; + elapsedTime: Scalars["Float"]["output"]; makePercentage: Scalars["Float"]["output"]; - startFrame: Scalars["Float"]["output"]; }; export type Mutation = { @@ -290,6 +288,7 @@ export type QueryGetVideoFeedForUserArgs = { }; export type QueryGetVideoMakePercentageIntervalsArgs = { + intervalDuration?: Scalars["Int"]["input"]; videoId: Scalars["ID"]["input"]; }; @@ -527,10 +526,8 @@ export type GetVideoMakePercentageIntervalsQuery = { __typename?: "Query"; getVideoMakePercentageIntervals: Array<{ __typename?: "MakePercentageIntervalGQL"; - startFrame: number; - endFrame: number; - framesPerSecond: number; makePercentage: number; + elapsedTime: number; }>; }; @@ -892,10 +889,8 @@ export type GetFeedQueryResult = Apollo.QueryResult< export const GetVideoMakePercentageIntervalsDocument = gql` query GetVideoMakePercentageIntervals($videoId: ID!) { getVideoMakePercentageIntervals(videoId: $videoId) { - startFrame - endFrame - framesPerSecond makePercentage + elapsedTime } } `; diff --git a/src/operations/make_percentage_time_series.gql b/src/operations/make_percentage_time_series.gql index 863a8b0..af315ba 100644 --- a/src/operations/make_percentage_time_series.gql +++ b/src/operations/make_percentage_time_series.gql @@ -1,8 +1,6 @@ query GetVideoMakePercentageIntervals($videoId: ID!) { getVideoMakePercentageIntervals(videoId: $videoId) { - startFrame - endFrame - framesPerSecond makePercentage + elapsedTime } } diff --git a/src/schema.gql b/src/schema.gql index 8a061f8..69f6432 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -8,7 +8,10 @@ type Query { getShots(filterInput: FilterInput = null): [ShotGQL!]! getBucketSet(keyName: String!): BucketSetGQL getVideoFeedForUser(limit: Int! = 5, after: String = null): VideoFeedGQL! - getVideoMakePercentageIntervals(videoId: ID!): [MakePercentageIntervalGQL!]! + getVideoMakePercentageIntervals( + videoId: ID! + intervalDuration: Int! = 300 + ): [MakePercentageIntervalGQL!]! } type AggregateResultGQL { @@ -268,10 +271,8 @@ type PageInfoGQL { } type MakePercentageIntervalGQL { - startFrame: Float! - endFrame: Float! - framesPerSecond: Float! makePercentage: Float! + elapsedTime: Float! } type Mutation {