-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into sandino/thinkcell
- Loading branch information
Showing
43 changed files
with
2,372 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"time":1714132273347,"round":7109637,"randomness":"7aa4f51107fc324b31dad8c8f8cff6ce59ced0d5484eed663e3daca04ad643b2","totalCount":354,"winners":["3afdea18b9d626e8284d355dfd1f673c14348c3050d7f616fdf248095067d328"]} |
354 changes: 354 additions & 0 deletions
354
recipients_selection/lists/1-reachoutsalone-2024-04-26.txt
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
365 changes: 365 additions & 0 deletions
365
recipients_selection/lists/11-reachoutsalone-2024-04-22.txt
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
seed/firestore_export/all_namespaces/all_kinds/all_namespaces_all_kinds.export_metadata
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
seed/firestore_export/firestore_export.overall_export_metadata
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import { MailService } from '@sendgrid/mail'; | ||
import { Currency } from '../types/currency'; | ||
import { LanguageCode } from '../types/language'; | ||
|
||
export type FirstPayoutEmailTemplateData = { | ||
first_name?: string; | ||
donation_amount: number; | ||
currency: Currency; | ||
n_days_ago: number; | ||
donation_amount_sm: number; | ||
donation_amount_md: number; | ||
one_time_donation: boolean; | ||
}; | ||
|
||
export class SendgridMailClient extends MailService { | ||
|
@@ -13,11 +18,17 @@ export class SendgridMailClient extends MailService { | |
this.setApiKey(apiKey); | ||
} | ||
|
||
sendFirstPayoutEmail = async (email: string, data: FirstPayoutEmailTemplateData) => { | ||
sendFirstPayoutEmail = async (email: string, language: LanguageCode, data: FirstPayoutEmailTemplateData) => { | ||
let templateId = ''; | ||
if (language === 'de') { | ||
templateId = 'd-3146eb9ee2054b28b22376113eb96ca9'; | ||
} else { | ||
templateId = 'd-4e616d721b0240509f468c1e5ff22e6d'; | ||
} | ||
await this.send({ | ||
to: email, | ||
from: '[email protected]', | ||
templateId: 'd-4e616d721b0240509f468c1e5ff22e6d', | ||
from: { name: 'Social Income', email: '[email protected]' }, | ||
templateId, | ||
dynamicTemplateData: data, | ||
}); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.