Add getPlayTime endpoint, remove elapsedTime
This commit is contained in:
parent
679150326f
commit
9307fbcbf4
@ -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
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@ -27,6 +27,5 @@ query getLoggedInUser {
|
||||
profileImageUri
|
||||
createdAt
|
||||
updatedAt
|
||||
elapsedTime
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ type Query {
|
||||
getUser(userId: Int!): UserGQL
|
||||
getLoggedInUser: UserGQL
|
||||
getDeployedConfig: DeployedConfigGQL!
|
||||
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
||||
getVideo(videoId: Int!): VideoGQL!
|
||||
getShots(filterInput: FilterInput = null): [ShotGQL!]!
|
||||
getBucketSet(keyName: String!): BucketSetGQL
|
||||
@ -127,7 +128,6 @@ type UserGQL {
|
||||
profileImageUri: String
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
elapsedTime: Float!
|
||||
}
|
||||
|
||||
"""
|
||||
@ -139,6 +139,10 @@ type DeployedConfigGQL {
|
||||
allowNewUsers: Boolean!
|
||||
}
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
|
||||
type VideoGQL {
|
||||
id: Int!
|
||||
owner: UserGQL
|
||||
|
Loading…
Reference in New Issue
Block a user