@daocloud-proto/ghippo 0.5.6 → 0.6.0
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
package/v1alpha1/group.pb.ts
CHANGED
|
@@ -11,6 +11,7 @@ export type CreateGroupRequest = {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export type CreateGroupResponse = {
|
|
14
|
+
id?: string
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
export type ListGroupsRequest = {
|
|
@@ -82,6 +83,7 @@ export type DeleteUserFromGroupResponse = {
|
|
|
82
83
|
|
|
83
84
|
export type UpdateGroupRequest = {
|
|
84
85
|
id?: string
|
|
86
|
+
name?: string
|
|
85
87
|
description?: string
|
|
86
88
|
}
|
|
87
89
|
|
|
@@ -25,6 +25,16 @@ export type GetLoginPageVersionResponse = {
|
|
|
25
25
|
version?: number
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
export type UpdateLoginPageInfoRequest = {
|
|
29
|
+
platform_name?: string
|
|
30
|
+
copyright?: string
|
|
31
|
+
icon?: Uint8Array
|
|
32
|
+
favicon?: Uint8Array
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type UpdateLoginPageInfoResponse = {
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
export class LoginPage {
|
|
29
39
|
static GetInfo(req: GetLoginPageInfoRequest, initReq?: fm.InitReq): Promise<GetLoginPageInfoResponse> {
|
|
30
40
|
return fm.fetchReq<GetLoginPageInfoRequest, GetLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -32,4 +42,7 @@ export class LoginPage {
|
|
|
32
42
|
static GetVersion(req: GetLoginPageVersionRequest, initReq?: fm.InitReq): Promise<GetLoginPageVersionResponse> {
|
|
33
43
|
return fm.fetchReq<GetLoginPageVersionRequest, GetLoginPageVersionResponse>(`/apis/ghippo.io/v1alpha1/login-page/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
34
44
|
}
|
|
45
|
+
static UpdateInfo(req: UpdateLoginPageInfoRequest, initReq?: fm.InitReq): Promise<UpdateLoginPageInfoResponse> {
|
|
46
|
+
return fm.fetchReq<UpdateLoginPageInfoRequest, UpdateLoginPageInfoResponse>(`/apis/ghippo.io/v1alpha1/login-page/info`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
47
|
+
}
|
|
35
48
|
}
|
package/v1alpha1/message.pb.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type ListMessagesRequest = {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export type ListMessagesResponse = {
|
|
24
|
-
total?:
|
|
24
|
+
total?: number
|
|
25
25
|
messages?: MessageInfo[]
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -66,6 +66,15 @@ export type SetReadMessagesRequest = {
|
|
|
66
66
|
export type SetReadMessagesResponse = {
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export type GetMessagesCountRequest = {
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type GetMessagesCountResponse = {
|
|
73
|
+
total?: number
|
|
74
|
+
readTotal?: number
|
|
75
|
+
unreadTotal?: number
|
|
76
|
+
}
|
|
77
|
+
|
|
69
78
|
export class Message {
|
|
70
79
|
static ListMessages(req: ListMessagesRequest, initReq?: fm.InitReq): Promise<ListMessagesResponse> {
|
|
71
80
|
return fm.fetchReq<ListMessagesRequest, ListMessagesResponse>(`/apis/ghippo.io/v1alpha1/messages?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -82,4 +91,7 @@ export class Message {
|
|
|
82
91
|
static SetReadMessages(req: SetReadMessagesRequest, initReq?: fm.InitReq): Promise<SetReadMessagesResponse> {
|
|
83
92
|
return fm.fetchReq<SetReadMessagesRequest, SetReadMessagesResponse>(`/apis/ghippo.io/v1alpha1/read-messages`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
84
93
|
}
|
|
94
|
+
static GetMessagesCount(req: GetMessagesCountRequest, initReq?: fm.InitReq): Promise<GetMessagesCountResponse> {
|
|
95
|
+
return fm.fetchReq<GetMessagesCountRequest, GetMessagesCountResponse>(`/apis/ghippo.io/v1alpha1/messages/count?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
96
|
+
}
|
|
85
97
|
}
|
package/v1alpha1/topnav.pb.ts
CHANGED
|
@@ -32,6 +32,6 @@ export class TopNavigator {
|
|
|
32
32
|
return fm.fetchReq<TopNavRequest, TopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
33
33
|
}
|
|
34
34
|
static UpdateTopNav(req: UpdateTopNavRequest, initReq?: fm.InitReq): Promise<UpdateTopNavResponse> {
|
|
35
|
-
return fm.fetchReq<UpdateTopNavRequest, UpdateTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav`, {...initReq, method: "
|
|
35
|
+
return fm.fetchReq<UpdateTopNavRequest, UpdateTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
36
36
|
}
|
|
37
37
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -5,17 +5,75 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
|
-
export type
|
|
9
|
-
id?:
|
|
8
|
+
export type WorkspaceInfo = {
|
|
9
|
+
id?: number
|
|
10
|
+
name?: string
|
|
11
|
+
parent_workspace_id?: number
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
export type ResourceInfo = {
|
|
15
|
+
resource_name?: string
|
|
16
|
+
workspace_id?: number
|
|
17
|
+
resource_type?: string
|
|
18
|
+
resource_scope?: string
|
|
19
|
+
gproduct?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type ListWorkspacesRequest = {
|
|
23
|
+
size?: number
|
|
24
|
+
offset?: number
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type ListWorkspacesResponse = {
|
|
28
|
+
total?: number
|
|
29
|
+
workspaces?: WorkspaceInfo[]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ListWorkspaceResourcesRequest = {
|
|
33
|
+
workspace_id?: number
|
|
34
|
+
gproduct?: string
|
|
35
|
+
size?: number
|
|
36
|
+
offset?: number
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type ListWorkspaceResourcesResponse = {
|
|
40
|
+
total?: number
|
|
41
|
+
resources?: ResourceInfo[]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type AddResourceToWorkspaceRequest = {
|
|
45
|
+
workspace_id?: number
|
|
46
|
+
resource_name?: string
|
|
47
|
+
resource_type?: string
|
|
48
|
+
gproduct?: string
|
|
49
|
+
resource_scope?: string
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type AddResourceToWorkspaceResponse = {
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type DeleteResourceFromWorkspaceRequest = {
|
|
56
|
+
workspace_id?: number
|
|
57
|
+
resource_name?: string
|
|
58
|
+
resource_type?: string
|
|
59
|
+
gproduct?: string
|
|
60
|
+
resource_scope?: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type DeleteResourceFromWorkspaceResponse = {
|
|
15
64
|
}
|
|
16
65
|
|
|
17
66
|
export class Workspace {
|
|
18
|
-
static
|
|
19
|
-
return fm.fetchReq<
|
|
67
|
+
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
68
|
+
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
69
|
+
}
|
|
70
|
+
static ListWorkspaceResources(req: ListWorkspaceResourcesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceResourcesResponse> {
|
|
71
|
+
return fm.fetchReq<ListWorkspaceResourcesRequest, ListWorkspaceResourcesResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspace_id"]}/resources?${fm.renderURLSearchParams(req, ["workspace_id"])}`, {...initReq, method: "GET"})
|
|
72
|
+
}
|
|
73
|
+
static AddResourceToWorkspace(req: AddResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<AddResourceToWorkspaceResponse> {
|
|
74
|
+
return fm.fetchReq<AddResourceToWorkspaceRequest, AddResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspace_id"]}/resources`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
75
|
+
}
|
|
76
|
+
static DeleteResourceFromWorkspace(req: DeleteResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<DeleteResourceFromWorkspaceResponse> {
|
|
77
|
+
return fm.fetchReq<DeleteResourceFromWorkspaceRequest, DeleteResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspace_id"]}/resources`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
20
78
|
}
|
|
21
79
|
}
|