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 = { export type MakePercentageIntervalGql = {
__typename?: "MakePercentageIntervalGQL"; __typename?: "MakePercentageIntervalGQL";
endFrame: Scalars["Float"]["output"]; elapsedTime: Scalars["Float"]["output"];
framesPerSecond: Scalars["Float"]["output"];
makePercentage: Scalars["Float"]["output"]; makePercentage: Scalars["Float"]["output"];
startFrame: Scalars["Float"]["output"];
}; };
export type Mutation = { export type Mutation = {
@ -290,6 +288,7 @@ export type QueryGetVideoFeedForUserArgs = {
}; };
export type QueryGetVideoMakePercentageIntervalsArgs = { export type QueryGetVideoMakePercentageIntervalsArgs = {
intervalDuration?: Scalars["Int"]["input"];
videoId: Scalars["ID"]["input"]; videoId: Scalars["ID"]["input"];
}; };
@ -527,10 +526,8 @@ export type GetVideoMakePercentageIntervalsQuery = {
__typename?: "Query"; __typename?: "Query";
getVideoMakePercentageIntervals: Array<{ getVideoMakePercentageIntervals: Array<{
__typename?: "MakePercentageIntervalGQL"; __typename?: "MakePercentageIntervalGQL";
startFrame: number;
endFrame: number;
framesPerSecond: number;
makePercentage: number; makePercentage: number;
elapsedTime: number;
}>; }>;
}; };
@ -892,10 +889,8 @@ export type GetFeedQueryResult = Apollo.QueryResult<
export const GetVideoMakePercentageIntervalsDocument = gql` export const GetVideoMakePercentageIntervalsDocument = gql`
query GetVideoMakePercentageIntervals($videoId: ID!) { query GetVideoMakePercentageIntervals($videoId: ID!) {
getVideoMakePercentageIntervals(videoId: $videoId) { getVideoMakePercentageIntervals(videoId: $videoId) {
startFrame
endFrame
framesPerSecond
makePercentage makePercentage
elapsedTime
} }
} }
`; `;

View File

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

View File

@ -8,7 +8,10 @@ type Query {
getShots(filterInput: FilterInput = null): [ShotGQL!]! getShots(filterInput: FilterInput = null): [ShotGQL!]!
getBucketSet(keyName: String!): BucketSetGQL getBucketSet(keyName: String!): BucketSetGQL
getVideoFeedForUser(limit: Int! = 5, after: String = null): VideoFeedGQL! getVideoFeedForUser(limit: Int! = 5, after: String = null): VideoFeedGQL!
getVideoMakePercentageIntervals(videoId: ID!): [MakePercentageIntervalGQL!]! getVideoMakePercentageIntervals(
videoId: ID!
intervalDuration: Int! = 300
): [MakePercentageIntervalGQL!]!
} }
type AggregateResultGQL { type AggregateResultGQL {
@ -268,10 +271,8 @@ type PageInfoGQL {
} }
type MakePercentageIntervalGQL { type MakePercentageIntervalGQL {
startFrame: Float!
endFrame: Float!
framesPerSecond: Float!
makePercentage: Float! makePercentage: Float!
elapsedTime: Float!
} }
type Mutation { type Mutation {