@svkruik/sk-dispatch-connector 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,7 +7,8 @@ const path_1 = require("path");
7
7
  const mailSubjectLookup = {
8
8
  "2fa-code": "Your 2FA Verification Code",
9
9
  "new-guest-login": "New Guest Login Notification",
10
- "new-login": "New Login Alert"
10
+ "new-login": "New Login Alert",
11
+ "magic-link-login": "Your Link for Login"
11
12
  };
12
13
  /**
13
14
  * Sends an email using the Dispatch service.
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "amqp",
9
9
  "rabbitmq"
10
10
  ],
11
- "version": "0.0.2",
11
+ "version": "0.0.3",
12
12
  "author": "Stefan Kruik",
13
13
  "repository": {
14
14
  "type": "git",
package/types.d.ts CHANGED
@@ -7,7 +7,7 @@ export function sendMail<T extends validFileNames>(
7
7
 
8
8
  // Types
9
9
  export type validProtocols = "amqp" | "http";
10
- export type validFileNames = "2fa-code" | "new-guest-login" | "new-login"
10
+ export type validFileNames = "2fa-code" | "new-guest-login" | "new-login" | "magic-link-login";
11
11
  export type ReplacementMap = {
12
12
  "2fa-code": Array<
13
13
  { key: "firstName"; value: string, },
@@ -20,6 +20,10 @@ export type ReplacementMap = {
20
20
  "new-login": Array<
21
21
  { key: "firstName"; value: string, },
22
22
  { key: "platformName"; value: string }>,
23
+ "magic-link-login": Array<
24
+ { key: "firstName"; value: string, },
25
+ { key: "platformName"; value: string },
26
+ { key: "loginLink"; value: string }>,
23
27
  };
24
28
 
25
29
  export type MailDetails<T extends validFileNames> = {