-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.clj
63 lines (55 loc) · 1.22 KB
/
schema.clj
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
(ns alana.schema)
(def MapToEntityBuilderInput
[:map {:closed true}
[:entity-map map?]
[:key any?]])
(def EntityInput
[:or
[:map {:closed true}
[:datastore any?]
[:kind string?]
[:name {:optional true} string?]
[:entity-map map?]]
[:map {:closed true}
[:datastore any?]
[:kind string?]
[:entity-map map?]]])
(def PropertyFilterInput
[:or
[:map {:closed true}
[:key string?]
[:value any?]
[:type [:enum "=" "<" "<=" ">" ">="]]]
[:map {:closed true}
[:key string?]
[:type [:enum "is-null"]]]
[:map {:closed true}
[:key string?]
[:type [:enum "has-ancestor"]]
[:datastore any?]
[:kind string?]]])
(def CreateQueryInput
[:map {:closed true}
[:kind string?]
[:property-map any?]])
(def RunQueryInput
[:or
[:map {:closed true}
[:datastore any?]
[:kind string?]
[:property-map any?]]
[:map {:closed true}
[:datastore any?]
[:query-string string?]]])
(def UpsertEntityInput
[:map {:closed true}
[:datastore any?]
[:entity any?]])
(def InsertEntityInput
[:map {:closed true}
[:datastore any?]
[:entity any?]])
(def DeleteEntityInput
[:map {:closed true}
[:datastore any?]
[:completed-key any?]])