-
Notifications
You must be signed in to change notification settings - Fork 12
Get emails in sandbox #44
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
base: main
Are you sure you want to change the base?
Conversation
- Introduced `getMessages` and `showEmailMessage` functions to handle retrieving and displaying email messages from the sandbox test inbox. - Updated tools registry to include new handlers for these functionalities.
- Updated the description of the "show-sandbox-email-message" tool for clarity and conciseness.
- Added a new `getMessages` function to fetch messages from the sandbox test inbox. - Includes error handling for missing environment variables and sandbox client availability. - Returns formatted message details or an error message if retrieval fails.
- Added exports for `getMessages` and `showEmailMessage` functions along with their corresponding schemas to the sandbox tools index. - This update enhances the functionality available for managing email messages in the sandbox environment.
- Added the `showEmailMessage` function to fetch and display details of a specific email message from the sandbox test inbox. - Includes error handling for missing environment variables and sandbox client availability. - Returns formatted message details along with HTML and text content if available, or an error message if retrieval fails.
- Introduced a new test suite for the `getMessages` function to validate its behavior in various scenarios, including successful message retrieval, handling of empty and null responses, and error cases for missing environment variables and API errors. - Utilized Jest for mocking the sandbox client and ensuring comprehensive coverage of the function's logic.
- Introduced a comprehensive test suite for the `showEmailMessage` function, validating its behavior across various scenarios including successful retrieval of email details, handling of missing HTML and text content, and error cases for null responses and missing environment variables. - Utilized Jest for mocking the sandbox client to ensure robust testing of the function's logic.
- Introduced a new schema definition for the `getMessages` function, specifying properties for pagination, message filtering, and limits on message retrieval. - This schema enhances validation and ensures proper handling of input parameters for the message retrieval process.
- Introduced a new schema definition for the `showEmailMessage` function, specifying the required `message_id` property for retrieving email messages. - This schema enhances validation and ensures proper handling of input parameters for the email message retrieval process.
- Introduced new interface definitions for `GetMessagesRequest` and `ShowEmailMessageRequest`, enhancing the structure for message retrieval requests. - These additions improve validation and ensure proper handling of input parameters for fetching messages from the sandbox environment.
- Eliminated the limit property from the getMessages schema, as it is not supported by the Mailtrap SDK and will be ignored. This change simplifies the schema and improves clarity for users.
…e retrieval instructions - Added new sections for sandbox operations, detailing commands for retrieving and displaying messages from the sandbox inbox. - Included parameters and usage notes for `get-sandbox-messages` and `show-sandbox-email-message` functions to enhance user understanding and facilitate testing.
…tions - Added tests to validate the passing of various parameters (page, last_id, search) to the getMessages function. - Ensured that multiple parameters can be correctly handled and passed to the SDK, improving test coverage and reliability of the message retrieval functionality.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Motivation
Changes
How to test
Images and GIFs