diff --git a/src/index.tsx b/src/index.tsx index 3ae0f79..83aaed6 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -56,10 +56,10 @@ export type BankFeaturesGql = { export type BoundingBoxGql = { __typename?: "BoundingBoxGQL"; - height: Scalars["Int"]["output"]; - left: Scalars["Int"]["output"]; - top: Scalars["Int"]["output"]; - width: Scalars["Int"]["output"]; + height: Scalars["Float"]["output"]; + left: Scalars["Float"]["output"]; + top: Scalars["Float"]["output"]; + width: Scalars["Float"]["output"]; }; export type BucketGql = { @@ -162,6 +162,7 @@ export type HomographyInfoGql = { __typename?: "HomographyInfoGQL"; crop: BoundingBoxGql; destPoints: PocketPointsGql; + frameIndex: Scalars["Int"]["output"]; pockets: Array; sourcePoints: PocketPointsGql; }; @@ -368,7 +369,6 @@ export type UploadStreamGql = { __typename?: "UploadStreamGQL"; createdAt: Scalars["DateTime"]["output"]; errors: Array; - homographyHistory: Array; id: Scalars["ID"]["output"]; isCompleted: Scalars["Boolean"]["output"]; linksRequested: Scalars["Int"]["output"]; @@ -420,6 +420,7 @@ export type VideoGql = { elapsedTime?: Maybe; endTime?: Maybe; framesPerSecond: Scalars["Int"]["output"]; + homographyHistory: Array; id: Scalars["Int"]["output"]; makePercentage: Scalars["Float"]["output"]; medianRun?: Maybe; @@ -659,37 +660,37 @@ export type GetStreamMonitoringDetailsQuery = { totalShots: number; makePercentage: number; elapsedTime?: number | null; + homographyHistory: Array<{ + __typename?: "HomographyInfoGQL"; + crop: { + __typename?: "BoundingBoxGQL"; + left: number; + top: number; + width: number; + height: number; + }; + pockets: Array<{ + __typename?: "BoundingBoxGQL"; + left: number; + top: number; + width: number; + height: number; + }>; + sourcePoints: { + __typename?: "PocketPointsGQL"; + topLeft: { __typename?: "IntPoint2D"; x: number; y: number }; + topSide: { __typename?: "IntPoint2D"; x: number; y: number }; + topRight: { __typename?: "IntPoint2D"; x: number; y: number }; + bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number }; + bottomSide: { __typename?: "IntPoint2D"; x: number; y: number }; + bottomRight: { __typename?: "IntPoint2D"; x: number; y: number }; + }; + }>; stream?: { __typename?: "UploadStreamGQL"; linksRequested: number; uploadsCompleted: number; segmentProcessingCursor: number; - homographyHistory: Array<{ - __typename?: "HomographyInfoGQL"; - crop: { - __typename?: "BoundingBoxGQL"; - left: number; - top: number; - width: number; - height: number; - }; - pockets: Array<{ - __typename?: "BoundingBoxGQL"; - left: number; - top: number; - width: number; - height: number; - }>; - sourcePoints: { - __typename?: "PocketPointsGQL"; - topLeft: { __typename?: "IntPoint2D"; x: number; y: number }; - topSide: { __typename?: "IntPoint2D"; x: number; y: number }; - topRight: { __typename?: "IntPoint2D"; x: number; y: number }; - bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number }; - bottomSide: { __typename?: "IntPoint2D"; x: number; y: number }; - bottomRight: { __typename?: "IntPoint2D"; x: number; y: number }; - }; - }>; } | null; }; }; @@ -1399,47 +1400,47 @@ export const GetStreamMonitoringDetailsDocument = gql` totalShots makePercentage elapsedTime - stream { - homographyHistory { - crop { - left - top - width - height + homographyHistory { + crop { + left + top + width + height + } + pockets { + left + top + width + height + } + sourcePoints { + topLeft { + x + y } - pockets { - left - top - width - height + topSide { + x + y } - sourcePoints { - topLeft { - x - y - } - topSide { - x - y - } - topRight { - x - y - } - bottomLeft { - x - y - } - bottomSide { - x - y - } - bottomRight { - x - y - } + topRight { + x + y + } + bottomLeft { + x + y + } + bottomSide { + x + y + } + bottomRight { + x + y } } + } + stream { linksRequested uploadsCompleted segmentProcessingCursor diff --git a/src/operations/video.gql b/src/operations/video.gql index 948733a..907a2dd 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -4,47 +4,47 @@ query GetStreamMonitoringDetails($videoId: Int!) { totalShots makePercentage elapsedTime - stream { - homographyHistory { - crop { - left - top - width - height + homographyHistory { + crop { + left + top + width + height + } + pockets { + left + top + width + height + } + sourcePoints { + topLeft { + x + y } - pockets { - left - top - width - height + topSide { + x + y } - sourcePoints { - topLeft { - x - y - } - topSide { - x - y - } - topRight { - x - y - } - bottomLeft { - x - y - } - bottomSide { - x - y - } - bottomRight { - x - y - } + topRight { + x + y + } + bottomLeft { + x + y + } + bottomSide { + x + y + } + bottomRight { + x + y } } + } + stream { linksRequested uploadsCompleted segmentProcessingCursor diff --git a/src/schema.gql b/src/schema.gql index 9b0e18e..6d2a3f0 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -156,6 +156,7 @@ type VideoGQL { framesPerSecond: Int! stream: UploadStreamGQL tags: [VideoTag!]! + homographyHistory: [HomographyInfoGQL!]! } type ShotGQL { @@ -221,13 +222,26 @@ type UploadStreamGQL { uploadsCompleted: Int! segmentProcessingCursor: Int! isCompleted: Boolean! - homographyHistory: [HomographyInfoGQL!]! errors: [StreamErrorGQL!]! createdAt: DateTime! updatedAt: DateTime! } +type StreamErrorGQL { + message: String! +} + +type VideoTag { + tagClasses: [VideoTagClass!]! + name: String! +} + +type VideoTagClass { + name: String! +} + type HomographyInfoGQL { + frameIndex: Int! crop: BoundingBoxGQL! pockets: [BoundingBoxGQL!]! sourcePoints: PocketPointsGQL! @@ -235,10 +249,10 @@ type HomographyInfoGQL { } type BoundingBoxGQL { - left: Int! - top: Int! - width: Int! - height: Int! + left: Float! + top: Float! + width: Float! + height: Float! } type PocketPointsGQL { @@ -255,19 +269,6 @@ type IntPoint2D { y: Int! } -type StreamErrorGQL { - message: String! -} - -type VideoTag { - tagClasses: [VideoTagClass!]! - name: String! -} - -type VideoTagClass { - name: String! -} - type BucketSetGQL { keyName: String! feature: String!