             [compojure.api.middleware :as c-mw]
             [compojure.api.sweet :as c-api]
             [compojure.core :refer [ANY GET POST routes]]
+            [cook.cached-queries :as cached-queries]
             [cook.compute-cluster :as cc]
             [cook.config :as config]
             [cook.datomic :as datomic]


(def UserUsageParams
  "User usage endpoint query string parameters"
  (assoc UserParam
    (s/optional-key :group_breakdown) s/Bool))

(def UsageInfo
  "Schema for a dictionary of job resource usage info."


(def UserUsageInPool
  "Schema for a user's usage within a particular pool."
  {(s/optional-key :total_usage) UsageInfo
   (s/optional-key :grouped) [{:group UsageGroupInfo, :usage UsageInfo}]
   (s/optional-key :ungrouped) JobsUsageResponse})

