diff --git a/src/index.tsx b/src/index.tsx index a007ee3..eb5984e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1006,6 +1006,16 @@ export type SerializedShotPathsGql = { b64EncodedBuffer?: Maybe; }; +export type ShotAnnotationGql = { + __typename?: "ShotAnnotationGQL"; + createdAt?: Maybe; + creator: UserGql; + notes: Scalars["String"]["output"]; + shotId: Scalars["Int"]["output"]; + type: ShotAnnotationTypeGql; + updatedAt?: Maybe; +}; + export type ShotAnnotationInput = { name: Scalars["String"]["input"]; }; @@ -1024,6 +1034,7 @@ export enum ShotDirectionEnum { export type ShotGql = { __typename?: "ShotGQL"; + annotations: Array; bankFeatures?: Maybe; createdAt?: Maybe; cueObjectFeatures?: Maybe; diff --git a/src/schema.gql b/src/schema.gql index 59c83c3..d10d003 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -160,6 +160,7 @@ type ShotGQL { bankFeatures: BankFeaturesGQL serializedShotPaths: SerializedShotPathsGQL user: UserGQL + annotations: [ShotAnnotationGQL!]! } """ @@ -207,6 +208,15 @@ type UserGQL { updatedAt: DateTime } +type ShotAnnotationGQL { + shotId: Int! + type: ShotAnnotationTypeGQL! + creator: UserGQL! + notes: String! + createdAt: DateTime + updatedAt: DateTime +} + type ShotAnnotationTypeGQL { id: Int! name: String!