@bernierllc/nevarmail 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,6 +135,9 @@ suppression blocks only its own.
|
|
|
135
135
|
- **Name it**, and an opt-out from a *different* category's list does not block the send,
|
|
136
136
|
and a category marked non-suppressable is exempt from opt-outs.
|
|
137
137
|
- **Omit it**, and every active suppression of the project applies — the strict reading.
|
|
138
|
+
Only a **project-scoped key** may omit it on `sendEmail` / `scheduleEmail`: the send runs as
|
|
139
|
+
that project's default use case. An **org-wide key** that omits it gets
|
|
140
|
+
`422 USE_CASE_REQUIRED`; `listUseCases()` shows yours.
|
|
138
141
|
|
|
139
142
|
Bounces, spam complaints and manual suppressions block every category regardless. Only a
|
|
140
143
|
`use_case_id` you passed yourself can narrow a block; a default the server resolves cannot.
|
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,9 @@ export interface SendEmailInput {
|
|
|
30
30
|
/**
|
|
31
31
|
* The message category this send belongs to. Naming it is what lets a
|
|
32
32
|
* recipient's opt-out from a DIFFERENT category stop blocking this one —
|
|
33
|
-
* omit it and every active suppression row applies.
|
|
33
|
+
* omit it and every active suppression row applies. Required with an
|
|
34
|
+
* org-wide key (or `useCase` on `sendEmail`): 422 `USE_CASE_REQUIRED`. A project-scoped
|
|
35
|
+
* key may omit it and sends as its project's default use case. See the README.
|
|
34
36
|
*/
|
|
35
37
|
use_case_id?: string;
|
|
36
38
|
/**
|
|
@@ -66,6 +68,7 @@ export interface SendToListInput {
|
|
|
66
68
|
fromName?: string;
|
|
67
69
|
replyTo?: string;
|
|
68
70
|
tags?: string[];
|
|
71
|
+
/** Omit to send as the default use case of the list's project, with any key. */
|
|
69
72
|
use_case_id?: string;
|
|
70
73
|
}
|
|
71
74
|
export interface ScheduleEmailInput extends Omit<SendEmailInput, "templateId" | "variables" | "useCase"> {
|
package/package.json
CHANGED