From 1eaf6815049ad3344fa602124633db49c92caf73 Mon Sep 17 00:00:00 2001 From: amentis Date: Thu, 20 Jun 2024 17:13:24 +0300 Subject: [PATCH] add tenant specific invitation user notification --- .../resources/config/notification-devel.yml | 26 ++ .../email/body.en.html | 304 ++++++++++++++++++ .../email/subject.en.txt | 1 + 3 files changed, 331 insertions(+) create mode 100644 notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationuser/email/body.en.html create mode 100644 notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationuser/email/subject.en.txt diff --git a/notification-service/notification-web/src/main/resources/config/notification-devel.yml b/notification-service/notification-web/src/main/resources/config/notification-devel.yml index 5c3907265..279b00eaf 100644 --- a/notification-service/notification-web/src/main/resources/config/notification-devel.yml +++ b/notification-service/notification-web/src/main/resources/config/notification-devel.yml @@ -48,6 +48,9 @@ notification: - #publicContactSupportType type: B542B606-ACC6-4629-ADEF-4D8EE2F01222 contacts: [ email ] + - #tenantSpecificInvitationUserType + type: 497dada5-eccc-4bc0-9e0b-63e22b4eb0be + contacts: [ email ] message: email: flows: @@ -386,6 +389,29 @@ notification: bcc-mode: 0 allow-attachments: false cipher-fields: [ ] + - #tenantSpecificInvitationUserType + key: 497dada5-eccc-4bc0-9e0b-63e22b4eb0be + subject-path: classpath:notification_templates/tenantspecificinvitationuser/email/subject.{language}.txt + subject-field-options: + mandatory: [ ] + optional: [ ] + body-path: classpath:notification_templates/tenantspecificinvitationuser/email/body.{language}.html + body-field-options: + mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}", "{tenantName}" ] + optional: + - key: "{expiration_time}" + value: --- + formatting: + '[{userName}]': null + '[{tenantName}]': null + '[{installation-url}]': null + '[{expiration_time}]': null + cc: [ ] + cc-mode: 0 + bcc: [ ] + bcc-mode: 0 + allow-attachments: false + cipher-fields: [ ] template-cache: prefix: ${CACHE_DISAMBIGUATION:} key-pattern: "{prefix}:Notification_Message_Email_Template:{key}:v0" diff --git a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationuser/email/body.en.html b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationuser/email/body.en.html new file mode 100644 index 000000000..a5ff85526 --- /dev/null +++ b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationuser/email/body.en.html @@ -0,0 +1,304 @@ + + + + + + OpenCDMP Notification + + + + + + + + + +
  +
+ + + This is preheader text. Some clients will show this text as a preview. + + + + + + + + +
+ + + + +
+ OpenCDMP +

User {userName} invited you to join the {tenantName}.

+

Please confirm that you want to continue. +
The link will expire in {expiration_time}.

+ + + + + + +
+ + + + + + +
Confirm Tenant Invitation
+
+
+
+ + + + + + +
+
 
+ + \ No newline at end of file diff --git a/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationuser/email/subject.en.txt b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationuser/email/subject.en.txt new file mode 100644 index 000000000..af89e2391 --- /dev/null +++ b/notification-service/notification-web/src/main/resources/notification_templates/tenantspecificinvitationuser/email/subject.en.txt @@ -0,0 +1 @@ +OpenCDMP - Tenant Invitation \ No newline at end of file