diff --git a/docs/index.html b/docs/index.html
index 6b279cf..48b5683 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1,3 +1,3 @@
-
youyesyet.canvasser-app.ajax
Canvasser app transciever for ajax packets.
load-interceptors!
(load-interceptors!)
local-uri?
(local-uri? {:keys [uri]})
\ No newline at end of file
+youyesyet.canvasser-app.ajax
Canvasser app transciever for ajax packets.
load-interceptors!
(load-interceptors!)
local-uri?
(local-uri? {:keys [uri]})
\ No newline at end of file
diff --git a/docs/youyesyet.canvasser-app.core.html b/docs/youyesyet.canvasser-app.core.html
index 7e880d7..30d3a6f 100644
--- a/docs/youyesyet.canvasser-app.core.html
+++ b/docs/youyesyet.canvasser-app.core.html
@@ -1,3 +1,3 @@
-youyesyet.canvasser-app.gis
add-map-pin
(add-map-pin address view)
Add a map-pin at this address in this map view
get-current-location
(get-current-location)
map-pin-click-handler
(map-pin-click-handler id)
On clicking on the pin, navigate to the electors at the address. This way of doing it adds an antry in the browser location history, so back links work.
map-remove-pins
(map-remove-pins view)
Remove all pins from this map view. Side-effecty; liable to be problematic.
pin-image
(pin-image address)
select the name of a suitable pin image for this address
refresh-map-pins
(refresh-map-pins)
Refresh the map pins on this map. Side-effecty; liable to be problematic.
\ No newline at end of file
+youyesyet.canvasser-app.gis
add-map-pin
(add-map-pin address view)
Add an appropriate map-pin at this address in this map view.
get-current-location
(get-current-location)
map-pin-click-handler
(map-pin-click-handler id)
On clicking on the pin, navigate to the electors at the address. This way of doing it adds an antry in the browser location history, so back links work.
map-remove-pins
(map-remove-pins view)
Remove all pins from this map view. Side-effecty; liable to be problematic.
pin-image
(pin-image address)
Return the name of a suitable pin image for this address.
refresh-map-pins
(refresh-map-pins)
Refresh the map pins on the current map. Side-effecty; liable to be problematic.
\ No newline at end of file
diff --git a/docs/youyesyet.canvasser-app.handlers.html b/docs/youyesyet.canvasser-app.handlers.html
index ee9e011..c302f44 100644
--- a/docs/youyesyet.canvasser-app.handlers.html
+++ b/docs/youyesyet.canvasser-app.handlers.html
@@ -1,3 +1,3 @@
-youyesyet.canvasser-app.handlers
Canvasser app event handlers.
add-to-feedback
(add-to-feedback db x)
Add x to the feedback in this db.
add-to-key
(add-to-key db k x)
Return a copy of db with x added to the front of the list of items held against the key k
add-to-outqueue
(add-to-outqueue db message)
clear-messages
(clear-messages state)
Return a state like this state except with the error and feedback messages set nil
coerce-to-number
(coerce-to-number v)
compose-packet
(compose-packet item)
do-update-elector
(do-update-elector db elector)
get-elector
(get-elector elector-id state)(get-elector elector-id state address)
Return the elector at this address (or the current address if not specified) with this id.
handle-forbidden
(handle-forbidden response & forms)
If response has status 403 (forbidden) redirect to the login page.
remove-from-feedback
(remove-from-feedback db x)
Remove x from the feedback in this db.
remove-from-key
(remove-from-key db k x)
remove-from-outqueue
(remove-from-outqueue db x)
\ No newline at end of file
+youyesyet.canvasser-app.handlers
Canvasser app event handlers.
add-to-feedback
(add-to-feedback db x)
Add x to the feedback in this db.
add-to-key
(add-to-key db k x)
Return a copy of db with x added to the front of the list of items held against the key k
add-to-outqueue
(add-to-outqueue db message)
Add the supplied message to the output queue in this db.
clear-messages
(clear-messages state)
Return a state like this state except with the error and feedback messages set nil
coerce-to-number
(coerce-to-number v)
compose-packet
(compose-packet item)
do-update-elector
(do-update-elector db elector)
get-elector
(get-elector elector-id state)(get-elector elector-id state address)
Return the elector at this address (or the current address if not specified) with this id.
handle-forbidden
(handle-forbidden response & forms)
If response has status 403 (forbidden) redirect to the login page.
remove-from-feedback
(remove-from-feedback db x)
Remove x from the feedback in this db.
remove-from-key
(remove-from-key db k x)
Remove x from the values of key k in map db.
remove-from-outqueue
(remove-from-outqueue db x)
Remove x from the output queue in this db.
source-host
The base URL of the host from which the app was loaded.
\ No newline at end of file
diff --git a/docs/youyesyet.canvasser-app.state.html b/docs/youyesyet.canvasser-app.state.html
index 6391925..b103b92 100644
--- a/docs/youyesyet.canvasser-app.state.html
+++ b/docs/youyesyet.canvasser-app.state.html
@@ -1,3 +1,3 @@
-youyesyet.canvasser-app.ui-utils
Canvasser app user interface widgets.
back-link
(back-link)(back-link target)
Generate a back link to the preceding page, or, if target is specified, to a particular page.
big-link
(big-link text & {:keys [target handler]})
error-panel
(error-panel message)
log-and-dispatch
(log-and-dispatch arg)
nav-link
(nav-link uri title page collapsed?)
\ No newline at end of file
+youyesyet.canvasser-app.ui-utils
Canvasser app user interface widgets.
back-link
(back-link)(back-link target)
Generate a back link to the preceding page, or, if target is specified, to a particular page.
big-link
(big-link text & {:keys [target handler]})
Generate a big link with this text which, when selected, either opens the url which is this target if supplied, or else invokes this handler.
error-panel
(error-panel message)
Generate and return an error panel with this message.
log-and-dispatch
(log-and-dispatch event)
nav-link
(nav-link uri title page collapsed?)
navbar
(navbar)
Generate and return a navigation bar representing the current state of the app.
\ No newline at end of file
diff --git a/docs/youyesyet.canvasser-app.views.about.html b/docs/youyesyet.canvasser-app.views.about.html
index cd0aeef..5761770 100644
--- a/docs/youyesyet.canvasser-app.views.about.html
+++ b/docs/youyesyet.canvasser-app.views.about.html
@@ -1,3 +1,3 @@
-youyesyet.canvasser-app.views.dwelling
Canvasser app electors in household panel.
gender-cell
(gender-cell elector)
genders-row
(genders-row electors)
go-to-gdpr-for-elector
(go-to-gdpr-for-elector elector)
name-cell
(name-cell elector)
names-row
(names-row electors)
panel
(panel)
Generate the electors panel.
\ No newline at end of file
+youyesyet.canvasser-app.views.dwelling
Canvasser app electors in household panel.
gender-cell
(gender-cell elector)
genders-row
(genders-row electors)
go-to-gdpr-for-elector
(go-to-gdpr-for-elector elector)
name-cell
(name-cell elector)
names-row
(names-row electors)
panel
(panel)
Generate the electors panel.
\ No newline at end of file
diff --git a/docs/youyesyet.canvasser-app.views.elector.html b/docs/youyesyet.canvasser-app.views.elector.html
index 1bfd605..3ca6f7c 100644
--- a/docs/youyesyet.canvasser-app.views.elector.html
+++ b/docs/youyesyet.canvasser-app.views.elector.html
@@ -1,3 +1,3 @@
-youyesyet.canvasser-app.views.elector
Canvasser app single elector panel.
gender-row
(gender-row elector)
Generate a row containing a cell showing the gender of this elector.
issue-row
(issue-row elector)
Generate a row containing an issue cell for a particular elector
name-row
(name-row elector)
Generate a row containing a cell showing the name of this elector.
option-row
(option-row elector option)
Generate a row showing this option for this elector.
panel
(panel)
Generate the elector panel.
\ No newline at end of file
+youyesyet.canvasser-app.views.elector
Canvasser app single elector panel.
gender-row
(gender-row elector)
Generate a row containing a cell showing the gender of this elector.
issue-row
(issue-row elector)
Generate a row containing an issue cell for a particular elector
name-row
(name-row elector)
Generate a row containing a cell showing the name of this elector.
option-row
(option-row elector option)
Generate a row showing this option for this elector.
panel
(panel)
Generate the elector panel.
\ No newline at end of file
diff --git a/docs/youyesyet.canvasser-app.views.followup.html b/docs/youyesyet.canvasser-app.views.followup.html
index 5bb7a06..be239c1 100644
--- a/docs/youyesyet.canvasser-app.views.followup.html
+++ b/docs/youyesyet.canvasser-app.views.followup.html
@@ -1,3 +1,3 @@
-youyesyet.layout
Render web pages using Selmer templating markup.
error-page
(error-page error-details)
error-details should be a map containing the following keys: :status - error status :title - error title (optional) :message - detailed error message (optional) returns a response map with the error page as the body and the status specified by the status key
get-user-roles
Return, as a set, the names of the roles of which this user is a member.
render
(render template & [params])
renders the HTML template located relative to resources/templates in the context of this session and with these parameters.
render-with-session
(render-with-session template session & [params])
renders the HTML template located relative to resources/templates in the context of this session and with these parameters.
\ No newline at end of file
+youyesyet.layout
Render web pages using Selmer templating markup.
*user*
dynamic
The current user, in circumstances in which we do not have a session. Normally the user is held on a key in the session.
+
TODO: is this necessary? Is it safe?
error-page
(error-page error-details)
error-details should be a map containing the following keys: :status - error status :title - error title (optional) :message - detailed error message (optional) returns a response map with the error page as the body and the status specified by the status key
get-user-roles
Return, as a set, the names of the roles of which this user is a member.
render
(render template & [params])
renders the HTML template located relative to resources/templates in the context of this session and with these parameters.
render-with-session
(render-with-session template session & [params])
renders the HTML template located relative to resources/templates in the context of this session and with these parameters.
\ No newline at end of file
diff --git a/docs/youyesyet.locality.html b/docs/youyesyet.locality.html
index a8f6ff2..8e5cbd6 100644
--- a/docs/youyesyet.locality.html
+++ b/docs/youyesyet.locality.html
@@ -1,3 +1,3 @@
-youyesyet.locality
locality
(locality latitude longitude)
Compute the locality index for this latitude/longitude pair.
neighbouring-localities
(neighbouring-localities locality)
Return this locality with the localities immediately north east, north, north west, east, west, south west, south and south east of it.
\ No newline at end of file
+youyesyet.locality
locality
(locality latitude longitude)
Compute the locality index for this latitude/longitude pair.
neighbouring-localities
(neighbouring-localities locality)
Return this locality with the localities immediately north east, north, north west, east, west, south west, south and south east of it.
\ No newline at end of file
diff --git a/docs/youyesyet.middleware.html b/docs/youyesyet.middleware.html
index 3abbf96..f67218a 100644
--- a/docs/youyesyet.middleware.html
+++ b/docs/youyesyet.middleware.html
@@ -1,3 +1,3 @@
-youyesyet.middleware
Plumbing, mainly boilerplate from Luminus.
wrap-base
(wrap-base handler)
wrap-context
(wrap-context handler)
wrap-csrf
(wrap-csrf handler)
wrap-internal-error
(wrap-internal-error handler)
wrap-user
(wrap-user handler)
Dynamically bind user to the user in the session, if any, so that it is available in layout/render, q.v.
\ No newline at end of file
+youyesyet.middleware
Plumbing, mainly boilerplate from Luminus.
wrap-base
(wrap-base handler)
wrap-context
(wrap-context handler)
wrap-csrf
(wrap-csrf handler)
wrap-internal-error
(wrap-internal-error handler)
wrap-user
(wrap-user handler)
Dynamically bind user to the user in the session, if any, so that it is available in layout/render, q.v.
\ No newline at end of file
diff --git a/docs/youyesyet.oauth.html b/docs/youyesyet.oauth.html
index 12773a8..6f766b6 100644
--- a/docs/youyesyet.oauth.html
+++ b/docs/youyesyet.oauth.html
@@ -1,3 +1,3 @@
-youyesyet.oauth
Handle oauth with multiple authenticating authorities.
auth-redirect-uri
(auth-redirect-uri request-token authority)
Gets the URI the user should be redirected to when authenticating.
fetch-access-token
(fetch-access-token request_token authority)
fetch-request-token
(fetch-request-token request auth)(fetch-request-token request)
Fetches a request token from the authority implied by this request.
get-authorities
(get-authorities _)
Fetch the authorities from the database and return a map of them.
oauth-callback-uri
(oauth-callback-uri {:keys [headers]})
Generates the oauth request callback URI.
\ No newline at end of file
+youyesyet.oauth
Handle oauth with multiple authenticating authorities.
auth-redirect-uri
(auth-redirect-uri request-token authority)
Gets the URI the user should be redirected to when authenticating.
fetch-access-token
(fetch-access-token request_token authority)
fetch-request-token
(fetch-request-token request auth)(fetch-request-token request)
Fetches a request token from the authority implied by this request.
get-authorities
(get-authorities _)
Fetch the authorities from the database and return a map of them.
oauth-callback-uri
(oauth-callback-uri {:keys [headers]})
Generates the oauth request callback URI.
\ No newline at end of file
diff --git a/docs/youyesyet.outqueue.html b/docs/youyesyet.outqueue.html
index b424904..b406019 100644
--- a/docs/youyesyet.outqueue.html
+++ b/docs/youyesyet.outqueue.html
@@ -1,3 +1,3 @@
-youyesyet.outqueue
Queue of messages waiting to be sent to the server.
add!
(add! q item)
Add this item to the queue.
count
(count q)
Return the count of items currently in the queue.
maybe-process-next
(maybe-process-next q process)
Apply this process, assumed to be a function of one argument, to the next item in the queue, if the queue is not currently locked; return the value returned by process.
new-queue
(new-queue)(new-queue items)
peek
(peek q)
Look at the next item which could be removed from the queue.
queue?
(queue? x)
True if x is a queue, else false.
take!
(take! q)
Return the first item from the queue, rebind the queue to the remaining items. If the queue is empty return nil.
unlock!
(unlock! q)(unlock! q value)
\ No newline at end of file
+youyesyet.outqueue
Queue of messages waiting to be sent to the server.
add!
(add! q item)
Add this item to the queue q.
count
(count q)
Return the count of items currently in the queue q.
locked?
(locked? q)
True if this queue q is locked, else false.
maybe-process-next
(maybe-process-next q process)
Apply this process, assumed to be a function of one argument, to the next item in the queue q, if the queue is not currently locked; return the value returned by process.
new-queue
(new-queue)(new-queue items)
peek
(peek q)
Look at the next item which could be removed from the queue q.
queue?
(queue? x)
True if x is a queue, else false.
take!
(take! q)
Return the first item from the queue q, rebind the queue to the remaining items. If the queue is empty return nil.
unlock!
(unlock! q)(unlock! q value)
Unlock the queue q if not value is supplied; if a value is supplied, unlock only if that value is true, otherwise lock.
\ No newline at end of file
diff --git a/docs/youyesyet.routes.auto-json.html b/docs/youyesyet.routes.auto-json.html
index e7e59d2..6ade069 100644
--- a/docs/youyesyet.routes.auto-json.html
+++ b/docs/youyesyet.routes.auto-json.html
@@ -1,3 +1,3 @@
-youyesyet.routes.auto-json
create-address!
(create-address! request)
Auto-generated method to insert one record to the addresses table. Expects the following key(s) to be present in params: (:address :postcode :district_id :latitude :longitude). Returns a map containing the keys #{"id"} identifying the record created.
create-authority!
(create-authority! request)
Auto-generated method to insert one record to the authorities table. Expects the following key(s) to be present in params: (:request-token-uri :access-token-uri :authorize-uri :consumer-key :consumer-secret :id). Returns a map containing the keys #{"id"} identifying the record created.
create-canvasser!
(create-canvasser! request)
Auto-generated method to insert one record to the canvassers table. Expects the following key(s) to be present in params: (:username :fullname :avatar :bio :elector_id :address_id :phone :email :authority_id :authorised). Returns a map containing the keys #{"id"} identifying the record created.
create-district!
(create-district! request)
Auto-generated method to insert one record to the districts table. Expects the following key(s) to be present in params: (:name). Returns a map containing the keys #{"id"} identifying the record created.
create-dwelling!
(create-dwelling! request)
Auto-generated method to insert one record to the dwellings table. Expects the following key(s) to be present in params: (:address_id :sub-address). Returns a map containing the keys #{"id"} identifying the record created.
create-elector!
(create-elector! request)
Auto-generated method to insert one record to the electors table. Expects the following key(s) to be present in params: (:name :dwelling_id :phone :email :gender :signature). Returns a map containing the keys #{"id"} identifying the record created.
create-event!
(create-event! request)
Auto-generated method to insert one record to the events table. Expects the following key(s) to be present in params: (:name :date :time :decription :cancelled). Returns a map containing the keys #{"id"} identifying the record created.
create-followupaction!
(create-followupaction! request)
Auto-generated method to insert one record to the followupactions table. Expects the following key(s) to be present in params: (:request_id :actor :date :notes :closed). Returns a map containing the keys #{"id"} identifying the record created.
create-followupmethod!
(create-followupmethod! request)
Auto-generated method to insert one record to the followupmethods table. Expects the following key(s) to be present in params: (:id). Returns a map containing the keys #{"id"} identifying the record created.
create-followuprequest!
(create-followuprequest! request)
Auto-generated method to insert one record to the followuprequests table. Expects the following key(s) to be present in params: (:elector_id :visit_id :issue_id :issue_detail :method_id :method_detail :locked_by :locked). Returns a map containing the keys #{"id"} identifying the record created.
create-gender!
(create-gender! request)
Auto-generated method to insert one record to the genders table. Expects the following key(s) to be present in params: (:id). Returns a map containing the keys #{"id"} identifying the record created.
create-intention!
(create-intention! request)
Auto-generated method to insert one record to the intentions table. Expects the following key(s) to be present in params: (:visit_id :elector_id :option_id :locality). Returns a map containing the keys #{"id"} identifying the record created.
create-issue!
(create-issue! request)
Auto-generated method to insert one record to the issues table. Expects the following key(s) to be present in params: (:url :current :brief :id). Returns a map containing the keys #{"id"} identifying the record created.
create-option!
(create-option! request)
Auto-generated method to insert one record to the options table. Expects the following key(s) to be present in params: (:id). Returns a map containing the keys #{"id"} identifying the record created.
create-role!
(create-role! request)
Auto-generated method to insert one record to the roles table. Expects the following key(s) to be present in params: (:name :id). Returns a map containing the keys #{"id"} identifying the record created.
create-team!
(create-team! request)
Auto-generated method to insert one record to the teams table. Expects the following key(s) to be present in params: (:name :district_id :latitude :longitude). Returns a map containing the keys #{"id"} identifying the record created.
create-visit!
(create-visit! request)
Auto-generated method to insert one record to the visits table. Expects the following key(s) to be present in params: (:address_id :canvasser_id :date). Returns a map containing the keys #{"id"} identifying the record created.
delete-address!
(delete-address! request)
Auto-generated method to delete one record from the addresses table. Expects the following key(s) to be present in params: #{"id"}.
delete-authority!
(delete-authority! request)
Auto-generated method to delete one record from the authorities table. Expects the following key(s) to be present in params: #{"id"}.
delete-canvasser!
(delete-canvasser! request)
Auto-generated method to delete one record from the canvassers table. Expects the following key(s) to be present in params: #{"id"}.
delete-district!
(delete-district! request)
Auto-generated method to delete one record from the districts table. Expects the following key(s) to be present in params: #{"id"}.
delete-dwelling!
(delete-dwelling! request)
Auto-generated method to delete one record from the dwellings table. Expects the following key(s) to be present in params: #{"id"}.
delete-elector!
(delete-elector! request)
Auto-generated method to delete one record from the electors table. Expects the following key(s) to be present in params: #{"id"}.
delete-event!
(delete-event! request)
Auto-generated method to delete one record from the events table. Expects the following key(s) to be present in params: #{"id"}.
delete-followupaction!
(delete-followupaction! request)
Auto-generated method to delete one record from the followupactions table. Expects the following key(s) to be present in params: #{"id"}.
delete-followupmethod!
(delete-followupmethod! request)
Auto-generated method to delete one record from the followupmethods table. Expects the following key(s) to be present in params: #{"id"}.
delete-followuprequest!
(delete-followuprequest! request)
Auto-generated method to delete one record from the followuprequests table. Expects the following key(s) to be present in params: #{"id"}.
delete-gender!
(delete-gender! request)
Auto-generated method to delete one record from the genders table. Expects the following key(s) to be present in params: #{"id"}.
delete-intention!
(delete-intention! request)
Auto-generated method to delete one record from the intentions table. Expects the following key(s) to be present in params: #{"id"}.
delete-issue!
(delete-issue! request)
Auto-generated method to delete one record from the issues table. Expects the following key(s) to be present in params: #{"id"}.
delete-option!
(delete-option! request)
Auto-generated method to delete one record from the options table. Expects the following key(s) to be present in params: #{"id"}.
delete-role!
(delete-role! request)
Auto-generated method to delete one record from the roles table. Expects the following key(s) to be present in params: #{"id"}.
delete-team!
(delete-team! request)
Auto-generated method to delete one record from the teams table. Expects the following key(s) to be present in params: #{"id"}.
delete-visit!
(delete-visit! request)
Auto-generated method to delete one record from the visits table. Expects the following key(s) to be present in params: #{"id"}.
get-canvasser-by-username
get-event
(get-event request)
Auto-generated method to select one record from the events table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@3ac90901.
get-followupaction
(get-followupaction request)
Auto-generated method to select one record from the followupactions table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@6b32af0e.
list-addresses-by-district
(list-addresses-by-district {:keys [params]})
list-canvassers-by-address
(list-canvassers-by-address {:keys [params]})
list-canvassers-by-authority
(list-canvassers-by-authority {:keys [params]})
list-canvassers-by-elector
(list-canvassers-by-elector {:keys [params]})
list-canvassers-by-issues
(list-canvassers-by-issues {:keys [params]})
list-canvassers-by-roles
(list-canvassers-by-roles {:keys [params]})
list-dwellings-by-address
(list-dwellings-by-address {:keys [params]})
list-electors-by-dwelling
(list-electors-by-dwelling {:keys [params]})
list-electors-by-gender
(list-electors-by-gender {:keys [params]})
list-events
(list-events request)
Auto-generated method to select all records from the events table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :teams :date :time :decription :cancelled :id).
list-events-by-teams
(list-events-by-teams {:keys [params]})
list-followupactions
(list-followupactions request)
Auto-generated method to select all records from the followupactions table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:request_id :actor :date :notes :closed :id).
list-followupactions-by-canvasser
(list-followupactions-by-canvasser {:keys [params]})
list-followupactions-by-followuprequest
(list-followupactions-by-followuprequest {:keys [params]})
list-followuprequests-by-canvasser
(list-followuprequests-by-canvasser {:keys [params]})
list-followuprequests-by-elector
(list-followuprequests-by-elector {:keys [params]})
list-followuprequests-by-followupmethod
(list-followuprequests-by-followupmethod {:keys [params]})
list-followuprequests-by-issue
(list-followuprequests-by-issue {:keys [params]})
list-followuprequests-by-visit
(list-followuprequests-by-visit {:keys [params]})
list-intentions-by-elector
(list-intentions-by-elector {:keys [params]})
list-intentions-by-option
(list-intentions-by-option {:keys [params]})
list-intentions-by-visit
(list-intentions-by-visit {:keys [params]})
list-members-by-team
(list-members-by-team {:keys [params]})
list-organisers-by-team
(list-organisers-by-team {:keys [params]})
list-teams-by-canvasser
(list-teams-by-canvasser {:keys [params]})
list-teams-by-district
(list-teams-by-district {:keys [params]})
list-visits-by-address
(list-visits-by-address {:keys [params]})
list-visits-by-canvasser
(list-visits-by-canvasser {:keys [params]})
search-strings-authorities
search-strings-canvassers
search-strings-events
(search-strings-events request)
Auto-generated method to select all records from the events table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :teams :date :time :decription :cancelled :id).
search-strings-followupactions
(search-strings-followupactions request)
Auto-generated method to select all records from the followupactions table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:request_id :actor :date :notes :closed :id).
search-strings-followupmethods
search-strings-followuprequests
search-strings-intentions
update-address!
(update-address! request)
Auto-generated method to update one record in the addresses table. Expects the following key(s) to be present in params: (:address :district_id :id :latitude :longitude :postcode).
update-authority!
(update-authority! request)
Auto-generated method to update one record in the authorities table. Expects the following key(s) to be present in params: (:access-token-uri :authorize-uri :consumer-key :consumer-secret :id :request-token-uri).
update-canvasser!
(update-canvasser! request)
Auto-generated method to update one record in the canvassers table. Expects the following key(s) to be present in params: (:address_id :authorised :authority_id :avatar :bio :elector_id :email :fullname :id :phone :username).
update-district!
(update-district! request)
Auto-generated method to update one record in the districts table. Expects the following key(s) to be present in params: (:id :name).
update-dwelling!
(update-dwelling! request)
Auto-generated method to update one record in the dwellings table. Expects the following key(s) to be present in params: (:address_id :id :sub-address).
update-elector!
(update-elector! request)
Auto-generated method to update one record in the electors table. Expects the following key(s) to be present in params: (:dwelling_id :email :gender :id :name :phone :signature).
update-event!
(update-event! request)
Auto-generated method to update one record in the events table. Expects the following key(s) to be present in params: (:cancelled :date :decription :id :name :time).
update-followupaction!
(update-followupaction! request)
Auto-generated method to update one record in the followupactions table. Expects the following key(s) to be present in params: (:actor :closed :date :id :notes :request_id).
update-followupmethod!
(update-followupmethod! request)
Auto-generated method to update one record in the followupmethods table. Expects the following key(s) to be present in params: (:id).
update-followuprequest!
(update-followuprequest! request)
Auto-generated method to update one record in the followuprequests table. Expects the following key(s) to be present in params: (:elector_id :id :issue_detail :issue_id :locked :locked_by :method_detail :method_id :visit_id).
update-gender!
(update-gender! request)
Auto-generated method to update one record in the genders table. Expects the following key(s) to be present in params: (:id).
update-intention!
(update-intention! request)
Auto-generated method to update one record in the intentions table. Expects the following key(s) to be present in params: (:elector_id :id :locality :option_id :visit_id).
update-issue!
(update-issue! request)
Auto-generated method to update one record in the issues table. Expects the following key(s) to be present in params: (:brief :current :id :url).
update-option!
(update-option! request)
Auto-generated method to update one record in the options table. Expects the following key(s) to be present in params: (:id).
update-role!
(update-role! request)
Auto-generated method to update one record in the roles table. Expects the following key(s) to be present in params: (:id :name).
update-team!
(update-team! request)
Auto-generated method to update one record in the teams table. Expects the following key(s) to be present in params: (:district_id :id :latitude :longitude :name).
update-visit!
(update-visit! request)
Auto-generated method to update one record in the visits table. Expects the following key(s) to be present in params: (:address_id :canvasser_id :date :id).
\ No newline at end of file
+youyesyet.routes.auto-json
create-address!
(create-address! request)
Auto-generated function to insert one record to the addresses table. Expects the following key(s) to be present in params: (:address :postcode :district_id :latitude :longitude). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 1000000 seconds.
create-authority!
(create-authority! request)
Auto-generated function to insert one record to the authorities table. Expects the following key(s) to be present in params: (:request-token-uri :access-token-uri :authorize-uri :consumer-key :consumer-secret :id). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 10000000 seconds.
create-canvasser!
(create-canvasser! request)
Auto-generated function to insert one record to the canvassers table. Expects the following key(s) to be present in params: (:username :fullname :avatar :bio :elector_id :address_id :phone :email :authority_id :authorised). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 10000 seconds.
create-district!
(create-district! request)
Auto-generated function to insert one record to the districts table. Expects the following key(s) to be present in params: (:name). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 10000000 seconds.
create-dwelling!
(create-dwelling! request)
Auto-generated function to insert one record to the dwellings table. Expects the following key(s) to be present in params: (:address_id :sub-address). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 1000000 seconds.
create-elector!
(create-elector! request)
Auto-generated function to insert one record to the electors table. Expects the following key(s) to be present in params: (:name :dwelling_id :phone :email :gender :signature). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 100000 seconds.
create-event!
(create-event! request)
Auto-generated function to insert one record to the events table. Expects the following key(s) to be present in params: (:name :date :time :decription :cancelled). Returns a map containing the keys #{"id"} identifying the record created.
create-followupaction!
(create-followupaction! request)
Auto-generated function to insert one record to the followupactions table. Expects the following key(s) to be present in params: (:request_id :actor :date :notes :closed). Returns a map containing the keys #{"id"} identifying the record created.
create-followupmethod!
(create-followupmethod! request)
Auto-generated function to insert one record to the followupmethods table. Expects the following key(s) to be present in params: (:id). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 10000000 seconds.
create-followuprequest!
(create-followuprequest! request)
Auto-generated function to insert one record to the followuprequests table. Expects the following key(s) to be present in params: (:elector_id :visit_id :issue_id :issue_detail :method_id :method_detail :locked_by :locked). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 100 seconds.
create-gender!
(create-gender! request)
Auto-generated function to insert one record to the genders table. Expects the following key(s) to be present in params: (:id). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 1000000 seconds.
create-intention!
(create-intention! request)
Auto-generated function to insert one record to the intentions table. Expects the following key(s) to be present in params: (:visit_id :elector_id :option_id :locality). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 100 seconds.
create-issue!
(create-issue! request)
Auto-generated function to insert one record to the issues table. Expects the following key(s) to be present in params: (:url :current :brief :id). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 1000 seconds.
create-option!
(create-option! request)
Auto-generated function to insert one record to the options table. Expects the following key(s) to be present in params: (:id). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 10000000 seconds.
create-role!
(create-role! request)
Auto-generated function to insert one record to the roles table. Expects the following key(s) to be present in params: (:name :id). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 10000000 seconds.
create-team!
(create-team! request)
Auto-generated function to insert one record to the teams table. Expects the following key(s) to be present in params: (:name :district_id :latitude :longitude). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 10000 seconds.
create-visit!
(create-visit! request)
Auto-generated function to insert one record to the visits table. Expects the following key(s) to be present in params: (:address_id :canvasser_id :date). Returns a map containing the keys #{"id"} identifying the record created. Results will be held in cache for 100 seconds.
delete-address!
(delete-address! request)
Auto-generated function to delete one record from the addresses table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 1000000 seconds.
delete-authority!
(delete-authority! request)
Auto-generated function to delete one record from the authorities table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 10000000 seconds.
delete-canvasser!
(delete-canvasser! request)
Auto-generated function to delete one record from the canvassers table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 10000 seconds.
delete-district!
(delete-district! request)
Auto-generated function to delete one record from the districts table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 10000000 seconds.
delete-dwelling!
(delete-dwelling! request)
Auto-generated function to delete one record from the dwellings table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 1000000 seconds.
delete-elector!
(delete-elector! request)
Auto-generated function to delete one record from the electors table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 100000 seconds.
delete-event!
(delete-event! request)
Auto-generated function to delete one record from the events table. Expects the following key(s) to be present in params: #{"id"}.
delete-followupaction!
(delete-followupaction! request)
Auto-generated function to delete one record from the followupactions table. Expects the following key(s) to be present in params: #{"id"}.
delete-followupmethod!
(delete-followupmethod! request)
Auto-generated function to delete one record from the followupmethods table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 10000000 seconds.
delete-followuprequest!
(delete-followuprequest! request)
Auto-generated function to delete one record from the followuprequests table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 100 seconds.
delete-gender!
(delete-gender! request)
Auto-generated function to delete one record from the genders table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 1000000 seconds.
delete-intention!
(delete-intention! request)
Auto-generated function to delete one record from the intentions table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 100 seconds.
delete-issue!
(delete-issue! request)
Auto-generated function to delete one record from the issues table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 1000 seconds.
delete-option!
(delete-option! request)
Auto-generated function to delete one record from the options table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 10000000 seconds.
delete-role!
(delete-role! request)
Auto-generated function to delete one record from the roles table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 10000000 seconds.
delete-team!
(delete-team! request)
Auto-generated function to delete one record from the teams table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 10000 seconds.
delete-visit!
(delete-visit! request)
Auto-generated function to delete one record from the visits table. Expects the following key(s) to be present in params: #{"id"}. Results will be held in cache for 100 seconds.
get-address
(get-address request)
Auto-generated function to select one record from the addresses table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@490531d1. Results will be held in cache for 1000000 seconds.
get-authority
(get-authority request)
Auto-generated function to select one record from the authorities table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@352cf516. Results will be held in cache for 10000000 seconds.
get-canvasser
(get-canvasser request)
Auto-generated function to select one record from the canvassers table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@771caed2. Results will be held in cache for 10000 seconds.
get-canvasser-by-username
(get-canvasser-by-username request)
Auto-generated function to select one record from the canvassers table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@771caed2. Results will be held in cache for 10000 seconds.
get-district
(get-district request)
Auto-generated function to select one record from the districts table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@1c48b9f5. Results will be held in cache for 10000000 seconds.
get-dwelling
(get-dwelling request)
Auto-generated function to select one record from the dwellings table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@f0e6e3d6. Results will be held in cache for 1000000 seconds.
get-elector
(get-elector request)
Auto-generated function to select one record from the electors table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@c7611432. Results will be held in cache for 100000 seconds.
get-event
(get-event request)
Auto-generated function to select one record from the events table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@3ac90901.
get-followupaction
(get-followupaction request)
Auto-generated function to select one record from the followupactions table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@6b32af0e.
get-followupmethod
(get-followupmethod request)
Auto-generated function to select one record from the followupmethods table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@3c72487c. Results will be held in cache for 10000000 seconds.
get-followuprequest
(get-followuprequest request)
Auto-generated function to select one record from the followuprequests table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@ae10eaf. Results will be held in cache for 100 seconds.
get-gender
(get-gender request)
Auto-generated function to select one record from the genders table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@3c72487c. Results will be held in cache for 1000000 seconds.
get-intention
(get-intention request)
Auto-generated function to select one record from the intentions table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@27b31781. Results will be held in cache for 100 seconds.
get-issue
(get-issue request)
Auto-generated function to select one record from the issues table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@606826e4. Results will be held in cache for 1000 seconds.
get-option
(get-option request)
Auto-generated function to select one record from the options table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@3c72487c. Results will be held in cache for 10000000 seconds.
get-role
(get-role request)
Auto-generated function to select one record from the roles table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@a81570c6. Results will be held in cache for 10000000 seconds.
get-role-by-name
(get-role-by-name request)
Auto-generated function to select one record from the roles table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@a81570c6. Results will be held in cache for 10000000 seconds.
get-team
(get-team request)
Auto-generated function to select one record from the teams table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@31118d64. Results will be held in cache for 10000 seconds.
get-visit
(get-visit request)
Auto-generated function to select one record from the visits table. Expects the following key(s) to be present in params: #{"id"}. Returns a map containing the following keys: clojure.lang.LazySeq@a7611ce6. Results will be held in cache for 100 seconds.
list-addresses
(list-addresses request)
Auto-generated function to select all records from the addresses table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:address :postcode :district_id :latitude :longitude :dwellings :locality :id). Results will be held in cache for 1000000 seconds.
list-addresses-by-canvasser
(list-addresses-by-canvasser {:keys [params]})
list-addresses-by-dwelling
(list-addresses-by-dwelling {:keys [params]})
list-addresses-by-visit
(list-addresses-by-visit {:keys [params]})
list-authorities
(list-authorities request)
Auto-generated function to select all records from the authorities table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:request-token-uri :access-token-uri :authorize-uri :consumer-key :consumer-secret :id). Results will be held in cache for 10000000 seconds.
list-authorities-by-canvasser
(list-authorities-by-canvasser {:keys [params]})
list-canvassers
(list-canvassers request)
Auto-generated function to select all records from the canvassers table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:username :fullname :avatar :bio :elector_id :address_id :phone :email :authority_id :authorised :roles :expertise :teams :id). Results will be held in cache for 10000 seconds.
list-canvassers-by-followupaction
(list-canvassers-by-followupaction {:keys [params]})
list-canvassers-by-followuprequest
(list-canvassers-by-followuprequest {:keys [params]})
list-canvassers-by-issue
(list-canvassers-by-issue {:keys [params]})
list-canvassers-by-role
(list-canvassers-by-role {:keys [params]})
list-canvassers-by-visit
(list-canvassers-by-visit {:keys [params]})
list-districts
(list-districts request)
Auto-generated function to select all records from the districts table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :id). Results will be held in cache for 10000000 seconds.
list-districts-by-address
(list-districts-by-address {:keys [params]})
list-districts-by-team
(list-districts-by-team {:keys [params]})
list-dwellings
(list-dwellings request)
Auto-generated function to select all records from the dwellings table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:address_id :sub-address :electors :id). Results will be held in cache for 1000000 seconds.
list-dwellings-by-address
(list-dwellings-by-address {:keys [params]})
list-dwellings-by-elector
(list-dwellings-by-elector {:keys [params]})
list-electors
(list-electors request)
Auto-generated function to select all records from the electors table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :dwelling_id :phone :email :gender :signature :id). Results will be held in cache for 100000 seconds.
list-electors-by-canvasser
(list-electors-by-canvasser {:keys [params]})
list-electors-by-dwelling
(list-electors-by-dwelling {:keys [params]})
list-electors-by-followuprequest
(list-electors-by-followuprequest {:keys [params]})
list-electors-by-intention
(list-electors-by-intention {:keys [params]})
list-events
(list-events request)
Auto-generated function to select all records from the events table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :teams :date :time :decription :cancelled :id).
list-events-by-team
(list-events-by-team {:keys [params]})
list-followupactions
(list-followupactions request)
Auto-generated function to select all records from the followupactions table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:request_id :actor :date :notes :closed :id).
list-followupactions-by-followuprequest
(list-followupactions-by-followuprequest {:keys [params]})
list-followupmethods
(list-followupmethods request)
Auto-generated function to select all records from the followupmethods table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:id). Results will be held in cache for 10000000 seconds.
list-followupmethods-by-followuprequest
(list-followupmethods-by-followuprequest {:keys [params]})
list-followuprequests
(list-followuprequests request)
Auto-generated function to select all records from the followuprequests table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:elector_id :visit_id :issue_id :issue_detail :method_id :method_detail :locked_by :locked :actions :id). Results will be held in cache for 100 seconds.
list-followuprequests-by-followupaction
(list-followuprequests-by-followupaction {:keys [params]})
list-genders
(list-genders request)
Auto-generated function to select all records from the genders table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:id). Results will be held in cache for 1000000 seconds.
list-genders-by-elector
(list-genders-by-elector {:keys [params]})
list-intentions
(list-intentions request)
Auto-generated function to select all records from the intentions table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:visit_id :elector_id :option_id :locality :id). Results will be held in cache for 100 seconds.
list-issues
(list-issues request)
Auto-generated function to select all records from the issues table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:url :current :brief :experts :id). Results will be held in cache for 1000 seconds.
list-issues-by-canvasser
(list-issues-by-canvasser {:keys [params]})
list-issues-by-followuprequest
(list-issues-by-followuprequest {:keys [params]})
list-members-by-team
(list-members-by-team {:keys [params]})
list-options
(list-options request)
Auto-generated function to select all records from the options table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:id). Results will be held in cache for 10000000 seconds.
list-options-by-intention
(list-options-by-intention {:keys [params]})
list-organisers-by-team
(list-organisers-by-team {:keys [params]})
list-roles
(list-roles request)
Auto-generated function to select all records from the roles table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :members :id). Results will be held in cache for 10000000 seconds.
list-roles-by-canvasser
(list-roles-by-canvasser {:keys [params]})
list-teams
(list-teams request)
Auto-generated function to select all records from the teams table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :district_id :latitude :longitude :members :organisers :events :id). Results will be held in cache for 10000 seconds.
list-teams-by-canvasser
(list-teams-by-canvasser {:keys [params]})
list-teams-by-event
(list-teams-by-event {:keys [params]})
list-visits
(list-visits request)
Auto-generated function to select all records from the visits table. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:address_id :canvasser_id :date :id). Results will be held in cache for 100 seconds.
list-visits-by-followuprequest
(list-visits-by-followuprequest {:keys [params]})
list-visits-by-intention
(list-visits-by-intention {:keys [params]})
search-strings-addresses
(search-strings-addresses request)
Auto-generated function to select all records from the addresses table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:address :postcode :district_id :latitude :longitude :dwellings :locality :id). Results will be held in cache for 1000000 seconds.
search-strings-authorities
(search-strings-authorities request)
Auto-generated function to select all records from the authorities table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:request-token-uri :access-token-uri :authorize-uri :consumer-key :consumer-secret :id). Results will be held in cache for 10000000 seconds.
search-strings-canvassers
(search-strings-canvassers request)
Auto-generated function to select all records from the canvassers table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:username :fullname :avatar :bio :elector_id :address_id :phone :email :authority_id :authorised :roles :expertise :teams :id). Results will be held in cache for 10000 seconds.
search-strings-districts
(search-strings-districts request)
Auto-generated function to select all records from the districts table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :id). Results will be held in cache for 10000000 seconds.
search-strings-dwellings
(search-strings-dwellings request)
Auto-generated function to select all records from the dwellings table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:address_id :sub-address :electors :id). Results will be held in cache for 1000000 seconds.
search-strings-electors
(search-strings-electors request)
Auto-generated function to select all records from the electors table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :dwelling_id :phone :email :gender :signature :id). Results will be held in cache for 100000 seconds.
search-strings-events
(search-strings-events request)
Auto-generated function to select all records from the events table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :teams :date :time :decription :cancelled :id).
search-strings-followupactions
(search-strings-followupactions request)
Auto-generated function to select all records from the followupactions table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:request_id :actor :date :notes :closed :id).
search-strings-followupmethods
(search-strings-followupmethods request)
Auto-generated function to select all records from the followupmethods table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:id). Results will be held in cache for 10000000 seconds.
search-strings-followuprequests
(search-strings-followuprequests request)
Auto-generated function to select all records from the followuprequests table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:elector_id :visit_id :issue_id :issue_detail :method_id :method_detail :locked_by :locked :actions :id). Results will be held in cache for 100 seconds.
search-strings-genders
(search-strings-genders request)
Auto-generated function to select all records from the genders table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:id). Results will be held in cache for 1000000 seconds.
search-strings-intentions
(search-strings-intentions request)
Auto-generated function to select all records from the intentions table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:visit_id :elector_id :option_id :locality :id). Results will be held in cache for 100 seconds.
search-strings-issues
(search-strings-issues request)
Auto-generated function to select all records from the issues table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:url :current :brief :experts :id). Results will be held in cache for 1000 seconds.
search-strings-options
(search-strings-options request)
Auto-generated function to select all records from the options table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:id). Results will be held in cache for 10000000 seconds.
search-strings-roles
(search-strings-roles request)
Auto-generated function to select all records from the roles table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :members :id). Results will be held in cache for 10000000 seconds.
search-strings-teams
(search-strings-teams request)
Auto-generated function to select all records from the teams table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:name :district_id :latitude :longitude :members :organisers :events :id). Results will be held in cache for 10000 seconds.
search-strings-visits
(search-strings-visits request)
Auto-generated function to select all records from the visits table with any text field matching the value of the key :pattern which should be in the request. If the keys (:limit :offset) are present in the request then they will be used to page through the data. Returns a sequence of maps each containing the following keys: (:address_id :canvasser_id :date :id). Results will be held in cache for 100 seconds.
update-address!
(update-address! request)
Auto-generated function to update one record in the addresses table. Expects the following key(s) to be present in params: (:address :district_id :id :latitude :longitude :postcode). Results will be held in cache for 1000000 seconds.
update-authority!
(update-authority! request)
Auto-generated function to update one record in the authorities table. Expects the following key(s) to be present in params: (:access-token-uri :authorize-uri :consumer-key :consumer-secret :id :request-token-uri). Results will be held in cache for 10000000 seconds.
update-canvasser!
(update-canvasser! request)
Auto-generated function to update one record in the canvassers table. Expects the following key(s) to be present in params: (:address_id :authorised :authority_id :avatar :bio :elector_id :email :fullname :id :phone :username). Results will be held in cache for 10000 seconds.
update-district!
(update-district! request)
Auto-generated function to update one record in the districts table. Expects the following key(s) to be present in params: (:id :name). Results will be held in cache for 10000000 seconds.
update-dwelling!
(update-dwelling! request)
Auto-generated function to update one record in the dwellings table. Expects the following key(s) to be present in params: (:address_id :id :sub-address). Results will be held in cache for 1000000 seconds.
update-elector!
(update-elector! request)
Auto-generated function to update one record in the electors table. Expects the following key(s) to be present in params: (:dwelling_id :email :gender :id :name :phone :signature). Results will be held in cache for 100000 seconds.
update-event!
(update-event! request)
Auto-generated function to update one record in the events table. Expects the following key(s) to be present in params: (:cancelled :date :decription :id :name :time).
update-followupaction!
(update-followupaction! request)
Auto-generated function to update one record in the followupactions table. Expects the following key(s) to be present in params: (:actor :closed :date :id :notes :request_id).
update-followupmethod!
(update-followupmethod! request)
Auto-generated function to update one record in the followupmethods table. Expects the following key(s) to be present in params: (:id). Results will be held in cache for 10000000 seconds.
update-followuprequest!
(update-followuprequest! request)
Auto-generated function to update one record in the followuprequests table. Expects the following key(s) to be present in params: (:elector_id :id :issue_detail :issue_id :locked :locked_by :method_detail :method_id :visit_id). Results will be held in cache for 100 seconds.
update-gender!
(update-gender! request)
Auto-generated function to update one record in the genders table. Expects the following key(s) to be present in params: (:id). Results will be held in cache for 1000000 seconds.
update-intention!
(update-intention! request)
Auto-generated function to update one record in the intentions table. Expects the following key(s) to be present in params: (:elector_id :id :locality :option_id :visit_id). Results will be held in cache for 100 seconds.
update-issue!
(update-issue! request)
Auto-generated function to update one record in the issues table. Expects the following key(s) to be present in params: (:brief :current :id :url). Results will be held in cache for 1000 seconds.
update-option!
(update-option! request)
Auto-generated function to update one record in the options table. Expects the following key(s) to be present in params: (:id). Results will be held in cache for 10000000 seconds.
update-role!
(update-role! request)
Auto-generated function to update one record in the roles table. Expects the following key(s) to be present in params: (:id :name). Results will be held in cache for 10000000 seconds.
update-team!
(update-team! request)
Auto-generated function to update one record in the teams table. Expects the following key(s) to be present in params: (:district_id :id :latitude :longitude :name). Results will be held in cache for 10000 seconds.
update-visit!
(update-visit! request)
Auto-generated function to update one record in the visits table. Expects the following key(s) to be present in params: (:address_id :canvasser_id :date :id). Results will be held in cache for 100 seconds.
\ No newline at end of file
diff --git a/docs/youyesyet.routes.auto.html b/docs/youyesyet.routes.auto.html
index 20250cc..a05a1cb 100644
--- a/docs/youyesyet.routes.auto.html
+++ b/docs/youyesyet.routes.auto.html
@@ -1,3 +1,3 @@
-youyesyet.routes.auto
get-list-addresses-Addresses
(get-list-addresses-Addresses request)
get-list-authorities-Authorities
(get-list-authorities-Authorities request)
get-list-canvassers-Canvassers
(get-list-canvassers-Canvassers request)
get-list-districts-Districts
(get-list-districts-Districts request)
get-list-dwellings-Dwellings
(get-list-dwellings-Dwellings request)
get-list-electors-Electors
(get-list-electors-Electors request)
get-list-events-Events
(get-list-events-Events request)
get-list-followupactions-Followupactions
(get-list-followupactions-Followupactions request)
get-list-followupmethods-Followupmethods
(get-list-followupmethods-Followupmethods request)
get-list-followuprequests-Followuprequests
(get-list-followuprequests-Followuprequests request)
get-list-genders-Genders
(get-list-genders-Genders request)
get-list-intentions-Intentions
(get-list-intentions-Intentions request)
get-list-issues-Issues
(get-list-issues-Issues request)
get-list-options-Options
(get-list-options-Options request)
get-list-roles-Roles
(get-list-roles-Roles request)
get-list-teams-Teams
(get-list-teams-Teams request)
get-list-visits-Visits
(get-list-visits-Visits request)
post-form-addresses-Address
(post-form-addresses-Address request)
post-form-authorities-Authority
(post-form-authorities-Authority request)
post-form-canvassers-Canvasser
(post-form-canvassers-Canvasser request)
post-form-districts-District
(post-form-districts-District request)
post-form-dwellings-Dwelling
(post-form-dwellings-Dwelling request)
post-form-electors-Elector
(post-form-electors-Elector request)
post-form-events-Events
(post-form-events-Events request)
post-form-followupactions-Followupaction
(post-form-followupactions-Followupaction request)
post-form-followupmethods-Followupmethod
(post-form-followupmethods-Followupmethod request)
post-form-followuprequests-Followuprequest
(post-form-followuprequests-Followuprequest request)
post-form-genders-Gender
(post-form-genders-Gender request)
post-form-intentions-Intention
(post-form-intentions-Intention request)
post-form-issues-Issue
(post-form-issues-Issue request)
post-form-options-Option
(post-form-options-Option request)
post-form-roles-Role
(post-form-roles-Role request)
post-form-teams-Team
(post-form-teams-Team request)
post-form-visits-Visit
(post-form-visits-Visit request)
post-list-addresses-Addresses
(post-list-addresses-Addresses request)
post-list-authorities-Authorities
(post-list-authorities-Authorities request)
post-list-canvassers-Canvassers
(post-list-canvassers-Canvassers request)
post-list-districts-Districts
(post-list-districts-Districts request)
post-list-dwellings-Dwellings
(post-list-dwellings-Dwellings request)
post-list-electors-Electors
(post-list-electors-Electors request)
post-list-events-Events
(post-list-events-Events request)
post-list-followupactions-Followupactions
(post-list-followupactions-Followupactions request)
post-list-followupmethods-Followupmethods
(post-list-followupmethods-Followupmethods request)
post-list-followuprequests-Followuprequests
(post-list-followuprequests-Followuprequests request)
post-list-genders-Genders
(post-list-genders-Genders request)
post-list-intentions-Intentions
(post-list-intentions-Intentions request)
post-list-issues-Issues
(post-list-issues-Issues request)
post-list-options-Options
(post-list-options-Options request)
post-list-roles-Roles
(post-list-roles-Roles request)
post-list-teams-Teams
(post-list-teams-Teams request)
post-list-visits-Visits
(post-list-visits-Visits request)
raw-resolve-handler
(raw-resolve-handler n)
Prefer the manually-written version of the handler with name n, if it exists, to the automatically generated one
\ No newline at end of file
+youyesyet.routes.auto
get-list-addresses-Addresses
(get-list-addresses-Addresses request)
get-list-authorities-Authorities
(get-list-authorities-Authorities request)
get-list-canvassers-Canvassers
(get-list-canvassers-Canvassers request)
get-list-districts-Districts
(get-list-districts-Districts request)
get-list-dwellings-Dwellings
(get-list-dwellings-Dwellings request)
get-list-electors-Electors
(get-list-electors-Electors request)
get-list-events-Events
(get-list-events-Events request)
get-list-followupactions-Followupactions
(get-list-followupactions-Followupactions request)
get-list-followupmethods-Followupmethods
(get-list-followupmethods-Followupmethods request)
get-list-followuprequests-Followuprequests
(get-list-followuprequests-Followuprequests request)
get-list-genders-Genders
(get-list-genders-Genders request)
get-list-intentions-Intentions
(get-list-intentions-Intentions request)
get-list-issues-Issues
(get-list-issues-Issues request)
get-list-options-Options
(get-list-options-Options request)
get-list-roles-Roles
(get-list-roles-Roles request)
get-list-teams-Teams
(get-list-teams-Teams request)
get-list-visits-Visits
(get-list-visits-Visits request)
post-form-addresses-Address
(post-form-addresses-Address request)
post-form-authorities-Authority
(post-form-authorities-Authority request)
post-form-canvassers-Canvasser
(post-form-canvassers-Canvasser request)
post-form-districts-District
(post-form-districts-District request)
post-form-dwellings-Dwelling
(post-form-dwellings-Dwelling request)
post-form-electors-Elector
(post-form-electors-Elector request)
post-form-events-Events
(post-form-events-Events request)
post-form-followupactions-Followupaction
(post-form-followupactions-Followupaction request)
post-form-followupmethods-Followupmethod
(post-form-followupmethods-Followupmethod request)
post-form-followuprequests-Followuprequest
(post-form-followuprequests-Followuprequest request)
post-form-genders-Gender
(post-form-genders-Gender request)
post-form-intentions-Intention
(post-form-intentions-Intention request)
post-form-issues-Issue
(post-form-issues-Issue request)
post-form-options-Option
(post-form-options-Option request)
post-form-roles-Role
(post-form-roles-Role request)
post-form-teams-Team
(post-form-teams-Team request)
post-form-visits-Visit
(post-form-visits-Visit request)
post-list-addresses-Addresses
(post-list-addresses-Addresses request)
post-list-authorities-Authorities
(post-list-authorities-Authorities request)
post-list-canvassers-Canvassers
(post-list-canvassers-Canvassers request)
post-list-districts-Districts
(post-list-districts-Districts request)
post-list-dwellings-Dwellings
(post-list-dwellings-Dwellings request)
post-list-electors-Electors
(post-list-electors-Electors request)
post-list-events-Events
(post-list-events-Events request)
post-list-followupactions-Followupactions
(post-list-followupactions-Followupactions request)
post-list-followupmethods-Followupmethods
(post-list-followupmethods-Followupmethods request)
post-list-followuprequests-Followuprequests
(post-list-followuprequests-Followuprequests request)
post-list-genders-Genders
(post-list-genders-Genders request)
post-list-intentions-Intentions
(post-list-intentions-Intentions request)
post-list-issues-Issues
(post-list-issues-Issues request)
post-list-options-Options
(post-list-options-Options request)
post-list-roles-Roles
(post-list-roles-Roles request)
post-list-teams-Teams
(post-list-teams-Teams request)
post-list-visits-Visits
(post-list-visits-Visits request)
raw-resolve-handler
(raw-resolve-handler n)
Prefer the manually-written version of the handler with name n, if it exists, to the automatically generated one
\ No newline at end of file
diff --git a/docs/youyesyet.routes.home.html b/docs/youyesyet.routes.home.html
index 4e0adee..176017f 100644
--- a/docs/youyesyet.routes.home.html
+++ b/docs/youyesyet.routes.home.html
@@ -1,3 +1,3 @@
-youyesyet.routes.issue-experts
Routes/pages available to issue experts.
get-and-lock-followuprequest!
(get-and-lock-followuprequest! id user)
Return the followuprequest record indicated by this id, provided that it is unlocked. As a side effect, lock it to this user.
get-followup-request-page
(get-followup-request-page request)
list-page
(list-page request)
post-followup-action
(post-followup-action request)
From this request, create a followupaction record, and, if an option_id is present in the params, an intention record; show the request list on success, the request form on failure.
release-followuprequest!
(release-followuprequest! id user)
Release the lock held on the followuprequest record indicated by this id held by this user, if present.
\ No newline at end of file
+youyesyet.routes.issue-experts
Routes/pages available to issue experts.
get-and-lock-followuprequest!
(get-and-lock-followuprequest! id user)
Return the followuprequest record indicated by this id, provided that it is unlocked. As a side effect, lock it to this user.
get-followup-request-page
(get-followup-request-page request)
list-page
(list-page request)
post-followup-action
(post-followup-action request)
From this request, create a followupaction record, and, if an option_id is present in the params, an intention record; show the request list on success, the request form on failure.
release-followuprequest!
(release-followuprequest! id user)
Release the lock held on the followuprequest record indicated by this id held by this user, if present.
\ No newline at end of file
diff --git a/docs/youyesyet.routes.oauth.html b/docs/youyesyet.routes.oauth.html
index 475f8e9..3affe79 100644
--- a/docs/youyesyet.routes.oauth.html
+++ b/docs/youyesyet.routes.oauth.html
@@ -1,3 +1,3 @@
-youyesyet.routes.oauth
OAuth authentication routes - not finished, does not work yet.
oauth-callback
(oauth-callback request_token {:keys [session]})
Handles the callback from the authority.
oauth-init
(oauth-init request)
Initiates the OAuth with the authority implied by this request
\ No newline at end of file
+youyesyet.routes.oauth
OAuth authentication routes - not finished, does not work yet.
oauth-callback
(oauth-callback request_token {:keys [session]})
Handles the callback from the authority.
oauth-init
(oauth-init request)
Initiates the OAuth with the authority implied by this request
\ No newline at end of file
diff --git a/docs/youyesyet.routes.rest.html b/docs/youyesyet.routes.rest.html
index 17df879..d335c09 100644
--- a/docs/youyesyet.routes.rest.html
+++ b/docs/youyesyet.routes.rest.html
@@ -1,3 +1,3 @@
-youyesyet.routes.rest
Manually maintained routes which handle data transfer to/from the canvasser app.
create-intention-and-visit!
(create-intention-and-visit! request)
Doing visit creation logic server side; request params are expected to include an option_id, an elector_id and an address_id, or an option and a location. If no address_id is provided, we simply create an intention record from the option_id and the locality; if an address_id is provided, we need to check whether the last visit by the current user was to the same address, if so use that as the visit_id, if not create a new visit record.
create-request-and-visit!
(create-request-and-visit! request)
Doing visit creation logic server side; request params are expected to include an issue, an elector_id and an address_id (and also a method_id and method_detail). Ye cannae reasonably create a request without having recorded the visit, so let’s not muck about.
current-visit-id
(current-visit-id request)
Return the id of the current visit by the current user, creating it if necessary.
get-local-data
(get-local-data request)
Get data local to the user of the canvasser app. Expects arguments latitude and longitude, or locality. Returns a block of data for that locality
in-get-local-data
Local data is volatile, because hopefully canvassers are updating it as they work. So cache for only 90 seconds.
last-visit-by-current-user
(last-visit-by-current-user request)
Return the most recent visit by the currently logged in user
update-elector-signature!
(update-elector-signature! request)
Set the signature in the params of this request as the signature for the elector whose id is in the params of this request.
\ No newline at end of file
+youyesyet.routes.rest
Manually maintained routes which handle data transfer to/from the canvasser app.
create-intention-and-visit!
(create-intention-and-visit! request)
Doing visit creation logic server side; request params are expected to include an option_id, an elector_id and an address_id, or an option and a location. If no address_id is provided, we simply create an intention record from the option_id and the locality; if an address_id is provided, we need to check whether the last visit by the current user was to the same address, if so use that as the visit_id, if not create a new visit record.
create-request-and-visit!
(create-request-and-visit! request)
Doing visit creation logic server side; request params are expected to include an issue, an elector_id and an address_id (and also a method_id and method_detail). Ye cannae reasonably create a request without having recorded the visit, so let’s not muck about.
current-visit-id
(current-visit-id request)
Return the id of the current visit by the current user, creating it if necessary.
get-local-data
(get-local-data request)
Get data local to the user of the canvasser app. Expects arguments latitude and longitude, or locality. Returns a block of data for that locality
in-get-local-data
Local data is volatile, because hopefully canvassers are updating it as they work. So cache for only 90 seconds.
last-visit-by-current-user
(last-visit-by-current-user request)
Return the most recent visit by the currently logged in user
update-elector-signature!
(update-elector-signature! request)
Set the signature in the params of this request as the signature for the elector whose id is in the params of this request.
\ No newline at end of file
diff --git a/docs/youyesyet.routes.roles.html b/docs/youyesyet.routes.roles.html
index 6bcff5c..8fc327c 100644
--- a/docs/youyesyet.routes.roles.html
+++ b/docs/youyesyet.routes.roles.html
@@ -1,3 +1,3 @@
-youyesyet.routes.roles
Routes/pages available to authenticated users in specific roles.
admins-page
(admins-page request)
analysts-page
(analysts-page request)
My expectation is that analysts will do a lot of their work through QGIS or some other geographical information system; so there isn’t a need to put anything sophisticated here.
canvassers-page
(canvassers-page request)
roles-page
(roles-page request)
team-organisers-page
(team-organisers-page request)
\ No newline at end of file
+youyesyet.routes.roles
Routes/pages available to authenticated users in specific roles.
admins-page
(admins-page request)
analysts-page
(analysts-page request)
My expectation is that analysts will do a lot of their work through QGIS or some other geographical information system; so there isn’t a need to put anything sophisticated here.
canvassers-page
(canvassers-page request)
roles-page
(roles-page request)
team-organisers-page
(team-organisers-page request)
\ No newline at end of file
diff --git a/docs/youyesyet.routes.services.html b/docs/youyesyet.routes.services.html
index 78c1be2..3e8c2d0 100644
--- a/docs/youyesyet.routes.services.html
+++ b/docs/youyesyet.routes.services.html
@@ -1,3 +1,3 @@
-