Return elapsed time in make percentge time series gql

This commit is contained in:
Kat Huang 2024-03-14 12:57:31 -06:00
parent 09bbbf0b3d
commit 43c1f7be09
3 changed files with 10 additions and 16 deletions

View File

@ -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
}
}
`;

View File

@ -1,8 +1,6 @@
query GetVideoMakePercentageIntervals($videoId: ID!) {
getVideoMakePercentageIntervals(videoId: $videoId) {
startFrame
endFrame
framesPerSecond
makePercentage
elapsedTime
}
}

View File

@ -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 {