-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated at 2024-01-02T08:00:52-05:00
- Loading branch information
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
Submodule core
updated
14 files
+3 −1 | app/client/components/WidgetFrame.ts | |
+11 −0 | app/client/ui/Tools.ts | |
+0 −13 | app/plugin/grist-plugin-api.ts | |
+3 −0 | app/server/lib/AppEndpoint.ts | |
+1 −1 | package.json | |
+220 −0 | static/apiconsole.html | |
+112 −1 | static/locales/cs.client.json | |
+5 −1 | static/locales/en.client.json | |
+11 −21 | test/fixtures/sites/fetchSelectedOptions/page.js | |
+9 −0 | test/gen-server/migrations.ts | |
+16 −13 | test/nbrowser/CustomView.ts | |
+4 −3 | test/server/lib/DocApi.ts | |
+7 −0 | test/server/lib/UnhandledErrors.ts | |
+3 −4 | test/server/lib/Webhooks-Proxy.ts |
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,7 +1,45 @@ | ||
import {HomeDBManager} from 'app/gen-server/lib/HomeDBManager'; | ||
import {Notifier, SendGridConfig} from 'app/gen-server/lib/Notifier'; | ||
import {Notifier} from 'app/gen-server/lib/Notifier'; | ||
import {SendGridConfig} from 'app/gen-server/lib/NotifierTypes'; | ||
import {GristServer} from 'app/server/lib/GristServer'; | ||
|
||
/** | ||
* Stub SendGrid config. Actual values will be pulled from config.json | ||
* if available. | ||
*/ | ||
export const SENDGRID_CONFIG: SendGridConfig = { | ||
address: { | ||
from: { | ||
email: '[email protected]', | ||
name: 'Replace This', | ||
}, | ||
}, | ||
template: { | ||
invite: 'sendgrid-template-id', | ||
billingManagerInvite: 'sendgrid-template-id', | ||
memberChange: 'sendgrid-template-id', | ||
trialPeriodEndingSoon: 'sendgrid-template-id', | ||
twoFactorMethodAdded: 'sendgrid-template-id', | ||
twoFactorMethodRemoved: 'sendgrid-template-id', | ||
twoFactorPhoneNumberChanged: 'sendgrid-template-id', | ||
twoFactorEnabled: 'sendgrid-template-id', | ||
twoFactorDisabled: 'sendgrid-template-id', | ||
}, | ||
list: { | ||
singleUserOnboarding: 'sendgrid-list-id', | ||
appSumoSignUps: 'sendgrid-list-id-unused', | ||
trial: 'sendgrid-list-id-unused', | ||
}, | ||
field: { | ||
callScheduled: 'xx_N', | ||
userRef: 'xx_T', | ||
}, | ||
unsubscribeGroup: { | ||
invites: 99998, | ||
billingManagers: 99999, | ||
}, | ||
}; | ||
|
||
export function configureSendGridNotifier(dbManager: HomeDBManager, gristConfig: GristServer) { | ||
if (!process.env.SENDGRID_API_KEY) { return undefined; } | ||
|
||
|