@budibase/types 3.4.19 → 3.4.20
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EmailAttachment, EmailInvite } from "../../../documents";
|
|
2
|
-
import SMTPTransport from "nodemailer/lib/smtp-transport";
|
|
3
2
|
export declare enum EmailTemplatePurpose {
|
|
4
3
|
CORE = "core",
|
|
5
4
|
BASE = "base",
|
|
@@ -11,17 +10,17 @@ export declare enum EmailTemplatePurpose {
|
|
|
11
10
|
export interface SendEmailRequest {
|
|
12
11
|
workspaceId?: string;
|
|
13
12
|
email: string;
|
|
14
|
-
userId
|
|
13
|
+
userId: string;
|
|
15
14
|
purpose: EmailTemplatePurpose;
|
|
16
15
|
contents?: string;
|
|
17
16
|
from?: string;
|
|
18
17
|
subject: string;
|
|
19
|
-
cc?:
|
|
20
|
-
bcc?:
|
|
18
|
+
cc?: boolean;
|
|
19
|
+
bcc?: boolean;
|
|
21
20
|
automation?: boolean;
|
|
22
21
|
invite?: EmailInvite;
|
|
23
22
|
attachments?: EmailAttachment[];
|
|
24
23
|
}
|
|
25
|
-
export interface SendEmailResponse extends
|
|
24
|
+
export interface SendEmailResponse extends Record<string, any> {
|
|
26
25
|
message: string;
|
|
27
26
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Document } from "../../document";
|
|
2
2
|
import { User } from "../../global";
|
|
3
|
+
import { ReadStream } from "fs";
|
|
3
4
|
import { Row } from "../row";
|
|
4
5
|
import { Table } from "../table";
|
|
5
6
|
import { AutomationStep, AutomationTrigger } from "./schema";
|
|
6
7
|
import { ContextEmitter } from "../../../sdk";
|
|
7
|
-
import { Readable } from "stream";
|
|
8
8
|
export declare enum AutomationIOType {
|
|
9
9
|
OBJECT = "object",
|
|
10
10
|
STRING = "string",
|
|
@@ -93,8 +93,8 @@ export interface SendEmailOpts {
|
|
|
93
93
|
contents?: string;
|
|
94
94
|
subject: string;
|
|
95
95
|
info?: any;
|
|
96
|
-
cc?:
|
|
97
|
-
bcc?:
|
|
96
|
+
cc?: boolean;
|
|
97
|
+
bcc?: boolean;
|
|
98
98
|
automation?: boolean;
|
|
99
99
|
invite?: EmailInvite;
|
|
100
100
|
attachments?: EmailAttachment[];
|
|
@@ -226,7 +226,7 @@ export type AutomationAttachment = {
|
|
|
226
226
|
};
|
|
227
227
|
export type AutomationAttachmentContent = {
|
|
228
228
|
filename: string;
|
|
229
|
-
content:
|
|
229
|
+
content: ReadStream | NodeJS.ReadableStream;
|
|
230
230
|
};
|
|
231
231
|
export type BucketedContent = AutomationAttachmentContent & {
|
|
232
232
|
bucket: string;
|