Add annotations to shot gql

This commit is contained in:
Ivan Malison 2024-07-15 15:32:21 -06:00
parent d669dba320
commit dc214e878f
2 changed files with 21 additions and 0 deletions

View File

@ -1006,6 +1006,16 @@ export type SerializedShotPathsGql = {
b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>; b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>;
}; };
export type ShotAnnotationGql = {
__typename?: "ShotAnnotationGQL";
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
creator: UserGql;
notes: Scalars["String"]["output"];
shotId: Scalars["Int"]["output"];
type: ShotAnnotationTypeGql;
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
};
export type ShotAnnotationInput = { export type ShotAnnotationInput = {
name: Scalars["String"]["input"]; name: Scalars["String"]["input"];
}; };
@ -1024,6 +1034,7 @@ export enum ShotDirectionEnum {
export type ShotGql = { export type ShotGql = {
__typename?: "ShotGQL"; __typename?: "ShotGQL";
annotations: Array<ShotAnnotationGql>;
bankFeatures?: Maybe<BankFeaturesGql>; bankFeatures?: Maybe<BankFeaturesGql>;
createdAt?: Maybe<Scalars["DateTime"]["output"]>; createdAt?: Maybe<Scalars["DateTime"]["output"]>;
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>; cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;

View File

@ -160,6 +160,7 @@ type ShotGQL {
bankFeatures: BankFeaturesGQL bankFeatures: BankFeaturesGQL
serializedShotPaths: SerializedShotPathsGQL serializedShotPaths: SerializedShotPathsGQL
user: UserGQL user: UserGQL
annotations: [ShotAnnotationGQL!]!
} }
""" """
@ -207,6 +208,15 @@ type UserGQL {
updatedAt: DateTime updatedAt: DateTime
} }
type ShotAnnotationGQL {
shotId: Int!
type: ShotAnnotationTypeGQL!
creator: UserGQL!
notes: String!
createdAt: DateTime
updatedAt: DateTime
}
type ShotAnnotationTypeGQL { type ShotAnnotationTypeGQL {
id: Int! id: Int!
name: String! name: String!