notes/cisco_ft_securex_registration.org

This commit is contained in:
Yann Esposito (Yogsototh) 2022-03-21 11:16:01 +01:00
parent 868b1aa708
commit f6fa8d625a
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -804,8 +804,11 @@ In order to achieve this; you should:
email to the users. This refacto should potentially be used for the
Invite mechanism, but as it appear to work fine today we might decide
not to touch it.
*** Dev details
Here are some dev details that could probably be copy/pasted as-is:
#+begin_src clojure
(s/defschema MailTemplate
(st/optional-keys
@ -815,11 +818,13 @@ In order to achieve this; you should:
:mail-source s/Str}))
(defprotocol EMailTemplatingService
;; CRUD operations
(create-email-template [this email-template-id new-email-template])
(get-email-template [this email-template-id])
(delete-email-template [this email-template-id])
(update-email-template [this email-template-id email-template])
(patch-email-template [this email-template-id email-template-patch])
;; History
(search-email-template-history
[this email-template-id filter-map text-match pagination-params]
"given an email-template-id, return the list of matched template-id saved in history.")
@ -830,6 +835,7 @@ In order to achieve this; you should:
"revert-email-template on the previous one.
Beware reverting/undoing is also saved in history.")
;; SendEmails
(send-templated-email [this email-template-id template-params]
"send an email using some template id and template-params
are object that will be used by the mustache templating system to fill the template."))