@daocloud-proto/ghippo 0.5.0 → 0.5.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/package.json +1 -1
- package/v1alpha1/smtpsetting.pb.ts +57 -0
- package/v1alpha1/user.pb.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../fetch.pb"
|
|
8
|
+
export type SetSmtpServerRequest = {
|
|
9
|
+
host?: string
|
|
10
|
+
port?: string
|
|
11
|
+
ssl?: string
|
|
12
|
+
from?: string
|
|
13
|
+
user?: string
|
|
14
|
+
password?: string
|
|
15
|
+
from_display_name?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type SetSmtpServerResponse = {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type GetSmtpServerRequest = {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type GetSmtpServerResponse = {
|
|
25
|
+
host?: string
|
|
26
|
+
port?: string
|
|
27
|
+
ssl?: string
|
|
28
|
+
from?: string
|
|
29
|
+
user?: string
|
|
30
|
+
password?: string
|
|
31
|
+
from_display_name?: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type SmtpConnTestRequest = {
|
|
35
|
+
host?: string
|
|
36
|
+
port?: string
|
|
37
|
+
ssl?: string
|
|
38
|
+
from?: string
|
|
39
|
+
user?: string
|
|
40
|
+
password?: string
|
|
41
|
+
from_display_name?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type SmtpConnTestResponse = {
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class SmtpSetting {
|
|
48
|
+
static SetSmtpServer(req: SetSmtpServerRequest, initReq?: fm.InitReq): Promise<SetSmtpServerResponse> {
|
|
49
|
+
return fm.fetchReq<SetSmtpServerRequest, SetSmtpServerResponse>(`/apis/ghippo.io/v1alpha1/smtp-setting`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
50
|
+
}
|
|
51
|
+
static GetSmtpServer(req: GetSmtpServerRequest, initReq?: fm.InitReq): Promise<GetSmtpServerResponse> {
|
|
52
|
+
return fm.fetchReq<GetSmtpServerRequest, GetSmtpServerResponse>(`/apis/ghippo.io/v1alpha1/smtp-setting?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
53
|
+
}
|
|
54
|
+
static SmtpServerConnTest(req: SmtpConnTestRequest, initReq?: fm.InitReq): Promise<SmtpConnTestResponse> {
|
|
55
|
+
return fm.fetchReq<SmtpConnTestRequest, SmtpConnTestResponse>(`/apis/ghippo.io/v1alpha1/smtp-setting/conn-test`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
56
|
+
}
|
|
57
|
+
}
|