Compare commits
8 Commits
a94fdd820d
...
5e0d01ea5b
Author | SHA1 | Date | |
---|---|---|---|
5e0d01ea5b | |||
e8938621fc | |||
8c8dcdd8e1 | |||
5085c9af90 | |||
85bc743c8e | |||
b8efa644e3 | |||
c18628a4ca | |||
535e24c9c2 |
@ -102,6 +102,10 @@ export type CreateUploadStreamReturn = {
|
||||
videoId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type CreatedAfter =
|
||||
| { createdAt: Scalars["DateTime"]["input"]; videoId?: never }
|
||||
| { createdAt?: never; videoId: Scalars["Int"]["input"] };
|
||||
|
||||
export type CueObjectFeaturesGql = {
|
||||
__typename?: "CueObjectFeaturesGQL";
|
||||
cueBallSpeed?: Maybe<Scalars["Float"]["output"]>;
|
||||
@ -1029,6 +1033,11 @@ export type FilterInput =
|
||||
videoId: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type GetShotsPagination = {
|
||||
createdAfter: CreatedAfter;
|
||||
startFrameAfter: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type GetUploadLinkReturn = {
|
||||
__typename?: "GetUploadLinkReturn";
|
||||
headers: Array<Maybe<Header>>;
|
||||
@ -1185,6 +1194,7 @@ export type Query = {
|
||||
getVideo: VideoGql;
|
||||
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
||||
getVideos: Array<VideoGql>;
|
||||
waitFor: Scalars["Float"]["output"];
|
||||
};
|
||||
|
||||
export type QueryGetAggregatedShotMetricsArgs = {
|
||||
@ -1201,6 +1211,8 @@ export type QueryGetPlayTimeArgs = {
|
||||
|
||||
export type QueryGetShotsArgs = {
|
||||
filterInput: FilterInput;
|
||||
limit?: Scalars["Int"]["input"];
|
||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
||||
};
|
||||
|
||||
export type QueryGetUserArgs = {
|
||||
@ -1233,6 +1245,10 @@ export type QueryGetVideosArgs = {
|
||||
videoIds: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type QueryWaitForArgs = {
|
||||
duration: Scalars["Float"]["input"];
|
||||
};
|
||||
|
||||
export type RangeFilter = {
|
||||
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
includeOnNone?: Scalars["Boolean"]["input"];
|
||||
@ -1284,6 +1300,7 @@ export type ShotGql = {
|
||||
startFrame: Scalars["Int"]["output"];
|
||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
user?: Maybe<UserGql>;
|
||||
video?: Maybe<VideoGql>;
|
||||
videoId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
@ -1557,6 +1574,8 @@ export type GetVideoMakePercentageIntervalsQuery = {
|
||||
|
||||
export type GetShotsQueryVariables = Exact<{
|
||||
filterInput: FilterInput;
|
||||
shotsPagination: GetShotsPagination;
|
||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
includeCreatedAt?: Scalars["Boolean"]["input"];
|
||||
includeUpdatedAt?: Scalars["Boolean"]["input"];
|
||||
includeCueObjectFeatures?: Scalars["Boolean"]["input"];
|
||||
@ -1851,6 +1870,7 @@ export type GetVideoQuery = {
|
||||
} | null;
|
||||
homographyHistory: Array<{
|
||||
__typename?: "HomographyInfoGQL";
|
||||
frameIndex: number;
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
@ -2065,6 +2085,7 @@ export type GetUploadStreamsWithDetailsQuery = {
|
||||
isCompleted: boolean;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
uploadCompletionCursor: number;
|
||||
uploadsCompleted: number;
|
||||
} | null;
|
||||
}>;
|
||||
pageInfo: {
|
||||
@ -2415,6 +2436,8 @@ export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult<
|
||||
export const GetShotsDocument = gql`
|
||||
query GetShots(
|
||||
$filterInput: FilterInput!
|
||||
$shotsPagination: GetShotsPagination!
|
||||
$limit: Int
|
||||
$includeCreatedAt: Boolean! = false
|
||||
$includeUpdatedAt: Boolean! = false
|
||||
$includeCueObjectFeatures: Boolean! = false
|
||||
@ -2427,7 +2450,11 @@ export const GetShotsDocument = gql`
|
||||
$includeMake: Boolean! = false
|
||||
$includeIntendedPocketType: Boolean! = false
|
||||
) {
|
||||
getShots(filterInput: $filterInput) {
|
||||
getShots(
|
||||
filterInput: $filterInput
|
||||
shotsPagination: $shotsPagination
|
||||
limit: $limit
|
||||
) {
|
||||
id
|
||||
videoId
|
||||
startFrame
|
||||
@ -2467,6 +2494,8 @@ export const GetShotsDocument = gql`
|
||||
* const { data, loading, error } = useGetShotsQuery({
|
||||
* variables: {
|
||||
* filterInput: // value for 'filterInput'
|
||||
* shotsPagination: // value for 'shotsPagination'
|
||||
* limit: // value for 'limit'
|
||||
* includeCreatedAt: // value for 'includeCreatedAt'
|
||||
* includeUpdatedAt: // value for 'includeUpdatedAt'
|
||||
* includeCueObjectFeatures: // value for 'includeCueObjectFeatures'
|
||||
@ -3386,6 +3415,7 @@ export const GetVideoDocument = gql`
|
||||
segmentDurations
|
||||
}
|
||||
homographyHistory {
|
||||
frameIndex
|
||||
crop {
|
||||
left
|
||||
top
|
||||
@ -4180,6 +4210,7 @@ export const GetUploadStreamsWithDetailsDocument = gql`
|
||||
isCompleted
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
uploadsCompleted
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
|
@ -1,5 +1,7 @@
|
||||
query GetShots(
|
||||
$filterInput: FilterInput!
|
||||
$shotsPagination: GetShotsPagination!
|
||||
$limit: Int
|
||||
$includeCreatedAt: Boolean! = false
|
||||
$includeUpdatedAt: Boolean! = false
|
||||
$includeCueObjectFeatures: Boolean! = false
|
||||
@ -12,7 +14,11 @@ query GetShots(
|
||||
$includeMake: Boolean! = false
|
||||
$includeIntendedPocketType: Boolean! = false
|
||||
) {
|
||||
getShots(filterInput: $filterInput) {
|
||||
getShots(
|
||||
filterInput: $filterInput
|
||||
shotsPagination: $shotsPagination
|
||||
limit: $limit
|
||||
) {
|
||||
id
|
||||
videoId
|
||||
startFrame
|
||||
|
@ -139,6 +139,7 @@ query GetVideo($videoId: Int!) {
|
||||
segmentDurations
|
||||
}
|
||||
homographyHistory {
|
||||
frameIndex
|
||||
crop {
|
||||
left
|
||||
top
|
||||
|
@ -72,6 +72,7 @@ query GetUploadStreamsWithDetails(
|
||||
isCompleted
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
uploadsCompleted
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
|
@ -4,11 +4,16 @@ type Query {
|
||||
): [AggregateResultGQL!]!
|
||||
getBucketSet(keyName: String!): BucketSetGQL
|
||||
getDeployedConfig: DeployedConfigGQL!
|
||||
waitFor(duration: Float!): Float!
|
||||
getVideoMakePercentageIntervals(
|
||||
videoId: ID!
|
||||
intervalDuration: Int! = 300
|
||||
): [MakePercentageIntervalGQL!]!
|
||||
getShots(filterInput: FilterInput!): [ShotGQL!]!
|
||||
getShots(
|
||||
filterInput: FilterInput!
|
||||
shotsPagination: GetShotsPagination = null
|
||||
limit: Int! = 500
|
||||
): [ShotGQL!]!
|
||||
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
|
||||
getUser(userId: Int!): UserGQL
|
||||
getLoggedInUser: UserGQL
|
||||
@ -168,6 +173,7 @@ type ShotGQL {
|
||||
user: UserGQL
|
||||
annotations: [ShotAnnotationGQL!]!
|
||||
falsePositiveScore: Float
|
||||
video: VideoGQL
|
||||
}
|
||||
|
||||
"""
|
||||
@ -229,15 +235,6 @@ type ShotAnnotationTypeGQL {
|
||||
name: String!
|
||||
}
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
|
||||
type VideoHistoryGQL {
|
||||
videos: [VideoGQL!]!
|
||||
pageInfo: PageInfoGQL!
|
||||
}
|
||||
|
||||
type VideoGQL {
|
||||
id: Int!
|
||||
owner: UserGQL
|
||||
@ -364,6 +361,25 @@ type VideoProcessingErrorGQL {
|
||||
endSegmentIndex: Int
|
||||
}
|
||||
|
||||
input GetShotsPagination {
|
||||
createdAfter: CreatedAfter!
|
||||
startFrameAfter: Int!
|
||||
}
|
||||
|
||||
input CreatedAfter @oneOf {
|
||||
videoId: Int
|
||||
createdAt: DateTime
|
||||
}
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
|
||||
type VideoHistoryGQL {
|
||||
videos: [VideoGQL!]!
|
||||
pageInfo: PageInfoGQL!
|
||||
}
|
||||
|
||||
type PageInfoGQL {
|
||||
hasNextPage: Boolean!
|
||||
endCursor: String
|
||||
|
Loading…
Reference in New Issue
Block a user