email - unused stuff removed
MODIFY
src/notification/email/EMailNotificationTask.ts
src/notification/email/EMailNotificationTask.ts
@@ -361,7 +361,6 @@ export default class EMailNotificationTask implements NotificationTask {
}
private async sendSmartEmail(prefix: string, context: any, recipient: User, tenant: Tenant, severity: NotificationSeverity, optionalComponents: string[] = []): Promise<EmailNotificationMessage> {
- context.appUrl = context.appUrl || 'https://open-e-mobility.io/';
// Do not confuse the recipient (the one receiving the mail) and the user (within the context) which may be the subject of the mail
context.recipientName = recipient.firstName || recipient.name ;
context.recipientEmail = recipient.email ;

MODIFY
src/types/UserNotifications.ts
src/types/UserNotifications.ts
@@ -110,12 +110,7 @@ export interface EmailNotificationMessage {
export interface BaseNotification {
tenantLogoURL?: string;
buttonUrl?: string;
- appUrl?: string;
tableValues?: string[];
- chargeBoxIDsNumber?: number;
- accountStatus?: string;
- accountStatus2?: string;
- email?: string;
recipientName?: string;
recipientEmail?: string;
}
@@ -194,6 +189,7 @@ export interface RequestPasswordNotification extends BaseNotification {
export interface UserAccountStatusChangedNotification extends BaseNotification {
user: User;
evseDashboardURL: string;
+ accountStatus?: string;
}
export interface NewRegisteredUserNotification extends BaseNotification {
@@ -285,6 +281,7 @@ export interface PreparingSessionNotStartedNotification extends BaseNotification
export interface OfflineChargingStationNotification extends BaseNotification {
chargeBoxIDs: string;
evseDashboardURL: string;
+ chargeBoxIDsNumber?: number;
}
export interface BillingUserSynchronizationFailedNotification extends BaseNotification {
@@ -395,6 +392,7 @@ export interface AdminAccountVerificationNotification extends BaseNotification {
user: User;
evseDashboardURL: string;
evseUserToVerifyURL: string;
+ email?: string;
}
export interface UserCreatePassword extends BaseNotification {

MODIFY
test/api/EmailTest.ts
test/api/EmailTest.ts
@@ -28,7 +28,7 @@ function checkForMissing(html: string): string | null {
}
describe('Initialization', () => {
- jest.setTimeout(60000);
+ jest.setTimeout(600000);
beforeAll(async () => {
global.database = new MongoDBStorage(config.get('storage'));

email - unused stuff removed