diff --git a/src/client-schema.gql b/src/client-schema.gql index b270fc1..6290818 100644 --- a/src/client-schema.gql +++ b/src/client-schema.gql @@ -1,11 +1,16 @@ # see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/ directive @client on FIELD +type SegmentInfo { + index: Int! + time: Float! +} + extend type ShotGQL { startTime: Float! endTime: Float! - startSegment: Int! - endSegment: Int! + startSegment: SegmentInfo! + endSegment: SegmentInfo! } extend type UploadStreamGQL { diff --git a/src/index.tsx b/src/index.tsx index 8e3cf38..cfd8494 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2556,6 +2556,12 @@ export type SegmentEndFramesGql = { segmentEndFrames: Array; }; +export type SegmentInfo = { + __typename?: "SegmentInfo"; + index: Scalars["Int"]["output"]; + time: Scalars["Float"]["output"]; +}; + export type SegmentStartTimesGql = { __typename?: "SegmentStartTimesGQL"; id: Scalars["Int"]["output"]; @@ -2608,7 +2614,7 @@ export type ShotGql = { createdAt?: Maybe; cueObjectFeatures?: Maybe; endFrame: Scalars["Int"]["output"]; - endSegment: Scalars["Int"]["output"]; + endSegment: SegmentInfo; endTime: Scalars["Float"]["output"]; falsePositiveScore?: Maybe; id: Scalars["Int"]["output"]; @@ -2618,7 +2624,7 @@ export type ShotGql = { runFeatures?: Maybe; serializedShotPaths?: Maybe; startFrame: Scalars["Int"]["output"]; - startSegment: Scalars["Int"]["output"]; + startSegment: SegmentInfo; startTime: Scalars["Float"]["output"]; updatedAt?: Maybe; user?: Maybe; @@ -3538,11 +3544,11 @@ export type GetShotsWithMetadataFilterResultQuery = { endFrame: number; startTime: number; endTime: number; - startSegment: number; - endSegment: number; falsePositiveScore?: number | null; createdAt?: any | null; updatedAt?: any | null; + startSegment: { __typename?: "SegmentInfo"; index: number; time: number }; + endSegment: { __typename?: "SegmentInfo"; index: number; time: number }; user?: { __typename?: "UserGQL"; id: number } | null; cueObjectFeatures?: { __typename?: "CueObjectFeaturesGQL"; @@ -3607,11 +3613,11 @@ export type GetShotsWithMetadataQuery = { endFrame: number; startTime: number; endTime: number; - startSegment: number; - endSegment: number; falsePositiveScore?: number | null; createdAt?: any | null; updatedAt?: any | null; + startSegment: { __typename?: "SegmentInfo"; index: number; time: number }; + endSegment: { __typename?: "SegmentInfo"; index: number; time: number }; user?: { __typename?: "UserGQL"; id: number } | null; cueObjectFeatures?: { __typename?: "CueObjectFeaturesGQL"; @@ -3669,11 +3675,11 @@ export type GetShotsByIdsQuery = { endFrame: number; startTime: number; endTime: number; - startSegment: number; - endSegment: number; falsePositiveScore?: number | null; createdAt?: any | null; updatedAt?: any | null; + startSegment: { __typename?: "SegmentInfo"; index: number; time: number }; + endSegment: { __typename?: "SegmentInfo"; index: number; time: number }; user?: { __typename?: "UserGQL"; id: number } | null; cueObjectFeatures?: { __typename?: "CueObjectFeaturesGQL"; @@ -3720,11 +3726,11 @@ export type ShotWithAllFeaturesFragment = { endFrame: number; startTime: number; endTime: number; - startSegment: number; - endSegment: number; falsePositiveScore?: number | null; createdAt?: any | null; updatedAt?: any | null; + startSegment: { __typename?: "SegmentInfo"; index: number; time: number }; + endSegment: { __typename?: "SegmentInfo"; index: number; time: number }; user?: { __typename?: "UserGQL"; id: number } | null; cueObjectFeatures?: { __typename?: "CueObjectFeaturesGQL"; @@ -3784,11 +3790,11 @@ export type EditShotMutation = { endFrame: number; startTime: number; endTime: number; - startSegment: number; - endSegment: number; falsePositiveScore?: number | null; createdAt?: any | null; updatedAt?: any | null; + startSegment: { __typename?: "SegmentInfo"; index: number; time: number }; + endSegment: { __typename?: "SegmentInfo"; index: number; time: number }; user?: { __typename?: "UserGQL"; id: number } | null; cueObjectFeatures?: { __typename?: "CueObjectFeaturesGQL"; @@ -4864,8 +4870,14 @@ export const ShotWithAllFeaturesFragmentDoc = gql` endFrame startTime @client endTime @client - startSegment @client - endSegment @client + startSegment @client { + index + time + } + endSegment @client { + index + time + } user { id } diff --git a/src/operations/shots.gql b/src/operations/shots.gql index 9093b44..8b8ef88 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -139,8 +139,14 @@ fragment ShotWithAllFeatures on ShotGQL { endFrame startTime @client endTime @client - startSegment @client - endSegment @client + startSegment @client { + index + time + } + endSegment @client { + index + time + } user { id }