Photo Service implementation details.
Photo Service implementation details.
(get-infos race-ids)
Inputs: [race-ids :- [s/Str]] Returns: {s/Str ps/RaceInfo}
Multiget for bib mappings. Returns a map of race-id -> BibMapping.
Inputs: [race-ids :- [s/Str]] Returns: {s/Str ps/RaceInfo} Multiget for bib mappings. Returns a map of race-id -> BibMapping.
If the race has info on albums and mappings registered, returns those settings.
If the race has info on albums and mappings registered, returns those settings.
If the user has privacy settings registered, returns those settings.
If the user has privacy settings registered, returns those settings.
(hydrate-users photos)
Inputs: [photos :- [ps/Photo]] Returns: [ps/Photo]
Fills in the UserTag field on the tags in each photo.
Inputs: [photos :- [ps/Photo]] Returns: [ps/Photo] Fills in the UserTag field on the tags in each photo.
(map-values f m)
(multiget ids)
Inputs: [ids :- [ps/ID]] Returns: {ps/ID ps/Photo}
Same as the client's multiget, but handles hydrating the bib mappings.
Inputs: [ids :- [ps/ID]] Returns: {ps/ID ps/Photo} Same as the client's multiget, but handles hydrating the bib mappings.
Takes a function of [id] -> {id item} and returns a function of id -> (s/maybe item).
Takes a function of [id] -> {id item} and returns a function of id -> (s/maybe item).
(multiget-user-info ids)
Inputs: [ids :- [ps/UserID]] Returns: {ps/UserID ps/UserTagDoc}
Inputs: [ids :- [ps/UserID]] Returns: {ps/UserID ps/UserTagDoc}
(run & forms)
Run a command on the configured database.
Run a command on the configured database.
(run-photo & forms)
Run a command on the photo table.
Run a command on the photo table.
(set-user-info! user-id opts)
Inputs: [user-id :- ps/UserID opts :- {(s/optional-key :privacy-level) ps/Privacy, (s/optional-key :facebook-id) s/Str}] Returns: ps/UserTagDoc
Sets the user info fields.
Inputs: [user-id :- ps/UserID opts :- {(s/optional-key :privacy-level) ps/Privacy, (s/optional-key :facebook-id) s/Str}] Returns: ps/UserTagDoc Sets the user info fields.
(tag-facebook-photos! photos)
(tag-facebook-photos! photos pre-hydrated?)
Inputs: ([photos :- [ps/Photo]] [photos :- [ps/Photo] pre-hydrated? :- s/Bool]) Returns: [{:success s/Bool}]
Tags all users in all photos on facebook. Accepts a sequence of
photos, unhydrated by default. Optionally you can supply true
as
the second param to signal that they're already hydrated.
Inputs: ([photos :- [ps/Photo]] [photos :- [ps/Photo] pre-hydrated? :- s/Bool]) Returns: [{:success s/Bool}] Tags all users in all photos on facebook. Accepts a sequence of photos, unhydrated by default. Optionally you can supply `true` as the second param to signal that they're already hydrated.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close