@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 851 B
Source Map (JSON)
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/libs/toolkit/email/index.ts"],"sourcesContent":["import type {\n\tServiceContext,\n\tServiceResponse,\n} from \"../../../utils/services/types.js\";\nimport type { ToolkitEmailSendInput, ToolkitEmailSendResult } from \"./send.js\";\nimport send from \"./send.js\";\n\nexport type ToolkitEmail = {\n\t/** Queues an external email send. Accepts tenantKey for per-call tenant scope. */\n\tsend: (\n\t\tinput: ToolkitEmailSendInput,\n\t) => ServiceResponse<ToolkitEmailSendResult>;\n};\n\n/** Creates email helpers for a toolkit instance. */\nexport const createEmailToolkit = (context: ServiceContext): ToolkitEmail => ({\n\tsend: (input) => send(context, input),\n});\n\nexport default createEmailToolkit;\n"],"mappings":"0BAeA,MAAa,EAAsB,IAA2C,CAC7E,KAAO,GAAU,EAAK,EAAS,CAAK,CACrC"}