@protobase/workflows 0.121.4 → 0.121.5
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/dist/plugin/context.d.ts +13 -1
- package/package.json +1 -1
package/dist/plugin/context.d.ts
CHANGED
|
@@ -113,11 +113,23 @@ export type PluginMailMessage = {
|
|
|
113
113
|
content: Uint8Array;
|
|
114
114
|
contentType?: string;
|
|
115
115
|
}[];
|
|
116
|
+
/** Marks bulk mail: each recipient gets a one-click unsubscribe from its `topic`, and whoever unsubscribed from it gets nothing. */
|
|
117
|
+
bulk?: boolean;
|
|
118
|
+
/** The kind of mail a recipient unsubscribes from, such as `newsletter`; required with `bulk`. */
|
|
119
|
+
topic?: string;
|
|
116
120
|
};
|
|
117
|
-
/**
|
|
121
|
+
/**
|
|
122
|
+
* Sends one message, resolving to its `Message-ID` as the recipient sees it, when the mailer can tell it; of bulk
|
|
123
|
+
* mail, also to the recipients who unsubscribed from its topic (`skipped`) and each one it went to (`sent`).
|
|
124
|
+
*/
|
|
118
125
|
export type PluginMail = {
|
|
119
126
|
send(message: PluginMailMessage): Promise<{
|
|
120
127
|
messageId?: string;
|
|
128
|
+
skipped?: string[];
|
|
129
|
+
sent?: {
|
|
130
|
+
to: string;
|
|
131
|
+
messageId?: string;
|
|
132
|
+
}[];
|
|
121
133
|
}>;
|
|
122
134
|
};
|
|
123
135
|
/** The app a mail comes from, as a template names it: its name, and its home page. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/workflows",
|
|
3
|
-
"version": "0.121.
|
|
3
|
+
"version": "0.121.5",
|
|
4
4
|
"description": "Workflows as state machines with JSONata expressions: their check, a runner that saves only what a run needs to go on and traces every step, and the plugin interface for trigger and step types.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|