KitaPlatzZentrale / kpz

1 stars 0 forks source link

Prepare Emails for Lambda #70

Closed hannogrimm closed 1 year ago

hannogrimm commented 1 year ago

@Darjusch Let's work on this branch to sync on potential changes to the email service <-> mongodb communication.

The email service works as follows:

These are the current interfaces for the Event JSON's:

sendSingleKitaNotificationsEmail

{
  to: string; // email recipient
  props: {
    kitaName: string; // name of the kita the notifications are turned on for, e.g. "Kita Rosengarten"
    consentId: string; // consent to send email (row uuid)
  };
}

sendAreaNotificationsEmail

{
  to: string; // email recipient
  props: {
   areaDescription: string; // description of the area notifications are turned on for, e.g. "Kollwitzkiez"
   consentId: string;
   }
}

sendServiceSignupEmail

{
  to: string; // email recipient
  props: {
   consentId: string;
   }
}

These properties are required for a successful run of the lambda functions.

Darjusch commented 1 year ago

@hannogrimm

Screenshot 2023-05-16 at 17 06 12

Where does the index file come from? If i run yarn build i get:

Screenshot 2023-05-16 at 17 07 15 Screenshot 2023-05-16 at 17 07 52