shrub/pkg/arvo/sur/contact-store.hoon
2020-01-23 13:12:26 -08:00

43 lines
777 B
Plaintext

/- *identity
|%
+$ rolodex (map path contacts)
::
+$ contacts (map ship contact)
::
+$ avatar [content-type=@t octs=[p=@ud q=@t]]
::
+$ contact
$: nickname=@t
email=@t
phone=@t
website=@t
notes=@t
color=@ux
avatar=(unit avatar)
==
::
+$ edit-field
$% [%nickname nickname=@t]
[%email email=@t]
[%phone phone=@t]
[%website website=@t]
[%notes notes=@t]
[%color color=@ux]
[%avatar avatar=(unit avatar)]
==
::
+$ contact-action
$% [%create =path]
[%delete =path]
[%add =path =ship =contact]
[%remove =path =ship]
[%edit =path =ship =edit-field]
==
::
+$ contact-update
$% [%rolodex =rolodex]
[%contacts =path =contacts]
contact-action
==
--