-
Couldn't load subscription status.
- Fork 0
feat!: update to mailchannels email api 0.11.0
#1
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
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
0.11.00.11.0
Sub-account creation now requires a company name parameter, validated to be 3-128 characters. Documentation, types, implementation, and tests have been updated to support and verify this change.
0.11.00.11.0
Deploying mailchannels with
|
| Latest commit: |
5440475
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d1f05a3e.mailchannels-1ac.pages.dev |
| Branch Preview URL: | https://email-api-update.mailchannels-1ac.pages.dev |
263dc53 to
4dcbfd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the MailChannels Email API from version 0.7.0 to 0.11.0, implementing new endpoints and updating existing ones according to the breaking changes in the API specification.
- Adds new modules for Metrics and Suppressions functionality
- Updates Sub-accounts module with limit management and usage statistics endpoints
- Enhances Webhooks module with validation endpoint and endpoint length restrictions
- Updates Emails module with new campaignId and transactional options
Reviewed Changes
Copilot reviewed 48 out of 76 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/modules/webhooks.ts | Adds validate method and endpoint length validation for webhook enrollment |
| src/modules/suppressions.ts | New module implementing suppression list management endpoints |
| src/modules/sub-accounts.ts | Enhanced with limit management, usage stats, and updated create method requiring company name |
| src/modules/metrics.ts | New module for retrieving engagement, performance, volume and usage metrics |
| src/modules/emails.ts | Adds campaignId and transactional options to email sending |
| src/utils/errors.ts | Enhanced error handling for different response data types |
| test/ files | Comprehensive test coverage for all new functionality |
| docs/ files | Updated documentation for all new endpoints and changes |
| playground/ files | Example scripts for testing new endpoints |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
MailChannels introduced some changes and new endpoints to the email API
Current version:
0.7.0Target version:
0.11.0Email API
New endpoints:
Updated endpoints:
Added
campaignIdandtransactionaloptions.Endpoint value length is now limited to a maximum of 8000 characters.
Sub-account creation now requires a company name parameter
In this PR docs must be updated accordingly and fix any type issues