Add time to segment information
This commit is contained in:
parent
0bcfd32b14
commit
9d912ed21e
@ -1,11 +1,16 @@
|
|||||||
# see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/
|
# see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/
|
||||||
directive @client on FIELD
|
directive @client on FIELD
|
||||||
|
|
||||||
|
type SegmentInfo {
|
||||||
|
index: Int!
|
||||||
|
time: Float!
|
||||||
|
}
|
||||||
|
|
||||||
extend type ShotGQL {
|
extend type ShotGQL {
|
||||||
startTime: Float!
|
startTime: Float!
|
||||||
endTime: Float!
|
endTime: Float!
|
||||||
startSegment: Int!
|
startSegment: SegmentInfo!
|
||||||
endSegment: Int!
|
endSegment: SegmentInfo!
|
||||||
}
|
}
|
||||||
|
|
||||||
extend type UploadStreamGQL {
|
extend type UploadStreamGQL {
|
||||||
|
@ -2556,6 +2556,12 @@ export type SegmentEndFramesGql = {
|
|||||||
segmentEndFrames: Array<Scalars["Int"]["output"]>;
|
segmentEndFrames: Array<Scalars["Int"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type SegmentInfo = {
|
||||||
|
__typename?: "SegmentInfo";
|
||||||
|
index: Scalars["Int"]["output"];
|
||||||
|
time: Scalars["Float"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
export type SegmentStartTimesGql = {
|
export type SegmentStartTimesGql = {
|
||||||
__typename?: "SegmentStartTimesGQL";
|
__typename?: "SegmentStartTimesGQL";
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
@ -2608,7 +2614,7 @@ export type ShotGql = {
|
|||||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;
|
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;
|
||||||
endFrame: Scalars["Int"]["output"];
|
endFrame: Scalars["Int"]["output"];
|
||||||
endSegment: Scalars["Int"]["output"];
|
endSegment: SegmentInfo;
|
||||||
endTime: Scalars["Float"]["output"];
|
endTime: Scalars["Float"]["output"];
|
||||||
falsePositiveScore?: Maybe<Scalars["Float"]["output"]>;
|
falsePositiveScore?: Maybe<Scalars["Float"]["output"]>;
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
@ -2618,7 +2624,7 @@ export type ShotGql = {
|
|||||||
runFeatures?: Maybe<RunFeaturesGql>;
|
runFeatures?: Maybe<RunFeaturesGql>;
|
||||||
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
|
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
|
||||||
startFrame: Scalars["Int"]["output"];
|
startFrame: Scalars["Int"]["output"];
|
||||||
startSegment: Scalars["Int"]["output"];
|
startSegment: SegmentInfo;
|
||||||
startTime: Scalars["Float"]["output"];
|
startTime: Scalars["Float"]["output"];
|
||||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
user?: Maybe<UserGql>;
|
user?: Maybe<UserGql>;
|
||||||
@ -3538,11 +3544,11 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|||||||
endFrame: number;
|
endFrame: number;
|
||||||
startTime: number;
|
startTime: number;
|
||||||
endTime: number;
|
endTime: number;
|
||||||
startSegment: number;
|
|
||||||
endSegment: number;
|
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: 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;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@ -3607,11 +3613,11 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
endFrame: number;
|
endFrame: number;
|
||||||
startTime: number;
|
startTime: number;
|
||||||
endTime: number;
|
endTime: number;
|
||||||
startSegment: number;
|
|
||||||
endSegment: number;
|
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: 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;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@ -3669,11 +3675,11 @@ export type GetShotsByIdsQuery = {
|
|||||||
endFrame: number;
|
endFrame: number;
|
||||||
startTime: number;
|
startTime: number;
|
||||||
endTime: number;
|
endTime: number;
|
||||||
startSegment: number;
|
|
||||||
endSegment: number;
|
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: 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;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@ -3720,11 +3726,11 @@ export type ShotWithAllFeaturesFragment = {
|
|||||||
endFrame: number;
|
endFrame: number;
|
||||||
startTime: number;
|
startTime: number;
|
||||||
endTime: number;
|
endTime: number;
|
||||||
startSegment: number;
|
|
||||||
endSegment: number;
|
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: 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;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@ -3784,11 +3790,11 @@ export type EditShotMutation = {
|
|||||||
endFrame: number;
|
endFrame: number;
|
||||||
startTime: number;
|
startTime: number;
|
||||||
endTime: number;
|
endTime: number;
|
||||||
startSegment: number;
|
|
||||||
endSegment: number;
|
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: 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;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
cueObjectFeatures?: {
|
cueObjectFeatures?: {
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
@ -4864,8 +4870,14 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
endFrame
|
endFrame
|
||||||
startTime @client
|
startTime @client
|
||||||
endTime @client
|
endTime @client
|
||||||
startSegment @client
|
startSegment @client {
|
||||||
endSegment @client
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
|
endSegment @client {
|
||||||
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
@ -139,8 +139,14 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
endFrame
|
endFrame
|
||||||
startTime @client
|
startTime @client
|
||||||
endTime @client
|
endTime @client
|
||||||
startSegment @client
|
startSegment @client {
|
||||||
endSegment @client
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
|
endSegment @client {
|
||||||
|
index
|
||||||
|
time
|
||||||
|
}
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user