Adds edit, hide, and abandon action types from new lbry sdk api

This commit is contained in:
Oleg Silkin 2020-01-09 17:09:37 -05:00
parent 7c55a9e0f5
commit 78ec8c3c16

12
flow-typed/Lbry.js vendored
View file

@ -125,6 +125,8 @@ declare type ChannelUpdateResponse = GenericTxResponse & {
}; };
declare type CommentCreateResponse = Comment; declare type CommentCreateResponse = Comment;
declare type CommentEditResponse = Comment;
declare type CommentListResponse = { declare type CommentListResponse = {
items: Array<Comment>, items: Array<Comment>,
page: number, page: number,
@ -133,6 +135,16 @@ declare type CommentListResponse = {
total_pages: number, total_pages: number,
}; };
declare type CommentHideResponse = {
// keyed by the CommentIds entered
[string]: { hidden: boolean },
};
declare type CommentAbandonResponse = {
// keyed by the CommentId given
[string]: { abandoned: boolean },
};
declare type ChannelListResponse = { declare type ChannelListResponse = {
items: Array<ChannelClaim>, items: Array<ChannelClaim>,
page: number, page: number,