@blackcode_sa/metaestetics-api 1.14.65 → 1.14.71
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/admin/index.d.mts +203 -19
- package/dist/admin/index.d.ts +203 -19
- package/dist/admin/index.js +408 -2
- package/dist/admin/index.mjs +407 -2
- package/package.json +1 -1
- package/src/admin/aggregation/appointment/appointment.aggregation.service.ts +19 -2
- package/src/admin/index.ts +1 -1
- package/src/admin/mailing/clinicWelcome/clinicWelcome.mailing.ts +292 -0
- package/src/admin/mailing/clinicWelcome/index.ts +1 -0
- package/src/admin/mailing/clinicWelcome/templates/welcome.template.ts +225 -0
- package/src/admin/mailing/index.ts +1 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { BaseMailingService } from "../base.mailing.service";
|
|
2
|
+
import { clinicWelcomeTemplate } from "./templates/welcome.template";
|
|
3
|
+
import { Logger } from "../../logger";
|
|
4
|
+
import { ClinicGroup, CLINIC_GROUPS_COLLECTION } from "../../../types/clinic";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Minimal interface for the mailgun.js client
|
|
8
|
+
*/
|
|
9
|
+
interface NewMailgunMessagesAPI {
|
|
10
|
+
create(domain: string, data: any): Promise<any>;
|
|
11
|
+
}
|
|
12
|
+
interface NewMailgunClient {
|
|
13
|
+
messages: NewMailgunMessagesAPI;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Interface for clinic welcome email data
|
|
18
|
+
*/
|
|
19
|
+
export interface ClinicWelcomeEmailData {
|
|
20
|
+
/** Admin information */
|
|
21
|
+
admin: {
|
|
22
|
+
name: string;
|
|
23
|
+
email: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** Clinic group information */
|
|
27
|
+
clinicGroup: {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** Config options */
|
|
33
|
+
options?: {
|
|
34
|
+
dashboardUrl?: string;
|
|
35
|
+
supportEmail?: string;
|
|
36
|
+
customSubject?: string;
|
|
37
|
+
fromAddress?: string;
|
|
38
|
+
mailgunDomain?: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Service for sending clinic welcome/confirmation emails
|
|
44
|
+
* Sent to clinic admins after successful signup
|
|
45
|
+
*/
|
|
46
|
+
export class ClinicWelcomeMailingService extends BaseMailingService {
|
|
47
|
+
private readonly DEFAULT_DASHBOARD_URL =
|
|
48
|
+
"https://clinic.metaesthetics.net/dashboard";
|
|
49
|
+
private readonly DEFAULT_SUPPORT_EMAIL = "support@metaesthetics.net";
|
|
50
|
+
private readonly DEFAULT_SUBJECT =
|
|
51
|
+
"Welcome to MetaEsthetics - Your Clinic Registration is Complete";
|
|
52
|
+
private readonly DEFAULT_MAILGUN_DOMAIN = "mg.metaesthetics.net";
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructor for ClinicWelcomeMailingService
|
|
56
|
+
* @param firestore - Firestore instance provided by the caller
|
|
57
|
+
* @param mailgunClient - Mailgun client instance (mailgun.js v10+) provided by the caller
|
|
58
|
+
*/
|
|
59
|
+
constructor(
|
|
60
|
+
firestore: FirebaseFirestore.Firestore,
|
|
61
|
+
mailgunClient: NewMailgunClient
|
|
62
|
+
) {
|
|
63
|
+
super(firestore, mailgunClient);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Sends a clinic welcome email
|
|
68
|
+
* @param data - The clinic welcome email data
|
|
69
|
+
* @returns Promise resolved when email is sent
|
|
70
|
+
*/
|
|
71
|
+
async sendWelcomeEmail(data: ClinicWelcomeEmailData): Promise<any> {
|
|
72
|
+
try {
|
|
73
|
+
Logger.info(
|
|
74
|
+
"[ClinicWelcomeMailingService] Sending welcome email to",
|
|
75
|
+
data.admin.email
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
// Get current date for registration date
|
|
79
|
+
const registrationDate = new Date().toLocaleDateString("en-US", {
|
|
80
|
+
weekday: "long",
|
|
81
|
+
year: "numeric",
|
|
82
|
+
month: "long",
|
|
83
|
+
day: "numeric",
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// Dashboard URL
|
|
87
|
+
const dashboardUrl =
|
|
88
|
+
data.options?.dashboardUrl || this.DEFAULT_DASHBOARD_URL;
|
|
89
|
+
|
|
90
|
+
// Support email
|
|
91
|
+
const supportEmail =
|
|
92
|
+
data.options?.supportEmail || this.DEFAULT_SUPPORT_EMAIL;
|
|
93
|
+
|
|
94
|
+
// Subject line
|
|
95
|
+
const subject = data.options?.customSubject || this.DEFAULT_SUBJECT;
|
|
96
|
+
|
|
97
|
+
// Determine 'from' address
|
|
98
|
+
const fromAddress =
|
|
99
|
+
data.options?.fromAddress ||
|
|
100
|
+
`MetaEsthetics <no-reply@${
|
|
101
|
+
data.options?.mailgunDomain || this.DEFAULT_MAILGUN_DOMAIN
|
|
102
|
+
}>`;
|
|
103
|
+
|
|
104
|
+
// Current year for copyright
|
|
105
|
+
const currentYear = new Date().getFullYear().toString();
|
|
106
|
+
|
|
107
|
+
// Prepare template variables
|
|
108
|
+
const templateVariables = {
|
|
109
|
+
adminName: data.admin.name,
|
|
110
|
+
adminEmail: data.admin.email,
|
|
111
|
+
clinicGroupName: data.clinicGroup.name,
|
|
112
|
+
registrationDate,
|
|
113
|
+
dashboardUrl,
|
|
114
|
+
supportEmail,
|
|
115
|
+
currentYear,
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
// Debug log for template variables
|
|
119
|
+
Logger.info("[ClinicWelcomeMailingService] Template variables:", {
|
|
120
|
+
adminName: templateVariables.adminName,
|
|
121
|
+
adminEmail: templateVariables.adminEmail,
|
|
122
|
+
clinicGroupName: templateVariables.clinicGroupName,
|
|
123
|
+
dashboardUrl: templateVariables.dashboardUrl,
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
// Render HTML email
|
|
127
|
+
const html = this.renderTemplate(clinicWelcomeTemplate, templateVariables);
|
|
128
|
+
|
|
129
|
+
// Data for the sendEmail method
|
|
130
|
+
const mailgunSendData = {
|
|
131
|
+
to: data.admin.email,
|
|
132
|
+
from: fromAddress,
|
|
133
|
+
subject,
|
|
134
|
+
html,
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// Determine the domain to use for sending
|
|
138
|
+
const domainToSendFrom =
|
|
139
|
+
data.options?.mailgunDomain || this.DEFAULT_MAILGUN_DOMAIN;
|
|
140
|
+
|
|
141
|
+
Logger.info("[ClinicWelcomeMailingService] Sending email with data:", {
|
|
142
|
+
domain: domainToSendFrom,
|
|
143
|
+
to: mailgunSendData.to,
|
|
144
|
+
from: mailgunSendData.from,
|
|
145
|
+
subject: mailgunSendData.subject,
|
|
146
|
+
hasHtml: !!mailgunSendData.html,
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// Call the sendEmail method from BaseMailingService
|
|
150
|
+
const result = await this.sendEmail(domainToSendFrom, mailgunSendData);
|
|
151
|
+
|
|
152
|
+
// Log success
|
|
153
|
+
await this.logEmailAttempt(
|
|
154
|
+
{
|
|
155
|
+
to: data.admin.email,
|
|
156
|
+
subject,
|
|
157
|
+
templateName: "clinic_welcome",
|
|
158
|
+
},
|
|
159
|
+
true
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
return result;
|
|
163
|
+
} catch (error: any) {
|
|
164
|
+
Logger.error(
|
|
165
|
+
"[ClinicWelcomeMailingService] Error sending welcome email:",
|
|
166
|
+
{
|
|
167
|
+
errorMessage: error.message,
|
|
168
|
+
errorDetails: error.details,
|
|
169
|
+
errorStatus: error.status,
|
|
170
|
+
stack: error.stack,
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
// Log failure
|
|
175
|
+
await this.logEmailAttempt(
|
|
176
|
+
{
|
|
177
|
+
to: data.admin.email,
|
|
178
|
+
subject: data.options?.customSubject || this.DEFAULT_SUBJECT,
|
|
179
|
+
templateName: "clinic_welcome",
|
|
180
|
+
},
|
|
181
|
+
false,
|
|
182
|
+
error
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
throw error;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Handles the clinic group creation event from Cloud Functions.
|
|
191
|
+
* Fetches necessary data and sends the welcome email to the admin.
|
|
192
|
+
* @param clinicGroupData - The clinic group data including id
|
|
193
|
+
* @param mailgunConfig - Mailgun configuration (from, domain)
|
|
194
|
+
* @returns Promise resolved when the email is sent
|
|
195
|
+
*/
|
|
196
|
+
async handleClinicGroupCreationEvent(
|
|
197
|
+
clinicGroupData: ClinicGroup & { id: string },
|
|
198
|
+
mailgunConfig: {
|
|
199
|
+
fromAddress: string;
|
|
200
|
+
domain: string;
|
|
201
|
+
dashboardUrl?: string;
|
|
202
|
+
supportEmail?: string;
|
|
203
|
+
}
|
|
204
|
+
): Promise<void> {
|
|
205
|
+
try {
|
|
206
|
+
Logger.info(
|
|
207
|
+
"[ClinicWelcomeMailingService] Handling clinic group creation event for:",
|
|
208
|
+
clinicGroupData.id
|
|
209
|
+
);
|
|
210
|
+
|
|
211
|
+
// Validate clinic group data
|
|
212
|
+
if (!clinicGroupData || !clinicGroupData.id) {
|
|
213
|
+
throw new Error(
|
|
214
|
+
`Invalid clinic group data: Missing required properties.`
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Validate contact person
|
|
219
|
+
if (!clinicGroupData.contactPerson) {
|
|
220
|
+
throw new Error(
|
|
221
|
+
`Clinic group ${clinicGroupData.id} is missing contactPerson`
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (!clinicGroupData.contactPerson.email) {
|
|
226
|
+
throw new Error(
|
|
227
|
+
`Clinic group ${clinicGroupData.id} is missing admin email`
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// Get admin name from contact person
|
|
232
|
+
const adminName = `${clinicGroupData.contactPerson.firstName || ""} ${
|
|
233
|
+
clinicGroupData.contactPerson.lastName || ""
|
|
234
|
+
}`.trim() || "Clinic Admin";
|
|
235
|
+
|
|
236
|
+
const adminEmail = clinicGroupData.contactPerson.email;
|
|
237
|
+
|
|
238
|
+
Logger.info(
|
|
239
|
+
`[ClinicWelcomeMailingService] Sending welcome email to admin: ${adminName} (${adminEmail})`
|
|
240
|
+
);
|
|
241
|
+
|
|
242
|
+
// Validate fromAddress
|
|
243
|
+
if (!mailgunConfig.fromAddress) {
|
|
244
|
+
Logger.warn(
|
|
245
|
+
"[ClinicWelcomeMailingService] No fromAddress provided, using default"
|
|
246
|
+
);
|
|
247
|
+
mailgunConfig.fromAddress = `MetaEsthetics <no-reply@${this.DEFAULT_MAILGUN_DOMAIN}>`;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// Prepare email data
|
|
251
|
+
const emailData: ClinicWelcomeEmailData = {
|
|
252
|
+
admin: {
|
|
253
|
+
name: adminName,
|
|
254
|
+
email: adminEmail,
|
|
255
|
+
},
|
|
256
|
+
clinicGroup: {
|
|
257
|
+
id: clinicGroupData.id,
|
|
258
|
+
name: clinicGroupData.name || "Your Clinic",
|
|
259
|
+
},
|
|
260
|
+
options: {
|
|
261
|
+
fromAddress: mailgunConfig.fromAddress,
|
|
262
|
+
mailgunDomain: mailgunConfig.domain,
|
|
263
|
+
dashboardUrl: mailgunConfig.dashboardUrl,
|
|
264
|
+
supportEmail: mailgunConfig.supportEmail,
|
|
265
|
+
},
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
Logger.info(
|
|
269
|
+
"[ClinicWelcomeMailingService] Email data prepared, sending welcome email"
|
|
270
|
+
);
|
|
271
|
+
|
|
272
|
+
// Send the welcome email
|
|
273
|
+
await this.sendWelcomeEmail(emailData);
|
|
274
|
+
|
|
275
|
+
Logger.info(
|
|
276
|
+
"[ClinicWelcomeMailingService] Welcome email sent successfully"
|
|
277
|
+
);
|
|
278
|
+
} catch (error: any) {
|
|
279
|
+
Logger.error(
|
|
280
|
+
"[ClinicWelcomeMailingService] Error handling clinic group creation event:",
|
|
281
|
+
{
|
|
282
|
+
errorMessage: error.message,
|
|
283
|
+
errorDetails: error.details,
|
|
284
|
+
errorStatus: error.status,
|
|
285
|
+
stack: error.stack,
|
|
286
|
+
clinicGroupId: clinicGroupData?.id,
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
throw error;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./clinicWelcome.mailing";
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTML email template for clinic welcome/confirmation email
|
|
3
|
+
* Sent to clinic admins after successful signup
|
|
4
|
+
* Styled to match the appointment email templates
|
|
5
|
+
*/
|
|
6
|
+
export const clinicWelcomeTemplate = `
|
|
7
|
+
<!DOCTYPE html>
|
|
8
|
+
<html lang="en">
|
|
9
|
+
<head>
|
|
10
|
+
<meta charset="UTF-8">
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
12
|
+
<title>Welcome to MetaEsthetics</title>
|
|
13
|
+
<!--[if mso]>
|
|
14
|
+
<noscript>
|
|
15
|
+
<xml>
|
|
16
|
+
<o:OfficeDocumentSettings>
|
|
17
|
+
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
18
|
+
</o:OfficeDocumentSettings>
|
|
19
|
+
</xml>
|
|
20
|
+
</noscript>
|
|
21
|
+
<![endif]-->
|
|
22
|
+
</head>
|
|
23
|
+
<body style="margin: 0; padding: 0; background-color: #f8f6f5; font-family: Georgia, 'Times New Roman', serif;">
|
|
24
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color: #f8f6f5;">
|
|
25
|
+
<tr>
|
|
26
|
+
<td align="center" style="padding: 40px 20px;">
|
|
27
|
+
<table role="presentation" width="600" cellspacing="0" cellpadding="0" border="0" style="max-width: 600px; background-color: #ffffff; border-radius: 2px; box-shadow: 0 1px 3px rgba(103, 87, 74, 0.08);">
|
|
28
|
+
|
|
29
|
+
<!-- Header -->
|
|
30
|
+
<tr>
|
|
31
|
+
<td style="padding: 48px 48px 32px 48px; border-bottom: 1px solid #f0ebe6;">
|
|
32
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
33
|
+
<tr>
|
|
34
|
+
<td>
|
|
35
|
+
<h1 style="margin: 0; font-size: 24px; font-weight: 400; color: #67574A; letter-spacing: 2px; text-transform: uppercase; font-family: Georgia, 'Times New Roman', serif;">MetaEsthetics</h1>
|
|
36
|
+
</td>
|
|
37
|
+
</tr>
|
|
38
|
+
</table>
|
|
39
|
+
</td>
|
|
40
|
+
</tr>
|
|
41
|
+
|
|
42
|
+
<!-- Welcome Banner -->
|
|
43
|
+
<tr>
|
|
44
|
+
<td style="padding: 0;">
|
|
45
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="background-color: #00BB38;">
|
|
46
|
+
<tr>
|
|
47
|
+
<td style="padding: 20px 48px;">
|
|
48
|
+
<p style="margin: 0; font-size: 13px; font-weight: 600; color: #ffffff; letter-spacing: 1.5px; text-transform: uppercase; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Welcome to MetaEsthetics</p>
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
</table>
|
|
52
|
+
</td>
|
|
53
|
+
</tr>
|
|
54
|
+
|
|
55
|
+
<!-- Main Content -->
|
|
56
|
+
<tr>
|
|
57
|
+
<td style="padding: 40px 48px;">
|
|
58
|
+
|
|
59
|
+
<!-- Greeting -->
|
|
60
|
+
<p style="margin: 0 0 24px 0; font-size: 17px; color: #333333; line-height: 1.6; font-family: Georgia, 'Times New Roman', serif;">
|
|
61
|
+
Dear {{adminName}},
|
|
62
|
+
</p>
|
|
63
|
+
|
|
64
|
+
<p style="margin: 0 0 32px 0; font-size: 16px; color: #555555; line-height: 1.7; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">
|
|
65
|
+
Thank you for registering <strong style="color: #67574A;">{{clinicGroupName}}</strong> with MetaEsthetics. Your account has been successfully created and you're now ready to start managing your aesthetic practice.
|
|
66
|
+
</p>
|
|
67
|
+
|
|
68
|
+
<!-- Account Details Card -->
|
|
69
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 32px; background-color: #faf9f7; border-left: 3px solid #00BB38;">
|
|
70
|
+
<tr>
|
|
71
|
+
<td style="padding: 24px;">
|
|
72
|
+
<p style="margin: 0 0 16px 0; font-size: 12px; font-weight: 600; color: #868686; letter-spacing: 1px; text-transform: uppercase; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Account Details</p>
|
|
73
|
+
|
|
74
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
75
|
+
<tr>
|
|
76
|
+
<td style="padding-bottom: 12px;">
|
|
77
|
+
<p style="margin: 0 0 2px 0; font-size: 11px; color: #868686; text-transform: uppercase; letter-spacing: 0.5px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Clinic Group</p>
|
|
78
|
+
<p style="margin: 0; font-size: 15px; color: #67574A; font-weight: 500; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">{{clinicGroupName}}</p>
|
|
79
|
+
</td>
|
|
80
|
+
</tr>
|
|
81
|
+
<tr>
|
|
82
|
+
<td style="padding-bottom: 12px;">
|
|
83
|
+
<p style="margin: 0 0 2px 0; font-size: 11px; color: #868686; text-transform: uppercase; letter-spacing: 0.5px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Admin Email</p>
|
|
84
|
+
<p style="margin: 0; font-size: 15px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">{{adminEmail}}</p>
|
|
85
|
+
</td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tr>
|
|
88
|
+
<td>
|
|
89
|
+
<p style="margin: 0 0 2px 0; font-size: 11px; color: #868686; text-transform: uppercase; letter-spacing: 0.5px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Registration Date</p>
|
|
90
|
+
<p style="margin: 0; font-size: 15px; color: #333333; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">{{registrationDate}}</p>
|
|
91
|
+
</td>
|
|
92
|
+
</tr>
|
|
93
|
+
</table>
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
96
|
+
</table>
|
|
97
|
+
|
|
98
|
+
<!-- Divider -->
|
|
99
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 32px;">
|
|
100
|
+
<tr>
|
|
101
|
+
<td style="height: 1px; background-color: #e8e4df;"></td>
|
|
102
|
+
</tr>
|
|
103
|
+
</table>
|
|
104
|
+
|
|
105
|
+
<!-- Getting Started Section -->
|
|
106
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 32px;">
|
|
107
|
+
<tr>
|
|
108
|
+
<td>
|
|
109
|
+
<p style="margin: 0 0 20px 0; font-size: 14px; font-weight: 600; color: #67574A; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Getting Started</p>
|
|
110
|
+
</td>
|
|
111
|
+
</tr>
|
|
112
|
+
</table>
|
|
113
|
+
|
|
114
|
+
<!-- Step 1 -->
|
|
115
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 16px;">
|
|
116
|
+
<tr>
|
|
117
|
+
<td style="padding: 16px 20px; background-color: #faf9f7; border-left: 3px solid #a48a76;">
|
|
118
|
+
<p style="margin: 0 0 4px 0; font-size: 11px; font-weight: 600; color: #a48a76; letter-spacing: 1px; text-transform: uppercase; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Step 1</p>
|
|
119
|
+
<p style="margin: 0 0 4px 0; font-size: 15px; color: #333333; font-weight: 500; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Complete Your Profile</p>
|
|
120
|
+
<p style="margin: 0; font-size: 14px; color: #555555; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Add your clinic details, working hours, and upload photos to attract patients.</p>
|
|
121
|
+
</td>
|
|
122
|
+
</tr>
|
|
123
|
+
</table>
|
|
124
|
+
|
|
125
|
+
<!-- Step 2 -->
|
|
126
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 16px;">
|
|
127
|
+
<tr>
|
|
128
|
+
<td style="padding: 16px 20px; background-color: #faf9f7; border-left: 3px solid #a48a76;">
|
|
129
|
+
<p style="margin: 0 0 4px 0; font-size: 11px; font-weight: 600; color: #a48a76; letter-spacing: 1px; text-transform: uppercase; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Step 2</p>
|
|
130
|
+
<p style="margin: 0 0 4px 0; font-size: 15px; color: #333333; font-weight: 500; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Add Your Team</p>
|
|
131
|
+
<p style="margin: 0; font-size: 14px; color: #555555; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Invite practitioners and staff members to join your clinic.</p>
|
|
132
|
+
</td>
|
|
133
|
+
</tr>
|
|
134
|
+
</table>
|
|
135
|
+
|
|
136
|
+
<!-- Step 3 -->
|
|
137
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 16px;">
|
|
138
|
+
<tr>
|
|
139
|
+
<td style="padding: 16px 20px; background-color: #faf9f7; border-left: 3px solid #a48a76;">
|
|
140
|
+
<p style="margin: 0 0 4px 0; font-size: 11px; font-weight: 600; color: #a48a76; letter-spacing: 1px; text-transform: uppercase; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Step 3</p>
|
|
141
|
+
<p style="margin: 0 0 4px 0; font-size: 15px; color: #333333; font-weight: 500; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Set Up Services</p>
|
|
142
|
+
<p style="margin: 0; font-size: 14px; color: #555555; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Configure your procedures, pricing, and availability for bookings.</p>
|
|
143
|
+
</td>
|
|
144
|
+
</tr>
|
|
145
|
+
</table>
|
|
146
|
+
|
|
147
|
+
<!-- Step 4 -->
|
|
148
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 32px;">
|
|
149
|
+
<tr>
|
|
150
|
+
<td style="padding: 16px 20px; background-color: #f0faf4; border-left: 3px solid #00BB38;">
|
|
151
|
+
<p style="margin: 0 0 4px 0; font-size: 11px; font-weight: 600; color: #00BB38; letter-spacing: 1px; text-transform: uppercase; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Step 4</p>
|
|
152
|
+
<p style="margin: 0 0 4px 0; font-size: 15px; color: #333333; font-weight: 500; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Start Accepting Patients</p>
|
|
153
|
+
<p style="margin: 0; font-size: 14px; color: #555555; line-height: 1.5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Begin managing appointments and growing your practice.</p>
|
|
154
|
+
</td>
|
|
155
|
+
</tr>
|
|
156
|
+
</table>
|
|
157
|
+
|
|
158
|
+
<!-- CTA Button -->
|
|
159
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 32px;">
|
|
160
|
+
<tr>
|
|
161
|
+
<td align="center">
|
|
162
|
+
<a href="{{dashboardUrl}}" style="display: inline-block; background-color: #67574A; color: #ffffff; text-decoration: none; padding: 14px 32px; border-radius: 4px; font-size: 14px; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: 0.5px;">Go to Dashboard</a>
|
|
163
|
+
</td>
|
|
164
|
+
</tr>
|
|
165
|
+
</table>
|
|
166
|
+
|
|
167
|
+
<!-- Divider -->
|
|
168
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 32px;">
|
|
169
|
+
<tr>
|
|
170
|
+
<td style="height: 1px; background-color: #e8e4df;"></td>
|
|
171
|
+
</tr>
|
|
172
|
+
</table>
|
|
173
|
+
|
|
174
|
+
<!-- Support Info -->
|
|
175
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-bottom: 24px;">
|
|
176
|
+
<tr>
|
|
177
|
+
<td style="padding: 20px 24px; background-color: #faf9f7; border-left: 3px solid #a48a76;">
|
|
178
|
+
<p style="margin: 0 0 8px 0; font-size: 13px; font-weight: 600; color: #67574A; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Need Help?</p>
|
|
179
|
+
<p style="margin: 0; font-size: 14px; color: #555555; line-height: 1.6; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">
|
|
180
|
+
Our support team is here to help you get started. Contact us at <a href="mailto:{{supportEmail}}" style="color: #a48a76; text-decoration: none;">{{supportEmail}}</a>
|
|
181
|
+
</p>
|
|
182
|
+
</td>
|
|
183
|
+
</tr>
|
|
184
|
+
</table>
|
|
185
|
+
|
|
186
|
+
<!-- Thank You -->
|
|
187
|
+
<p style="margin: 0; font-size: 14px; color: #868686; line-height: 1.7; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">
|
|
188
|
+
Thank you for choosing MetaEsthetics. We look forward to supporting your practice.
|
|
189
|
+
</p>
|
|
190
|
+
|
|
191
|
+
</td>
|
|
192
|
+
</tr>
|
|
193
|
+
|
|
194
|
+
<!-- Footer -->
|
|
195
|
+
<tr>
|
|
196
|
+
<td style="padding: 32px 48px; background-color: #faf9f7; border-top: 1px solid #f0ebe6;">
|
|
197
|
+
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0">
|
|
198
|
+
<tr>
|
|
199
|
+
<td>
|
|
200
|
+
<p style="margin: 0 0 8px 0; font-size: 14px; font-weight: 500; color: #67574A; font-family: Georgia, 'Times New Roman', serif;">MetaEsthetics</p>
|
|
201
|
+
<p style="margin: 0 0 16px 0; font-size: 13px; color: #868686; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">Premium Aesthetic Services Platform</p>
|
|
202
|
+
<p style="margin: 0; font-size: 11px; color: #aaaaaa; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">This is an automated message from MetaEsthetics. Please do not reply directly to this email.</p>
|
|
203
|
+
</td>
|
|
204
|
+
</tr>
|
|
205
|
+
</table>
|
|
206
|
+
</td>
|
|
207
|
+
</tr>
|
|
208
|
+
|
|
209
|
+
</table>
|
|
210
|
+
|
|
211
|
+
<!-- Copyright -->
|
|
212
|
+
<table role="presentation" width="600" cellspacing="0" cellpadding="0" border="0" style="max-width: 600px;">
|
|
213
|
+
<tr>
|
|
214
|
+
<td style="padding: 24px 48px; text-align: center;">
|
|
215
|
+
<p style="margin: 0; font-size: 11px; color: #aaaaaa; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;">© {{currentYear}} MetaEsthetics. All rights reserved.</p>
|
|
216
|
+
</td>
|
|
217
|
+
</tr>
|
|
218
|
+
</table>
|
|
219
|
+
|
|
220
|
+
</td>
|
|
221
|
+
</tr>
|
|
222
|
+
</table>
|
|
223
|
+
</body>
|
|
224
|
+
</html>
|
|
225
|
+
`;
|