gemcap-be-common 1.3.21 → 1.3.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,20 @@
1
+ <html lang="en">
2
+ <body>
3
+
4
+ <p>Dear ${CONTACT_NAME}</p>
5
+
6
+ <p>Thank you for applying to Black Feather! We hope we can help you with your financing needs.
7
+ For us to consider your application, you are requested to complete as much as possible of the form via the link
8
+ below.</p>
9
+
10
+ <a href="${LINK}">${LINK}</a>
11
+
12
+ <p>We look forward to receiving your due diligence information and working with you. Once we have your application
13
+ details and reviewed your information will get back to you with an answer as soon as possible.</p>
14
+
15
+ <p>Failure to provide due diligence on a timely basis will result in delays to your loan application being processed.</p>
16
+
17
+ ${signature}
18
+
19
+ </body>
20
+ </html>
@@ -0,0 +1,19 @@
1
+ <html lang="en">
2
+ <body>
3
+
4
+ <p>Dear ${CONTACT_NAME}</p>
5
+
6
+ <p>Thank you for executing the Letter of Interest! We are excited to work with you.</p>
7
+
8
+ <p>You are requested to complete as much as possible of the form via the link below.</p>
9
+
10
+ <a href="${LINK}">${LINK}</a>
11
+
12
+ <p>It is important that you provide as much information as possible. You can submit in multiple stages.</p>
13
+
14
+ <p>Failure to provide due diligence on a timely basis will result in delays to your loan application being processed.</p>
15
+
16
+ ${signature}
17
+
18
+ </body>
19
+ </html>
@@ -1,6 +1,5 @@
1
1
  <br>
2
2
  <p>Regards,</p>
3
- <br>
4
3
 
5
4
  <table>
6
5
  <tbody>
@@ -0,0 +1,20 @@
1
+ <html lang="en">
2
+ <body>
3
+
4
+ <p>Dear ${CONTACT_NAME}</p>
5
+
6
+ <p>Thank you for applying to Black Feather! We hope we can help you with your financing needs.
7
+ For us to consider your application, you are requested to complete as much as possible of the form via the link
8
+ below.</p>
9
+
10
+ <a href="${LINK}">${LINK}</a>
11
+
12
+ <p>We look forward to receiving your due diligence information and working with you. Once we have your application
13
+ details and reviewed your information will get back to you with an answer as soon as possible.</p>
14
+
15
+ <p>Failure to provide due diligence on a timely basis will result in delays to your loan application being processed.</p>
16
+
17
+ ${signature}
18
+
19
+ </body>
20
+ </html>
@@ -0,0 +1,19 @@
1
+ <html lang="en">
2
+ <body>
3
+
4
+ <p>Dear ${CONTACT_NAME}</p>
5
+
6
+ <p>Thank you for executing the Letter of Interest! We are excited to work with you.</p>
7
+
8
+ <p>You are requested to complete as much as possible of the form via the link below.</p>
9
+
10
+ <a href="${LINK}">${LINK}</a>
11
+
12
+ <p>It is important that you provide as much information as possible. You can submit in multiple stages.</p>
13
+
14
+ <p>Failure to provide due diligence on a timely basis will result in delays to your loan application being processed.</p>
15
+
16
+ ${signature}
17
+
18
+ </body>
19
+ </html>
@@ -1,6 +1,5 @@
1
1
  <br>
2
2
  <p>Regards,</p>
3
- <br>
4
3
 
5
4
  <table>
6
5
  <tbody>
@@ -87,7 +87,7 @@ export declare class NodemailerService {
87
87
  sendProspectForm(email: Partial<IEmail>, replacements: {
88
88
  link: string;
89
89
  contactName: string;
90
- }): Promise<void>;
90
+ }, stage: 'one' | 'two'): Promise<void>;
91
91
  sendProspectReminder(email: Partial<IEmail>, replacements: {
92
92
  link: string;
93
93
  contactName: string;
@@ -641,8 +641,9 @@ class NodemailerService {
641
641
  this.sentryService.catchErrorBySentry(null, e);
642
642
  }
643
643
  }
644
- async sendProspectForm(email, replacements) {
645
- const textPath = path_1.default.resolve(__dirname, '../public/emails', 'prospect-form.html');
644
+ async sendProspectForm(email, replacements, stage) {
645
+ const stageTemplate = stage === 'one' ? 'prospect-form-one' : 'prospect-form-two';
646
+ const textPath = path_1.default.resolve(__dirname, '../public/emails', `${stageTemplate}.html`);
646
647
  const text = await fs.promises.readFile(textPath, 'utf8');
647
648
  const signature = await this.getSignatureAsync(ESenderType.NEW_BUSINESS);
648
649
  const replacedData = text
@@ -724,8 +724,9 @@ export class NodemailerService {
724
724
  }
725
725
  }
726
726
 
727
- async sendProspectForm(email: Partial<IEmail>, replacements: { link: string, contactName: string }) {
728
- const textPath = path.resolve(__dirname, '../public/emails', 'prospect-form.html');
727
+ async sendProspectForm(email: Partial<IEmail>, replacements: { link: string, contactName: string }, stage: 'one' | 'two') {
728
+ const stageTemplate = stage === 'one' ? 'prospect-form-one' : 'prospect-form-two';
729
+ const textPath = path.resolve(__dirname, '../public/emails', `${stageTemplate}.html`);
729
730
  const text = await fs.promises.readFile(textPath, 'utf8');
730
731
  const signature = await this.getSignatureAsync(ESenderType.NEW_BUSINESS);
731
732
  const replacedData = text