@jadpo/resend
Resend: the app's email sent through Resend's API, as the `email` capability.
jadpo package add @jadpo/resendAdds the newest version, skipping any that were withdrawn (yanked) and pre-releases such as 2.0.0-beta.1. --to 2.0.0 picks a version. Your app then calls it as Resend.v2.
Use it in your app
@jadpo hasn't added a recipe to this package yet. A recipe is a working example of using the package in an app. After installing it, jadpo package show @jadpo/resend lists its operations (the calls it makes to an outside API), functions and types, and the guide on installing and using a package shows how to add one to your app.
What this package can do
- Connects to one serviceIt sends requests to
the address its connection gives, and nowhere else. Your app gives it a connection to that service, with your own credentials. - Changes things at that service
emails.sendchanges something there, such as sending a message or making a record, so calling it has an effect outside your app. - Sends personal dataIt sends some of what your app gives it to
the address its connection gives:SendEmailRequest.html,SendEmailRequest.subject,SendEmailRequest.textandEmail.jadpo checktreats these as personal in your app and lists them in its personal-data report. - Can fail in ways your app must handleOne function can fail:
emails.sendcan fail withInvalidAttachment,InvalidParameter,MissingRequiredField,MissingRequiredParameterandValidationError. Your app must say what happens when it does, and it won't compile until it does. - Works with Jadpo 0.6.0, Jadpo's newest releaseIt works with 0.4.0, 0.4.1 and 0.5.0 too. Each time a new Jadpo release comes out, jadpo.dev checks every package's newest version with it.0.4.0 · 0.4.1 · 0.5.0 · 0.6.0
jadpo.dev works out what this package can do from its code each time it checks a version, such as which services it calls and what personal data it sends, so the list doesn't depend on what its author says.
What it offersgenerated from the package's code
Operations
The calls this package makes to the outside API.
emails.send
request POST /emails input SendEmailRequest output SendEmailResponse changes fails InvalidAttachment fails InvalidParameter fails MissingRequiredField fails MissingRequiredParameter fails ValidationError
Types
The shapes of the values it takes and gives back.
EmailAttachment= Object
One file sent with an email: its name, its bytes, sent in base64, and its media type.
content: Bytes content_type: Text? filename: Text
SendEmailRequest= Object
One email to send: who it is from and to, its subject, its HTML and its text, and the files sent with it.
attachments: List<EmailAttachment> from: Email html: Text? subject: Text text: Text? to: Email
SendEmailResponse= Object
What Resend answers an email it took with: its id for the email.
id: Text
Failures
The errors its calls can end with, which your app must handle.
InvalidAttachment
Resend refused one of the email's attachments.
kind invalid_value
InvalidParameter
One of the email's values isn't one Resend takes.
kind invalid_value
MissingRequiredField
The email left out something Resend needs.
kind invalid_value
MissingRequiredParameter
The email left out a value Resend needs.
kind invalid_value
ValidationError
Resend refused the email as written.
kind invalid_value