@daocloud-proto/ghippo 0.4.9 → 0.5.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.4.9",
3
+ "version":"0.5.2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -20,14 +20,14 @@ export type ListGroupsRequest = {
20
20
  }
21
21
 
22
22
  export type ListGroupsResponse = {
23
- total?: string
23
+ total?: number
24
24
  groups?: GroupInfo[]
25
25
  }
26
26
 
27
27
  export type GroupInfo = {
28
28
  id?: string
29
29
  name?: string
30
- user_count?: string
30
+ user_count?: number
31
31
  description?: string
32
32
  created_at?: string
33
33
  }
@@ -51,7 +51,7 @@ export type GroupMembersRequest = {
51
51
  }
52
52
 
53
53
  export type GroupMembersResponse = {
54
- total?: string
54
+ total?: number
55
55
  user?: User[]
56
56
  }
57
57
 
@@ -9,7 +9,7 @@ export type GetLoginPageInfoRequest = {
9
9
  }
10
10
 
11
11
  export type GetLoginPageInfoResponse = {
12
- version?: string
12
+ version?: number
13
13
  platform_name?: string
14
14
  copyright?: string
15
15
  icon?: Uint8Array
@@ -22,7 +22,7 @@ export type GetLoginPageVersionRequest = {
22
22
  }
23
23
 
24
24
  export type GetLoginPageVersionResponse = {
25
- version?: string
25
+ version?: number
26
26
  }
27
27
 
28
28
  export class LoginPage {
@@ -0,0 +1,65 @@
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 ListMessagesRequest = {
9
+ isCount?: boolean
10
+ search?: string
11
+ read?: string
12
+ offset?: number
13
+ size?: number
14
+ }
15
+
16
+ export type ListMessagesResponse = {
17
+ total?: string
18
+ messages?: MessageInfo[]
19
+ }
20
+
21
+ export type MessageInfo = {
22
+ id?: number
23
+ type?: string
24
+ subject?: string
25
+ message?: string
26
+ read?: string
27
+ create_at?: string
28
+ }
29
+
30
+ export type GetMessageRequest = {
31
+ id?: number
32
+ }
33
+
34
+ export type GetMessageResponse = {
35
+ message?: MessageInfo
36
+ }
37
+
38
+ export type DeleteMessagesRequest = {
39
+ ids?: number[]
40
+ }
41
+
42
+ export type DeleteMessagesResponse = {
43
+ }
44
+
45
+ export type SetReadMessagesRequest = {
46
+ ids?: number[]
47
+ }
48
+
49
+ export type SetReadMessagesResponse = {
50
+ }
51
+
52
+ export class Message {
53
+ static ListMessages(req: ListMessagesRequest, initReq?: fm.InitReq): Promise<ListMessagesResponse> {
54
+ return fm.fetchReq<ListMessagesRequest, ListMessagesResponse>(`/apis/ghippo.io/v1alpha1/messages?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
55
+ }
56
+ static GetMessage(req: GetMessageRequest, initReq?: fm.InitReq): Promise<GetMessageResponse> {
57
+ return fm.fetchReq<GetMessageRequest, GetMessageResponse>(`/apis/ghippo.io/v1alpha1/messages/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
58
+ }
59
+ static DeleteMessages(req: DeleteMessagesRequest, initReq?: fm.InitReq): Promise<DeleteMessagesResponse> {
60
+ return fm.fetchReq<DeleteMessagesRequest, DeleteMessagesResponse>(`/apis/ghippo.io/v1alpha1/messages`, {...initReq, method: "DELETE"})
61
+ }
62
+ static SetReadMessages(req: SetReadMessagesRequest, initReq?: fm.InitReq): Promise<SetReadMessagesResponse> {
63
+ return fm.fetchReq<SetReadMessagesRequest, SetReadMessagesResponse>(`/apis/ghippo.io/v1alpha1/messages`, {...initReq, method: "PUT"})
64
+ }
65
+ }
@@ -0,0 +1,23 @@
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 PublishMessageRequest = {
9
+ user_id?: string
10
+ type?: string
11
+ subject?: string
12
+ message?: string
13
+ message_uid?: string
14
+ }
15
+
16
+ export type PublishMessageResponse = {
17
+ }
18
+
19
+ export class Publish {
20
+ static PublishMessage(req: PublishMessageRequest, initReq?: fm.InitReq): Promise<PublishMessageResponse> {
21
+ return fm.fetchReq<PublishMessageRequest, PublishMessageResponse>(`/apis/ghippo.io/v1alpha1/publish/messages`, {...initReq, method: "POST", body: JSON.stringify(req)})
22
+ }
23
+ }
@@ -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
+ }
@@ -12,7 +12,7 @@ export type ListUsersRequest = {
12
12
  }
13
13
 
14
14
  export type ListUsersResponse = {
15
- total?: string
15
+ total?: number
16
16
  data?: GetUserResponse[]
17
17
  }
18
18
 
@@ -25,15 +25,20 @@ export type GetUserResponse = {
25
25
  name?: string
26
26
  email?: string
27
27
  description?: string
28
+ firstname?: string
29
+ lastname?: string
30
+ source?: string
28
31
  enabled?: boolean
29
32
  created_at?: string
30
33
  updated_at?: string
34
+ last_login_at?: string
31
35
  }
32
36
 
33
37
  export type CreateUserRequest = {
34
38
  name?: string
35
- password?: string
36
39
  description?: string
40
+ password?: string
41
+ temporary?: boolean
37
42
  }
38
43
 
39
44
  export type CreateUserResponse = {
@@ -52,6 +57,8 @@ export type UpdateUserRequest = {
52
57
  enabled?: boolean
53
58
  email?: string
54
59
  description?: string
60
+ firstname?: string
61
+ lastname?: string
55
62
  }
56
63
 
57
64
  export type UpdateUserResponse = {
@@ -78,7 +85,7 @@ export type ListUserGroupsRequest = {
78
85
  }
79
86
 
80
87
  export type ListUserGroupsResponse = {
81
- total?: string
88
+ total?: number
82
89
  data?: Group[]
83
90
  }
84
91