Add filters for getPlayTime #126
@ -2227,6 +2227,7 @@ export type QueryGetOrderedShotsArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetPlayTimeArgs = {
|
export type QueryGetPlayTimeArgs = {
|
||||||
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2607,6 +2608,7 @@ export type UserRelationshipsResult = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type VideoFilterInput = {
|
export type VideoFilterInput = {
|
||||||
|
createdAt?: InputMaybe<DateRangeFilter>;
|
||||||
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
||||||
};
|
};
|
||||||
|
@ -46,7 +46,7 @@ type Query {
|
|||||||
limit: Int = 100
|
limit: Int = 100
|
||||||
after: String = null
|
after: String = null
|
||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getPlayTime(userId: Int!): UserPlayTimeGQL!
|
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
limit: Int! = 5
|
limit: Int! = 5
|
||||||
@ -624,6 +624,12 @@ type UserPlayTimeGQL {
|
|||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input VideoFilterInput {
|
||||||
|
isStreamCompleted: Boolean = null
|
||||||
|
requireCursorCompletion: Boolean! = true
|
||||||
|
createdAt: DateRangeFilter
|
||||||
|
}
|
||||||
|
|
||||||
type VideoHistoryGQL {
|
type VideoHistoryGQL {
|
||||||
videos: [VideoGQL!]!
|
videos: [VideoGQL!]!
|
||||||
pageInfo: PageInfoGQL!
|
pageInfo: PageInfoGQL!
|
||||||
@ -634,11 +640,6 @@ type PageInfoGQL {
|
|||||||
endCursor: String
|
endCursor: String
|
||||||
}
|
}
|
||||||
|
|
||||||
input VideoFilterInput {
|
|
||||||
isStreamCompleted: Boolean = null
|
|
||||||
requireCursorCompletion: Boolean! = true
|
|
||||||
}
|
|
||||||
|
|
||||||
type TagGQL {
|
type TagGQL {
|
||||||
name: String!
|
name: String!
|
||||||
id: Int!
|
id: Int!
|
||||||
|
Loading…
Reference in New Issue
Block a user