add add-note hark-store poke
@@ -4,6 +4,7 @@ import { Poke } from '../lib/types';
import {
HarkBin,
HarkBinId,
+ HarkBody,
HarkLid,
HarkPlace
} from './types';
@@ -58,6 +59,14 @@ export const setDoNotDisturb = (dnd: boolean): Poke<unknown> =>
'set-dnd': dnd
});
+export const addNote = (bin: HarkBin, body: HarkBody) =>
+ harkAction({
+ 'add-note': {
+ bin,
+ body
+ }
+ });
+
export const archive = (bin: HarkBin, lid: HarkLid): Poke<unknown> =>
harkAction({
archive: {
