## Generated by Codox

# Youyesyet 0.2.2-SNAPSHOT

# youyesyet.routes.auto-json

JSON routes for youyesyet auto-generated by Application Description Language framework at 20190502T102202.387Z

### auto-rest-routes

TODO: write docs

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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"}`.

view source

### 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"}`.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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`.

view source

### 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`.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### list-addresses-by-canvasser

`(list-addresses-by-canvasser {:keys [params]})`

TODO: write docs

view source

### list-addresses-by-dwelling

`(list-addresses-by-dwelling {:keys [params]})`

TODO: write docs

view source

### list-addresses-by-visit

`(list-addresses-by-visit {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-authorities-by-canvasser

`(list-authorities-by-canvasser {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-canvassers-by-followupaction

`(list-canvassers-by-followupaction {:keys [params]})`

TODO: write docs

view source

### list-canvassers-by-followuprequest

`(list-canvassers-by-followuprequest {:keys [params]})`

TODO: write docs

view source

### list-canvassers-by-issue

`(list-canvassers-by-issue {:keys [params]})`

TODO: write docs

view source

### list-canvassers-by-role

`(list-canvassers-by-role {:keys [params]})`

TODO: write docs

view source

### list-canvassers-by-visit

`(list-canvassers-by-visit {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-districts-by-address

`(list-districts-by-address {:keys [params]})`

TODO: write docs

view source

### list-districts-by-team

`(list-districts-by-team {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-dwellings-by-address

`(list-dwellings-by-address {:keys [params]})`

TODO: write docs

view source

### list-dwellings-by-elector

`(list-dwellings-by-elector {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-electors-by-canvasser

`(list-electors-by-canvasser {:keys [params]})`

TODO: write docs

view source

### list-electors-by-dwelling

`(list-electors-by-dwelling {:keys [params]})`

TODO: write docs

view source

### list-electors-by-followuprequest

`(list-electors-by-followuprequest {:keys [params]})`

TODO: write docs

view source

### list-electors-by-intention

`(list-electors-by-intention {:keys [params]})`

TODO: write docs

view source

### 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)`.

view source

### list-events-by-team

`(list-events-by-team {:keys [params]})`

TODO: write docs

view source

### 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)`.

view source

### list-followupactions-by-followuprequest

`(list-followupactions-by-followuprequest {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-followupmethods-by-followuprequest

`(list-followupmethods-by-followuprequest {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-followuprequests-by-followupaction

`(list-followuprequests-by-followupaction {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-genders-by-elector

`(list-genders-by-elector {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### 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.

view source

### list-issues-by-canvasser

`(list-issues-by-canvasser {:keys [params]})`

TODO: write docs

view source

### list-issues-by-followuprequest

`(list-issues-by-followuprequest {:keys [params]})`

TODO: write docs

view source

### list-members-by-team

`(list-members-by-team {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-options-by-intention

`(list-options-by-intention {:keys [params]})`

TODO: write docs

view source

### list-organisers-by-team

`(list-organisers-by-team {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-roles-by-canvasser

`(list-roles-by-canvasser {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-teams-by-canvasser

`(list-teams-by-canvasser {:keys [params]})`

TODO: write docs

view source

### list-teams-by-event

`(list-teams-by-event {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### list-visits-by-followuprequest

`(list-visits-by-followuprequest {:keys [params]})`

TODO: write docs

view source

### list-visits-by-intention

`(list-visits-by-intention {:keys [params]})`

TODO: write docs

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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)`.

view source

### 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)`.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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)`.

view source

### 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)`.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source

### 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.

view source