Add client side start and end time
This commit is contained in:
parent
e431a1751f
commit
d619751144
@ -1,5 +1,7 @@
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
schema: "src/schema.gql"
|
schema:
|
||||||
|
- "src/schema.gql"
|
||||||
|
- "src/client-schema.gql"
|
||||||
documents: "src/**/*.gql"
|
documents: "src/**/*.gql"
|
||||||
generates:
|
generates:
|
||||||
src/index.tsx:
|
src/index.tsx:
|
||||||
|
7
src/client-schema.gql
Normal file
7
src/client-schema.gql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# see: https://www.apollographql.com/docs/react/local-state/managing-state-with-field-policies/
|
||||||
|
directive @client on FIELD
|
||||||
|
|
||||||
|
extend type ShotGQL {
|
||||||
|
startTime: Float!
|
||||||
|
endTime: Float!
|
||||||
|
}
|
@ -2021,12 +2021,14 @@ 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"];
|
||||||
|
endTime: Scalars["Float"]["output"];
|
||||||
falsePositiveScore?: Maybe<Scalars["Float"]["output"]>;
|
falsePositiveScore?: Maybe<Scalars["Float"]["output"]>;
|
||||||
id: Scalars["Int"]["output"];
|
id: Scalars["Int"]["output"];
|
||||||
pocketingIntentionFeatures?: Maybe<PocketingIntentionFeaturesGql>;
|
pocketingIntentionFeatures?: Maybe<PocketingIntentionFeaturesGql>;
|
||||||
pocketingIntentionInfo?: Maybe<PocketingIntentionInfoGql>;
|
pocketingIntentionInfo?: Maybe<PocketingIntentionInfoGql>;
|
||||||
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
|
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
|
||||||
startFrame: Scalars["Int"]["output"];
|
startFrame: Scalars["Int"]["output"];
|
||||||
|
startTime: Scalars["Float"]["output"];
|
||||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
user?: Maybe<UserGql>;
|
user?: Maybe<UserGql>;
|
||||||
video?: Maybe<VideoGql>;
|
video?: Maybe<VideoGql>;
|
||||||
@ -2473,6 +2475,8 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|||||||
videoId: number;
|
videoId: number;
|
||||||
startFrame: number;
|
startFrame: number;
|
||||||
endFrame: number;
|
endFrame: number;
|
||||||
|
startTime: number;
|
||||||
|
endTime: number;
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
@ -2539,6 +2543,8 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
videoId: number;
|
videoId: number;
|
||||||
startFrame: number;
|
startFrame: number;
|
||||||
endFrame: number;
|
endFrame: number;
|
||||||
|
startTime: number;
|
||||||
|
endTime: number;
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
@ -2598,6 +2604,8 @@ export type GetShotsByIdsQuery = {
|
|||||||
videoId: number;
|
videoId: number;
|
||||||
startFrame: number;
|
startFrame: number;
|
||||||
endFrame: number;
|
endFrame: number;
|
||||||
|
startTime: number;
|
||||||
|
endTime: number;
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
@ -2650,6 +2658,8 @@ export type ShotWithAllFeaturesFragment = {
|
|||||||
videoId: number;
|
videoId: number;
|
||||||
startFrame: number;
|
startFrame: number;
|
||||||
endFrame: number;
|
endFrame: number;
|
||||||
|
startTime: number;
|
||||||
|
endTime: number;
|
||||||
falsePositiveScore?: number | null;
|
falsePositiveScore?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
@ -3311,6 +3321,8 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
videoId
|
videoId
|
||||||
startFrame
|
startFrame
|
||||||
endFrame
|
endFrame
|
||||||
|
startTime @client
|
||||||
|
endTime @client
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
@ -84,6 +84,8 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
videoId
|
videoId
|
||||||
startFrame
|
startFrame
|
||||||
endFrame
|
endFrame
|
||||||
|
startTime @client
|
||||||
|
endTime @client
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user