Skip to content

Commit 83d2449

Browse files
authored
feat(schemas): add i18n template support to the email service config guard (#8042)
1 parent 088ea18 commit 83d2449

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/schemas/src/types/system.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ export enum EmailServiceProvider {
8888
export const sendgridEmailServiceConfigGuard = z.object({
8989
provider: z.literal(EmailServiceProvider.SendGrid),
9090
apiKey: z.string(),
91+
/** @deprecated Use i18nTemplates instead */
9192
templateId: z.string(),
9293
fromName: z.string(),
9394
fromEmail: z.string(),
95+
i18nTemplates: z.record(z.string()).optional(),
9496
});
9597

9698
export type SendgridEmailServiceConfig = z.infer<typeof sendgridEmailServiceConfigGuard>;

0 commit comments

Comments
 (0)