1
1
mirror of https://github.com/urbit/shrub.git synced 2024-12-26 13:31:36 +03:00
shrub/pkg/arvo/sur/hark-store.hoon

53 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-11-05 05:50:56 +03:00
/- *resource, graph-store, post, group-store, metadata-store, chat-store
2020-10-21 08:54:59 +03:00
^?
|%
+$ index
$% [%graph group=resource graph=resource module=@t description=@t]
[%group group=resource description=@t]
[%chat chat=path mention=?]
2020-10-21 08:54:59 +03:00
==
::
+$ group-contents
$~ [%add-members *resource ~]
$% $>(?(%add-members %remove-members) update:group-store)
metadata-action:metadata-store
==
::
+$ notification
[date=@da read=? =contents]
::
+$ contents
2020-10-27 08:04:39 +03:00
$% [%graph =(list post:post)]
2020-10-21 08:54:59 +03:00
[%group =(list group-contents)]
2020-11-05 05:50:56 +03:00
[%chat =(list envelope:chat-store)]
2020-10-21 08:54:59 +03:00
==
::
+$ timebox
(map index notification)
::
+$ notifications
2020-10-27 08:04:39 +03:00
((mop @da timebox) lth)
2020-10-21 08:54:59 +03:00
::
+$ action
$% [%add =index =notification]
[%archive time=@da index]
[%read time=@da index]
2020-11-16 05:22:42 +03:00
[%read-index index]
2020-10-21 08:54:59 +03:00
[%unread time=@da index]
2020-10-27 08:04:39 +03:00
[%set-dnd dnd=?]
2020-10-21 08:54:59 +03:00
[%seen ~]
==
2020-10-27 08:04:39 +03:00
::
++ indexed-notification
[index notification]
2020-10-21 08:54:59 +03:00
::
+$ update
$% action
2020-11-16 05:22:42 +03:00
[%more more=(list update)]
2020-10-28 08:52:59 +03:00
[%added time=@da =index =notification]
2020-10-27 08:04:39 +03:00
[%timebox time=@da archived=? =(list [index notification])]
[%count count=@ud]
2020-11-16 05:22:42 +03:00
[%unreads unreads=(list [index @ud])]
2020-10-21 08:54:59 +03:00
==
--