mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-26 06:15:52 +03:00
[PR #443] [MERGED] feat: add mail id and url in webhook #578
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#578
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/443
Author: @dreamhunter2333
Created: 9/9/2024
Status: ✅ Merged
Merged: 9/9/2024
Merged by: @dreamhunter2333
Base:
main← Head:feature/dev📝 Commits (1)
cd469b9feat: add mail id and url in webhook📊 Changes
11 files changed (+87 additions, -12 deletions)
View changed files
📝
frontend/src/views/Index.vue(+45 -4)📝
vitepress-docs/docs/en/cli.md(+2 -0)📝
vitepress-docs/docs/zh/guide/cli/worker.md(+2 -0)📝
worker/src/admin_api/mail_webhook_settings.ts(+5 -3)📝
worker/src/common.ts(+9 -1)📝
worker/src/email/index.ts(+1 -1)📝
worker/src/mails_api/index.ts(+9 -0)📝
worker/src/mails_api/webhook_settings.ts(+5 -3)📝
worker/src/models/index.ts(+4 -0)📝
worker/src/types.d.ts(+3 -0)📝
worker/wrangler.toml.template(+2 -0)📄 Description
User description
#429
PR Type
Enhancement, Documentation
Description
FRONTEND_URLconfiguration.Changes walkthrough 📝
8 files
Index.vue
Add mail ID query functionality in the mailbox viewfrontend/src/views/Index.vue
useRouteto handle route changes.mailIdQueryandshowMailIdQueryfor querying mails by ID.fetchMailDatato handle mail ID queries.mail_webhook_settings.ts
Include mail ID and URL in webhook payloadworker/src/admin_api/mail_webhook_settings.ts
common.ts
Enhance webhook payload with mail ID and URLworker/src/common.ts
triggerWebhookto fetch mail ID based on address and messageID.
index.ts
Pass message ID to `triggerWebhook` functionworker/src/email/index.ts
triggerWebhookcall to includemessage_id.index.ts
Add API endpoint to fetch mail by IDworker/src/mails_api/index.ts
webhook_settings.ts
Enhance webhook settings with mail ID and URLworker/src/mails_api/webhook_settings.ts
index.ts
Extend `WebhookMail` type with ID and URLworker/src/models/index.ts
idandurlfields toWebhookMailtype.WebhookSettingsbody template to includeidandurl.types.d.ts
Add `FRONTEND_URL` to environment bindingsworker/src/types.d.ts
FRONTEND_URLtoBindingstype.2 files
cli.md
Document `FRONTEND_URL` configuration in CLI docsvitepress-docs/docs/en/cli.md
FRONTEND_URLconfiguration.worker.md
Document `FRONTEND_URL` configuration in CLI docs (Chinese)vitepress-docs/docs/zh/guide/cli/worker.md
FRONTEND_URLconfiguration in Chinese.1 files
wrangler.toml.template
Add `FRONTEND_URL` to wrangler templateworker/wrangler.toml.template
FRONTEND_URLconfiguration.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.