Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): add get email-templates api #7016

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

simeng-li
Copy link
Contributor

Summary

Implement the email templates GET endpoints:

  • GET /api/email-templates: Get all email templates. languageTag and templateType filters are supported.
  • GET /api/email-tempaltes/:id: Get the email template by ID.

Testing

Integration test added

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@simeng-li simeng-li requested review from a team February 10, 2025 07:57
@github-actions github-actions bot added feature Cool stuff size/m labels Feb 10, 2025
Copy link

github-actions bot commented Feb 10, 2025

COMPARE TO master

Total Size Diff 📈 +4.94 KB

Diff by File
Name Diff
packages/core/src/queries/email-templates.ts 📈 +1.18 KB
packages/core/src/routes/email-template/index.openapi.json 📈 +1.01 KB
packages/core/src/routes/email-template/index.ts 📈 +782 Bytes
packages/integration-tests/src/api/email-templates.ts 📈 +343 Bytes
packages/integration-tests/src/tests/api/email-templates.test.ts 📈 +1.65 KB

@simeng-li simeng-li force-pushed the simeng-log-10790-core-create-email-templates-api branch from 231a08c to e93c5e2 Compare February 11, 2025 02:03
@simeng-li simeng-li force-pushed the simeng-log-10792-core-get-email-templates-api branch from 30306c9 to 34c07e7 Compare February 11, 2025 02:03
Base automatically changed from simeng-log-10790-core-create-email-templates-api to master February 11, 2025 02:16
@github-actions github-actions bot added size/l and removed size/m labels Feb 11, 2025
add get email-templates api
@simeng-li simeng-li force-pushed the simeng-log-10792-core-get-email-templates-api branch from 34c07e7 to 1d99881 Compare February 11, 2025 02:21
@github-actions github-actions bot added size/m and removed size/l labels Feb 11, 2025
@simeng-li simeng-li merged commit bf7f399 into master Feb 11, 2025
34 of 35 checks passed
@simeng-li simeng-li deleted the simeng-log-10792-core-get-email-templates-api branch February 11, 2025 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants