-
Notifications
You must be signed in to change notification settings - Fork 4
/
transports.js
65 lines (64 loc) · 1.69 KB
/
transports.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import {
clearApiCache,
invokeFetch
} from "./chunks/AMO5NATA.js";
import "./chunks/UV5COPU3.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/transports.ts
var deleteEmailConfig = async (options) => invokeFetch("transports", {
method: "delete",
pathTemplate: "/api/v1/transports/email-config",
options
});
var getEmailConfig = async (options) => invokeFetch("transports", {
method: "get",
pathTemplate: "/api/v1/transports/email-config",
options
});
var patchEmailConfig = async (body, options) => invokeFetch("transports", {
method: "patch",
pathTemplate: "/api/v1/transports/email-config",
body,
contentType: "application/json",
options
});
var sendTestEmail = async (body, options) => invokeFetch("transports", {
method: "post",
pathTemplate: "/api/v1/transports/email-config/actions/send-test-email",
body,
contentType: "application/json",
options
});
var validateEmailConfig = async (options) => invokeFetch("transports", {
method: "post",
pathTemplate: "/api/v1/transports/email-config/actions/validate",
options
});
var verifyEmailConfigConnection = async (options) => invokeFetch("transports", {
method: "post",
pathTemplate: "/api/v1/transports/email-config/actions/verify-connection",
options
});
function clearCache() {
return clearApiCache("transports");
}
var transportsExport = {
deleteEmailConfig,
getEmailConfig,
patchEmailConfig,
sendTestEmail,
validateEmailConfig,
verifyEmailConfigConnection,
clearCache
};
var transports_default = transportsExport;
export {
clearCache,
transports_default as default,
deleteEmailConfig,
getEmailConfig,
patchEmailConfig,
sendTestEmail,
validateEmailConfig,
verifyEmailConfigConnection
};