From 78ec8c3c16cd350068151233c3780d980bba54a7 Mon Sep 17 00:00:00 2001 From: Oleg Silkin Date: Thu, 9 Jan 2020 17:09:37 -0500 Subject: [PATCH] Adds edit, hide, and abandon action types from new lbry sdk api --- flow-typed/Lbry.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flow-typed/Lbry.js b/flow-typed/Lbry.js index cc8a4ac..92ce9dd 100644 --- a/flow-typed/Lbry.js +++ b/flow-typed/Lbry.js @@ -125,6 +125,8 @@ declare type ChannelUpdateResponse = GenericTxResponse & { }; declare type CommentCreateResponse = Comment; +declare type CommentEditResponse = Comment; + declare type CommentListResponse = { items: Array, page: number, @@ -133,6 +135,16 @@ declare type CommentListResponse = { 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 = { items: Array, page: number,