Client Helpers
Client Helpers
(display-name user-doc)
Inputs: [user-doc :- as/User] Returns: (s/maybe (s/either as/FullName as/UserName))
Takes in a user-doc or username and returns the user's full name, or username if the name hasn't been input yet.
Inputs: [user-doc :- as/User] Returns: (s/maybe (s/either as/FullName as/UserName)) Takes in a user-doc or username and returns the user's full name, or username if the name hasn't been input yet.
(email user-doc)
Inputs: [user-doc :- as/User] Returns: (s/maybe s/Str)
If the supplied user's valid, returns the email address.
Inputs: [user-doc :- as/User] Returns: (s/maybe s/Str) If the supplied user's valid, returns the email address.
(get-dob-str user-doc)
Inputs: [user-doc :- as/User] Returns: (s/maybe s/Str)
Returns date of birth as a string mm/dd/yyyy
Inputs: [user-doc :- as/User] Returns: (s/maybe s/Str) Returns date of birth as a string mm/dd/yyyy
(profile user-doc)
Inputs: [user-doc :- as/User] Returns: (s/maybe as/Profile)
If the supplied user's valid, returns the profile.
Inputs: [user-doc :- as/User] Returns: (s/maybe as/Profile) If the supplied user's valid, returns the profile.
(publish! topic m)
Publishes the given topic / payload and returns the payload.
Publishes the given topic / payload and returns the payload.
(super-admin? user-doc)
Inputs: [user-doc :- as/User] Returns: s/Bool
Inputs: [user-doc :- as/User] Returns: s/Bool
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close