Module exposing: getResendClient, isResendConfigured, getResendTopicId, createResendContactProperties, createResendContactPayload, addSubscriberContact, isAlreadyExistsError
// Source: https://github.com/thedaviddias/Front-End-Checklist | License: MIT | Copyright 2017-2026 David Dias
// Provided via justclaw.it.com; keep this notice with the code.
import { Resend } from 'resend'
let resendClient: Resend | null | undefined
const DEFAULT_RESEND_TOPIC_ID = 'cdb0d440-4825-412a-8152-29681e8155b7'
const DEFAULT_CONTACT_LANGUAGE = 'en'
const DEFAULT_CONTACT_SOURCE_DOMAIN = 'frontendchecklist.io'
const DEFAULT_CONTACT_BRAND = 'frontendchecklist'
type ResendContactSegment = {
id: string
}
type ResendContactTopic = {
id: string
subscription: 'opt_in'
}
type ResendContactProperties = {
product: 'newsletter' | 'waitlist'
user_type: 'subscriber' | 'waitlist'
language: string
source_domain: string
brand: string
}
type ResendContactKind = 'subscriber' |
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key