/
bookmarks.cljs
69 lines (45 loc) · 2.31 KB
/
bookmarks.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
(ns chromex.app.bookmarks (:require-macros [chromex.app.bookmarks :refer [gen-wrap]])
(:require [chromex.core]))
; -- properties -------------------------------------------------------------------------------------------------------------
(defn max-write-operations-per-hour* [config]
(gen-wrap :property ::max-write-operations-per-hour config))
(defn max-sustained-write-operations-per-minute* [config]
(gen-wrap :property ::max-sustained-write-operations-per-minute config))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn get* [config id-or-id-list]
(gen-wrap :function ::get config id-or-id-list))
(defn get-children* [config id]
(gen-wrap :function ::get-children config id))
(defn get-recent* [config number-of-items]
(gen-wrap :function ::get-recent config number-of-items))
(defn get-tree* [config]
(gen-wrap :function ::get-tree config))
(defn get-sub-tree* [config id]
(gen-wrap :function ::get-sub-tree config id))
(defn search* [config query]
(gen-wrap :function ::search config query))
(defn create* [config bookmark]
(gen-wrap :function ::create config bookmark))
(defn move* [config id destination]
(gen-wrap :function ::move config id destination))
(defn update* [config id changes]
(gen-wrap :function ::update config id changes))
(defn remove* [config id]
(gen-wrap :function ::remove config id))
(defn remove-tree* [config id]
(gen-wrap :function ::remove-tree config id))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-created* [config channel & args]
(gen-wrap :event ::on-created config channel args))
(defn on-removed* [config channel & args]
(gen-wrap :event ::on-removed config channel args))
(defn on-changed* [config channel & args]
(gen-wrap :event ::on-changed config channel args))
(defn on-moved* [config channel & args]
(gen-wrap :event ::on-moved config channel args))
(defn on-children-reordered* [config channel & args]
(gen-wrap :event ::on-children-reordered config channel args))
(defn on-import-began* [config channel & args]
(gen-wrap :event ::on-import-began config channel args))
(defn on-import-ended* [config channel & args]
(gen-wrap :event ::on-import-ended config channel args))