youyesyet.routes.auto-json

JSON routes for youyesyet auto-generated by [Application Description Language framework](https://github.com/simon-brooke/adl) at 20180921T143945.111Z

auto-rest-routes

FIXME: write docs

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-address

FIXME: write docs

get-authority

FIXME: write docs

get-canvasser

FIXME: write docs

get-canvasser-by-username

FIXME: write docs

get-district

FIXME: write docs

get-dwelling

FIXME: write docs

get-elector

FIXME: write docs

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

get-followupmethod

FIXME: write docs

get-followuprequest

FIXME: write docs

get-gender

FIXME: write docs

get-intention

FIXME: write docs

get-issue

FIXME: write docs

get-option

FIXME: write docs

get-role

FIXME: write docs

get-role-by-name

FIXME: write docs

get-team

FIXME: write docs

get-visit

FIXME: write docs

list-addresses

FIXME: write docs

list-addresses-by-district

(list-addresses-by-district {:keys [params]})
FIXME: write docs

list-authorities

FIXME: write docs

list-canvassers

FIXME: write docs

list-canvassers-by-address

(list-canvassers-by-address {:keys [params]})
FIXME: write docs

list-canvassers-by-authority

(list-canvassers-by-authority {:keys [params]})
FIXME: write docs

list-canvassers-by-elector

(list-canvassers-by-elector {:keys [params]})
FIXME: write docs

list-canvassers-by-issues

(list-canvassers-by-issues {:keys [params]})
FIXME: write docs

list-canvassers-by-roles

(list-canvassers-by-roles {:keys [params]})
FIXME: write docs

list-districts

FIXME: write docs

list-dwellings

FIXME: write docs

list-dwellings-by-address

(list-dwellings-by-address {:keys [params]})
FIXME: write docs

list-electors

FIXME: write docs

list-electors-by-dwelling

(list-electors-by-dwelling {:keys [params]})
FIXME: write docs

list-electors-by-gender

(list-electors-by-gender {:keys [params]})
FIXME: write docs

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]})
FIXME: write docs

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]})
FIXME: write docs

list-followupactions-by-followuprequest

(list-followupactions-by-followuprequest {:keys [params]})
FIXME: write docs

list-followupmethods

FIXME: write docs

list-followuprequests

FIXME: write docs

list-followuprequests-by-canvasser

(list-followuprequests-by-canvasser {:keys [params]})
FIXME: write docs

list-followuprequests-by-elector

(list-followuprequests-by-elector {:keys [params]})
FIXME: write docs

list-followuprequests-by-followupmethod

(list-followuprequests-by-followupmethod {:keys [params]})
FIXME: write docs

list-followuprequests-by-issue

(list-followuprequests-by-issue {:keys [params]})
FIXME: write docs

list-followuprequests-by-visit

(list-followuprequests-by-visit {:keys [params]})
FIXME: write docs

list-genders

FIXME: write docs

list-intentions

FIXME: write docs

list-intentions-by-elector

(list-intentions-by-elector {:keys [params]})
FIXME: write docs

list-intentions-by-option

(list-intentions-by-option {:keys [params]})
FIXME: write docs

list-intentions-by-visit

(list-intentions-by-visit {:keys [params]})
FIXME: write docs

list-issues

FIXME: write docs

list-members-by-team

(list-members-by-team {:keys [params]})
FIXME: write docs

list-options

FIXME: write docs

list-organisers-by-team

(list-organisers-by-team {:keys [params]})
FIXME: write docs

list-roles

FIXME: write docs

list-teams

FIXME: write docs

list-teams-by-canvasser

(list-teams-by-canvasser {:keys [params]})
FIXME: write docs

list-teams-by-district

(list-teams-by-district {:keys [params]})
FIXME: write docs

list-visits

FIXME: write docs

list-visits-by-address

(list-visits-by-address {:keys [params]})
FIXME: write docs

list-visits-by-canvasser

(list-visits-by-canvasser {:keys [params]})
FIXME: write docs

search-strings-addresses

FIXME: write docs

search-strings-authorities

FIXME: write docs

search-strings-canvassers

FIXME: write docs

search-strings-districts

FIXME: write docs

search-strings-dwellings

FIXME: write docs

search-strings-electors

FIXME: write docs

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

FIXME: write docs

search-strings-followuprequests

FIXME: write docs

search-strings-genders

FIXME: write docs

search-strings-intentions

FIXME: write docs

search-strings-issues

FIXME: write docs

search-strings-options

FIXME: write docs

search-strings-roles

FIXME: write docs

search-strings-teams

FIXME: write docs

search-strings-visits

FIXME: write docs

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