Add getPlayTime endpoint, remove elapsedTime

This commit is contained in:
2024-03-27 00:32:20 -06:00
parent 679150326f
commit 9307fbcbf4
3 changed files with 15 additions and 5 deletions

View File

@@ -266,6 +266,7 @@ export type Query = {
getBucketSet?: Maybe<BucketSetGql>;
getDeployedConfig: DeployedConfigGql;
getLoggedInUser?: Maybe<UserGql>;
getPlayTime: UserPlayTimeGql;
getShots: Array<ShotGql>;
getUser?: Maybe<UserGql>;
getVideo: VideoGql;
@@ -281,6 +282,10 @@ export type QueryGetBucketSetArgs = {
keyName: Scalars["String"]["input"];
};
export type QueryGetPlayTimeArgs = {
userId: Scalars["Int"]["input"];
};
export type QueryGetShotsArgs = {
filterInput?: InputMaybe<FilterInput>;
};
@@ -392,7 +397,6 @@ export type UploadStreamMetadataInput = {
export type UserGql = {
__typename?: "UserGQL";
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
elapsedTime: Scalars["Float"]["output"];
firebaseUid: Scalars["String"]["output"];
id: Scalars["Int"]["output"];
profileImageUri?: Maybe<Scalars["String"]["output"]>;
@@ -400,6 +404,11 @@ export type UserGql = {
username: Scalars["String"]["output"];
};
export type UserPlayTimeGql = {
__typename?: "UserPlayTimeGQL";
totalSeconds: Scalars["Float"]["output"];
};
export type ValueFilterBool = {
equals?: InputMaybe<Scalars["Boolean"]["input"]>;
};
@@ -652,7 +661,6 @@ export type GetLoggedInUserQuery = {
profileImageUri?: string | null;
createdAt?: any | null;
updatedAt?: any | null;
elapsedTime: number;
} | null;
};
@@ -1339,7 +1347,6 @@ export const GetLoggedInUserDocument = gql`
profileImageUri
createdAt
updatedAt
elapsedTime
}
}
`;