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; 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 = { export type Mutation = {
__typename?: "Mutation"; __typename?: "Mutation";
createBucketSet: BucketSetGql; createBucketSet: BucketSetGql;
@ -199,6 +207,7 @@ export type Query = {
getUser?: Maybe<UserGql>; getUser?: Maybe<UserGql>;
getVideo: VideoGql; getVideo: VideoGql;
getVideoFeedForUser: VideoFeedGql; getVideoFeedForUser: VideoFeedGql;
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
}; };
export type QueryGetAggregateShotsArgs = { export type QueryGetAggregateShotsArgs = {
@ -226,6 +235,10 @@ export type QueryGetVideoFeedForUserArgs = {
limit?: Scalars["Int"]["input"]; limit?: Scalars["Int"]["input"];
}; };
export type QueryGetVideoMakePercentageIntervalsArgs = {
videoId: Scalars["ID"]["input"];
};
export type RangeFilter = { export type RangeFilter = {
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>; greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
lessThan?: 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!]! 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!]!
} }
type AggregateResultGQL { type AggregateResultGQL {
@ -221,6 +222,13 @@ type PageInfoGQL {
endCursor: String endCursor: String
} }
type MakePercentageIntervalGQL {
startFrame: Float!
endFrame: Float!
framesPerSecond: Float!
makePercentage: Float!
}
type Mutation { type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
createUploadStream( createUploadStream(