Support make percentage time series

This commit is contained in:
Kat Huang 2024-03-05 01:05:54 -07:00
parent 314957218e
commit f64fc0e54a
3 changed files with 31 additions and 0 deletions

View File

@ -142,6 +142,14 @@ export type IntendedPocketTypeInput = {
value: EnumFilter;
};
export type MakePercentageIntervalGql = {
__typename?: "MakePercentageIntervalGQL";
endFrame: Scalars["Float"]["output"];
framesPerSecond: Scalars["Float"]["output"];
makePercentage: Scalars["Float"]["output"];
startFrame: Scalars["Float"]["output"];
};
export type Mutation = {
__typename?: "Mutation";
createBucketSet: BucketSetGql;
@ -199,6 +207,7 @@ export type Query = {
getUser?: Maybe<UserGql>;
getVideo: VideoGql;
getVideoFeedForUser: VideoFeedGql;
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
};
export type QueryGetAggregateShotsArgs = {
@ -226,6 +235,10 @@ export type QueryGetVideoFeedForUserArgs = {
limit?: Scalars["Int"]["input"];
};
export type QueryGetVideoMakePercentageIntervalsArgs = {
videoId: Scalars["ID"]["input"];
};
export type RangeFilter = {
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
lessThan?: InputMaybe<Scalars["Float"]["input"]>;

View File

@ -0,0 +1,10 @@
query GetVideoMakePercentageIntervals($videoId: ID!) {
getVideoMakePercentageIntervals(videoId: $videoId) {
makePercentageIntervals {
startFrame
endFrame
framesPerSecond
makePercentage
}
}
}

View File

@ -6,6 +6,7 @@ type Query {
getShots(filterInput: FilterInput = null): [ShotGQL!]!
getBucketSet(keyName: String!): BucketSetGQL
getVideoFeedForUser(limit: Int! = 5, after: String = null): VideoFeedGQL!
getVideoMakePercentageIntervals(videoId: ID!): [MakePercentageIntervalGQL!]!
}
type AggregateResultGQL {
@ -221,6 +222,13 @@ type PageInfoGQL {
endCursor: String
}
type MakePercentageIntervalGQL {
startFrame: Float!
endFrame: Float!
framesPerSecond: Float!
makePercentage: Float!
}
type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
createUploadStream(