From 708fa69c5345c88993256bac5f3fa57ce4437030 Mon Sep 17 00:00:00 2001 From: amentis Date: Wed, 10 Jan 2024 15:59:46 +0200 Subject: [PATCH] add more in app notification templates --- .../main/resources/config/notification.yml | 157 +++++++++ .../descriptionmodified/inapp/body.en.html | 304 +++++++++++++++++ .../descriptionmodified/inapp/subject.en.txt | 1 + .../inapp/body.en.html | 305 ++++++++++++++++++ .../inapp/subject.en.txt | 1 + .../descrptionfinalised/inapp/body.en.html | 304 +++++++++++++++++ .../descrptionfinalised/inapp/subject.en.txt | 1 + .../dmpdeposit/inapp/body.en.html | 304 +++++++++++++++++ .../dmpdeposit/inapp/subject.en.txt | 1 + .../dmpfinalised/inapp/body.en.html | 304 +++++++++++++++++ .../dmpfinalised/inapp/subject.en.txt | 1 + .../dmpmodified/inapp/body.en.html | 304 +++++++++++++++++ .../dmpmodified/inapp/subject.en.txt | 1 + .../inapp/body.en.html | 304 +++++++++++++++++ .../inapp/subject.en.txt | 1 + .../inapp/body.en.html | 304 +++++++++++++++++ .../inapp/subject.en.txt | 1 + 17 files changed, 2598 insertions(+) create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/body.en.html create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/subject.en.txt create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/body.en.html create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descrptionfinalised/inapp/body.en.html create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descrptionfinalised/inapp/subject.en.txt create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpdeposit/inapp/body.en.html create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpdeposit/inapp/subject.en.txt create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpfinalised/inapp/body.en.html create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpfinalised/inapp/subject.en.txt create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpmodified/inapp/body.en.html create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpmodified/inapp/subject.en.txt create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/body.en.html create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/subject.en.txt create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/body.en.html create mode 100644 dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/subject.en.txt diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/config/notification.yml b/dmp-backend/notification-service/notification-web/src/main/resources/config/notification.yml index 7ad90ce91..7192cf334 100644 --- a/dmp-backend/notification-service/notification-web/src/main/resources/config/notification.yml +++ b/dmp-backend/notification-service/notification-web/src/main/resources/config/notification.yml @@ -335,6 +335,163 @@ notification: '[{recipient}]': null priority-key: null cipher-fields: [ ] + - #dmpModified + key: 4542262A-22F8-4BAA-9DB6-1C8E70AC1DBB + subject-path: classpath:notification_templates/dmpmodified/inapp/subject.{language}.txt + subject-field-options: + mandatory: [ ] + optional: [ ] + body-path: classpath:notification_templates/dmpmodified/inapp/body.{language}.html + body-field-options: + mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ] + optional: + - key: "{recipient}" + value: + formatting: + '[{reasonName}]': null + '[{name}]': null + '[{installation-url}]': null + '[{id}]': null + '[{recipient}]': null + priority-key: null + cipher-fields: [ ] + - #dmpFinalised + key: 90DB0B46-42DE-BD89-AEBF-6F27EFEB256E + subject-path: classpath:notification_templates/dmpfinalised/inapp/subject.{language}.txt + subject-field-options: + mandatory: [ ] + optional: [ ] + body-path: classpath:notification_templates/dmpfinalised/inapp/body.{language}.html + body-field-options: + mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ] + optional: + - key: "{recipient}" + value: + formatting: + '[{reasonName}]': null + '[{name}]': null + '[{installation-url}]': null + '[{id}]': null + '[{recipient}]': null + priority-key: null + cipher-fields: [ ] + - #desriptionModified + key: 4FDBFA80-7A71-4A69-B854-67CBB70648F1 + subject-path: classpath:notification_templates/descriptionmodified/inapp/subject.{language}.txt + subject-field-options: + mandatory: [ ] + optional: [ ] + body-path: classpath:notification_templates/descriptionmodified/inapp/body.{language}.html + body-field-options: + mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ] + optional: + - key: "{recipient}" + value: + formatting: + '[{reasonName}]': null + '[{name}]': null + '[{installation-url}]': null + '[{id}]': null + '[{recipient}]': null + priority-key: null + cipher-fields: [ ] + - #descriptionFinalised + key: 33790bad-94d4-488a-8ee2-7f6295ca18ea + subject-path: classpath:notification_templates/descriptionfinalised/inapp/subject.{language}.txt + subject-field-options: + mandatory: [ ] + optional: [ ] + body-path: classpath:notification_templates/descriptionfinalised/inapp/body.{language}.html + body-field-options: + mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ] + optional: + - key: "{recipient}" + value: + formatting: + '[{reasonName}]': null + '[{name}]': null + '[{installation-url}]': null + '[{id}]': null + '[{recipient}]': null + priority-key: null + cipher-fields: [ ] + - #mergeAccountConfirmation + key: BFE68845-CB05-4C5A-A03D-29161A7C9660 + subject-path: classpath:notification_templates/mergeacountconfirmation/inapp/subject.{language}.txt + subject-field-options: + mandatory: [ ] + optional: [ ] + body-path: classpath:notification_templates/mergeacountconfirmation/inapp/body.{language}.html + body-field-options: + mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ] + optional: + - key: "{expiration_time}" + value: --- + formatting: + '[{userName}]': null + '[{installation-url}]': null + '[{confirmationToken}]': null + '[{expiration_time}]': null + priority-key: null + cipher-fields: [ ] + - #removeCredentialConfirmation + key: C9BC3F16-057E-4BBA-8A5F-36BD835E5604 + subject-path: classpath:notification_templates/removecredentialconfirmation/inapp/subject.{language}.txt + subject-field-options: + mandatory: [ "{installation-url}", "{confirmationToken}" ] + optional: [ ] + body-path: classpath:notification_templates/removecredentialconfirmation/inapp/body.{language}.html + body-field-options: + mandatory: [ ] + optional: + - key: "{email}" + value: email + - key: "{expiration_time}" + value: -- + formatting: + '[{email}]': null + '[{expiration_time}]': null + priority-key: null + cipher-fields: [ ] + - #dmpDeposit + key: 55736F7A-83AB-4190-AF43-9D031A6F9612 + subject-path: classpath:notification_templates/dmpdeposit/inapp/subject.{language}.txt + subject-field-options: + mandatory: [ ] + optional: [ ] + body-path: classpath:notification_templates/dmpdeposit/inapp/body.{language}.html + body-field-options: + mandatory: [ "{reasonName}", "{name}", "{installation-url}", "{id}" ] + optional: + - key: "{recipient}" + value: + formatting: + '[{reasonName}]': null + '[{name}]': null + '[{installation-url}]': null + '[{id}]': null + '[{recipient}]': null + priority-key: null + cipher-fields: [ ] + - #descriptionTemplateInvitation + key: 223BB607-EFA1-4CE7-99EC-4BEABFEF9A8B + subject-path: classpath:notification_templates/descriptiontemplateinvitation/inapp/subject.{language}.txt + subject-field-options: + mandatory: [ ] + optional: [ ] + body-path: classpath:notification_templates/descriptiontemplateinvitation/inapp/body.{language}.html + body-field-options: + mandatory: [ "{templateName}", "{installation-url}", "{templateID}" ] + optional: + - key: "{recipient}" + value: + formatting: + '[{templateName}]': null + '[{installation-url}]': null + '[{templateID}]': null + '[{recipient}]': null + priority-key: null + cipher-fields: [ ] template-cache: prefix: ${CACHE_DISAMBIGUATION:} key-pattern: "{prefix}:Notification_Message_InApp_Template:{key}:v0" diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/body.en.html b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/body.en.html new file mode 100644 index 000000000..7025e58bf --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/body.en.html @@ -0,0 +1,304 @@ + + + + + + Simple Transactional Email + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+

Dear {recipient},

+

{reasonName} just made changes to the Description {name}.

+ + + + + + + +
+ + + + + + +
Click here to view it.
+
+ +
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/subject.en.txt b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/subject.en.txt new file mode 100644 index 000000000..440dc3c4f --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptionmodified/inapp/subject.en.txt @@ -0,0 +1 @@ +ARGOS - Description Modified \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/body.en.html b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/body.en.html new file mode 100644 index 000000000..8c2ac8ab7 --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/body.en.html @@ -0,0 +1,305 @@ + + + + + + Simple Transactional Email + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+

Dear {recipient},

+

You have been invited to co-develop the Template {templateName}.

+

Click the button to redirect to {templateName}.

+ + + + + + + +
+ + + + + + +
{templateName}
+
+ +
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt new file mode 100644 index 000000000..f634a5493 --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descriptiontemplateinvitation/inapp/subject.en.txt @@ -0,0 +1 @@ +ARGOS - Description Template Invite \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descrptionfinalised/inapp/body.en.html b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descrptionfinalised/inapp/body.en.html new file mode 100644 index 000000000..f34f75c23 --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descrptionfinalised/inapp/body.en.html @@ -0,0 +1,304 @@ + + + + + + Simple Transactional Email + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+

Dear {recipient},

+

{reasonName} just finalised the Description {name}.

+ + + + + + + +
+ + + + + + +
Click here to view it.
+
+ +
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descrptionfinalised/inapp/subject.en.txt b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descrptionfinalised/inapp/subject.en.txt new file mode 100644 index 000000000..76e26cfec --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/descrptionfinalised/inapp/subject.en.txt @@ -0,0 +1 @@ +ARGOS - Description Finalised \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpdeposit/inapp/body.en.html b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpdeposit/inapp/body.en.html new file mode 100644 index 000000000..c80220834 --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpdeposit/inapp/body.en.html @@ -0,0 +1,304 @@ + + + + + + Simple Transactional Email + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+

Dear {recipient},

+

{reasonName} just publish the {name}.

+ + + + + + + +
+ + + + + + +
Click here to view it.
+
+ +
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpdeposit/inapp/subject.en.txt b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpdeposit/inapp/subject.en.txt new file mode 100644 index 000000000..5176c62fa --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpdeposit/inapp/subject.en.txt @@ -0,0 +1 @@ +ARGOS - Dmp Deposit \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpfinalised/inapp/body.en.html b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpfinalised/inapp/body.en.html new file mode 100644 index 000000000..3e00fce2d --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpfinalised/inapp/body.en.html @@ -0,0 +1,304 @@ + + + + + + Simple Transactional Email + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+

Dear {recipient},

+

{reasonName} just finalised the Dmp {name}.

+ + + + + + + +
+ + + + + + +
Click here to view it.
+
+ +
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpfinalised/inapp/subject.en.txt b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpfinalised/inapp/subject.en.txt new file mode 100644 index 000000000..9332be920 --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpfinalised/inapp/subject.en.txt @@ -0,0 +1 @@ +ARGOS - Dmp Finalised \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpmodified/inapp/body.en.html b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpmodified/inapp/body.en.html new file mode 100644 index 000000000..7a36dccba --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpmodified/inapp/body.en.html @@ -0,0 +1,304 @@ + + + + + + Simple Transactional Email + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+

Dear {recipient},

+

{reasonName} just made changes to the Dmp {name}.

+ + + + + + + +
+ + + + + + +
Click here to view it.
+
+ +
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpmodified/inapp/subject.en.txt b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpmodified/inapp/subject.en.txt new file mode 100644 index 000000000..cd9748bae --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/dmpmodified/inapp/subject.en.txt @@ -0,0 +1 @@ +ARGOS - Dmp Modified \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/body.en.html b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/body.en.html new file mode 100644 index 000000000..bc5bfc087 --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/body.en.html @@ -0,0 +1,304 @@ + + + + + + Simple Transactional Email + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+ OpenDMP +

User {userName} have sent you a merge Request.

+

Please confirm that you want to merge your {installation-url} account with that account. +
The link will expire in {expiration_time}.

+ + + + + + +
+ + + + + + +
Confirm Merge Request
+
+
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/subject.en.txt b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/subject.en.txt new file mode 100644 index 000000000..3c52e9249 --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/mergeacountconfirmation/inapp/subject.en.txt @@ -0,0 +1 @@ +ARGOS - Merge Account Confirmation \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/body.en.html b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/body.en.html new file mode 100644 index 000000000..a43224531 --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/body.en.html @@ -0,0 +1,304 @@ + + + + + + Simple Transactional Email + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+ OpenDMP +

You have made a request to unlink your email account in ARGOS.

+

Please confirm that you want to unlink your {email} account. +
The link will expire in {expiration_time}.

+ + + + + + +
+ + + + + + +
Confirm Unlink Request
+
+
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/subject.en.txt b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/subject.en.txt new file mode 100644 index 000000000..e957d468f --- /dev/null +++ b/dmp-backend/notification-service/notification-web/src/main/resources/notification_templates/removecredentialconfirmation/inapp/subject.en.txt @@ -0,0 +1 @@ +ARGOS - Unlink Email Confirmation \ No newline at end of file