Add client side start and end time
This commit is contained in:
parent
e431a1751f
commit
d619751144
@ -1,5 +1,7 @@
|
||||
overwrite: true
|
||||
schema: "src/schema.gql"
|
||||
schema:
|
||||
- "src/schema.gql"
|
||||
- "src/client-schema.gql"
|
||||
documents: "src/**/*.gql"
|
||||
generates:
|
||||
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"]>;
|
||||
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;
|
||||
endFrame: Scalars["Int"]["output"];
|
||||
endTime: Scalars["Float"]["output"];
|
||||
falsePositiveScore?: Maybe<Scalars["Float"]["output"]>;
|
||||
id: Scalars["Int"]["output"];
|
||||
pocketingIntentionFeatures?: Maybe<PocketingIntentionFeaturesGql>;
|
||||
pocketingIntentionInfo?: Maybe<PocketingIntentionInfoGql>;
|
||||
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
|
||||
startFrame: Scalars["Int"]["output"];
|
||||
startTime: Scalars["Float"]["output"];
|
||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
user?: Maybe<UserGql>;
|
||||
video?: Maybe<VideoGql>;
|
||||
@ -2473,6 +2475,8 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
||||
videoId: number;
|
||||
startFrame: number;
|
||||
endFrame: number;
|
||||
startTime: number;
|
||||
endTime: number;
|
||||
falsePositiveScore?: number | null;
|
||||
createdAt?: any | null;
|
||||
updatedAt?: any | null;
|
||||
@ -2539,6 +2543,8 @@ export type GetShotsWithMetadataQuery = {
|
||||
videoId: number;
|
||||
startFrame: number;
|
||||
endFrame: number;
|
||||
startTime: number;
|
||||
endTime: number;
|
||||
falsePositiveScore?: number | null;
|
||||
createdAt?: any | null;
|
||||
updatedAt?: any | null;
|
||||
@ -2598,6 +2604,8 @@ export type GetShotsByIdsQuery = {
|
||||
videoId: number;
|
||||
startFrame: number;
|
||||
endFrame: number;
|
||||
startTime: number;
|
||||
endTime: number;
|
||||
falsePositiveScore?: number | null;
|
||||
createdAt?: any | null;
|
||||
updatedAt?: any | null;
|
||||
@ -2650,6 +2658,8 @@ export type ShotWithAllFeaturesFragment = {
|
||||
videoId: number;
|
||||
startFrame: number;
|
||||
endFrame: number;
|
||||
startTime: number;
|
||||
endTime: number;
|
||||
falsePositiveScore?: number | null;
|
||||
createdAt?: any | null;
|
||||
updatedAt?: any | null;
|
||||
@ -3311,6 +3321,8 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
||||
videoId
|
||||
startFrame
|
||||
endFrame
|
||||
startTime @client
|
||||
endTime @client
|
||||
user {
|
||||
id
|
||||
}
|
||||
|
@ -84,6 +84,8 @@ fragment ShotWithAllFeatures on ShotGQL {
|
||||
videoId
|
||||
startFrame
|
||||
endFrame
|
||||
startTime @client
|
||||
endTime @client
|
||||
user {
|
||||
id
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user