@daocloud-proto/ghippo 0.6.7 → 0.6.10
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/about.pb.ts +16 -0
- package/v1alpha1/productnav.pb.ts +0 -1
- package/v1alpha1/topnav.pb.ts +9 -7
package/package.json
CHANGED
package/v1alpha1/about.pb.ts
CHANGED
|
@@ -17,8 +17,24 @@ export type Developer = {
|
|
|
17
17
|
message?: string
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export type ListOpenSourcesRequest = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type ListOpenSourcesResponse = {
|
|
24
|
+
data?: OpenSource[]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type OpenSource = {
|
|
28
|
+
name?: string
|
|
29
|
+
license?: string
|
|
30
|
+
second?: boolean
|
|
31
|
+
}
|
|
32
|
+
|
|
20
33
|
export class About {
|
|
21
34
|
static ListDevelopers(req: ListDevelopersRequest, initReq?: fm.InitReq): Promise<ListDevelopersResponse> {
|
|
22
35
|
return fm.fetchReq<ListDevelopersRequest, ListDevelopersResponse>(`/apis/ghippo.io/v1alpha1/about/developers?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
23
36
|
}
|
|
37
|
+
static ListOpenSources(req: ListOpenSourcesRequest, initReq?: fm.InitReq): Promise<ListOpenSourcesResponse> {
|
|
38
|
+
return fm.fetchReq<ListOpenSourcesRequest, ListOpenSourcesResponse>(`/apis/ghippo.io/v1alpha1/about/opensources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
39
|
+
}
|
|
24
40
|
}
|
package/v1alpha1/topnav.pb.ts
CHANGED
|
@@ -10,17 +10,19 @@ export type TopNavRequest = {
|
|
|
10
10
|
|
|
11
11
|
export type TopNavResponse = {
|
|
12
12
|
platform_name?: string
|
|
13
|
-
icon?:
|
|
14
|
-
favicon?:
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
icon?: string
|
|
14
|
+
favicon?: string
|
|
15
|
+
nav_name?: string
|
|
16
|
+
tab_name?: string
|
|
17
17
|
portal_url?: string
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type UpdateTopNavRequest = {
|
|
21
21
|
platform_name?: string
|
|
22
|
-
icon?:
|
|
23
|
-
favicon?:
|
|
22
|
+
icon?: string
|
|
23
|
+
favicon?: string
|
|
24
|
+
nav_name?: string
|
|
25
|
+
tab_name?: string
|
|
24
26
|
portal_url?: string
|
|
25
27
|
}
|
|
26
28
|
|
|
@@ -32,6 +34,6 @@ export class TopNavigator {
|
|
|
32
34
|
return fm.fetchReq<TopNavRequest, TopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
33
35
|
}
|
|
34
36
|
static UpdateTopNav(req: UpdateTopNavRequest, initReq?: fm.InitReq): Promise<UpdateTopNavResponse> {
|
|
35
|
-
return fm.fetchReq<UpdateTopNavRequest, UpdateTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav`, {...initReq, method: "
|
|
37
|
+
return fm.fetchReq<UpdateTopNavRequest, UpdateTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
36
38
|
}
|
|
37
39
|
}
|