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: Add missing fields to the GetEmailResponse type #146

Merged
merged 13 commits into from
Aug 15, 2023

Conversation

abubuwe
Copy link
Contributor

@abubuwe abubuwe commented Jul 27, 2023

  1. As seen in the API documentation, the GetEmailResponse type is missing some fields that are useful to access. (Side note: the API docs appear to be wrong in that the bcc, cc, reply_to fields do return null and not the advertised [null]).
    This PR adds those missing fields.

  2. It also seems that the API returns fields with null, rather than omitting them or with the value undefined, so this PR also updates the types to match this behaviour.

  3. A small addition fix is that the GetEmailResponse type is now exported in the index.ts.

Please feel free to point out any issues or things that I may have failed to consider in this PR.

@bukinoshita bukinoshita changed the title fix: add missing fields to the GetEmailResponse type fix: Add missing fields to the GetEmailResponse type Aug 15, 2023
@bukinoshita
Copy link
Member

can you run yarn format?

package.json Outdated Show resolved Hide resolved
@bukinoshita bukinoshita changed the title fix: Add missing fields to the GetEmailResponse type feat: Add missing fields to the GetEmailResponse type Aug 15, 2023
@bukinoshita bukinoshita merged commit 6dc92a0 into resend:main Aug 15, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants