update settings pokes, scries
-import { Poke } from "../lib";
+import { Poke, Scry } from "../lib";
import { PutBucket, Key, Bucket, DelBucket, Value, PutEntry, DelEntry, SettingsUpdate } from './types';
export const action = <T extends SettingsUpdate>(data: T): Poke<T> => ({
@@ -47,4 +47,20 @@ export const delEntry = (
}
});
+export const getAll: Scry = {
+ app: 'settings-store',
+ path: '/all'
+}
+
+export const getBucket = (bucket: string) => ({
+ app: 'settings-store',
+ path: `/bucket/${bucket}`
+});
+
+export const getEntry = (bucket: string, entry: string) => ({
+ app: 'settings-store',
+ path: `/entry/${bucket}/${entry}`
+});
+
+
export * from './types';
