Merge pull request 'Add get shot annotations query' (#14) from ivan/add-get-shot-annotations-query into master

Reviewed-on: #14
This commit is contained in:
Ivan Malison 2024-07-08 14:49:05 -06:00
commit 524d469a0d
2 changed files with 13 additions and 0 deletions

View File

@ -652,6 +652,7 @@ export type Query = {
getDeployedConfig: DeployedConfigGql; getDeployedConfig: DeployedConfigGql;
getLoggedInUser?: Maybe<UserGql>; getLoggedInUser?: Maybe<UserGql>;
getPlayTime: UserPlayTimeGql; getPlayTime: UserPlayTimeGql;
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
getShots: Array<ShotGql>; getShots: Array<ShotGql>;
getUser?: Maybe<UserGql>; getUser?: Maybe<UserGql>;
getUserVideos: VideoHistoryGql; getUserVideos: VideoHistoryGql;
@ -714,6 +715,12 @@ export type ShotAnnotationInput = {
name: Scalars["String"]["input"]; name: Scalars["String"]["input"];
}; };
export type ShotAnnotationTypeGql = {
__typename?: "ShotAnnotationTypeGQL";
id: Scalars["Int"]["output"];
name: Scalars["String"]["output"];
};
export enum ShotDirectionEnum { export enum ShotDirectionEnum {
Left = "LEFT", Left = "LEFT",
Right = "RIGHT", Right = "RIGHT",

View File

@ -9,6 +9,7 @@ type Query {
intervalDuration: Int! = 300 intervalDuration: Int! = 300
): [MakePercentageIntervalGQL!]! ): [MakePercentageIntervalGQL!]!
getShots(filterInput: FilterInput!): [ShotGQL!]! getShots(filterInput: FilterInput!): [ShotGQL!]!
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
getUser(userId: Int!): UserGQL getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL getLoggedInUser: UserGQL
getPlayTime(userId: Int!): UserPlayTimeGQL! getPlayTime(userId: Int!): UserPlayTimeGQL!
@ -194,6 +195,11 @@ type UserGQL {
updatedAt: DateTime updatedAt: DateTime
} }
type ShotAnnotationTypeGQL {
id: Int!
name: String!
}
type UserPlayTimeGQL { type UserPlayTimeGQL {
totalSeconds: Float! totalSeconds: Float!
} }