@daocloud-proto/ghippo 0.6.6 → 0.6.9

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.6.6",
3
+ "version":"0.6.9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -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
  }
@@ -10,17 +10,19 @@ export type TopNavRequest = {
10
10
 
11
11
  export type TopNavResponse = {
12
12
  platform_name?: string
13
- icon?: Uint8Array
14
- favicon?: Uint8Array
15
- icon_filename?: string
16
- favicon_filename?: string
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?: Uint8Array
23
- favicon?: Uint8Array
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: "PUT", body: JSON.stringify(req)})
37
+ return fm.fetchReq<UpdateTopNavRequest, UpdateTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav`, {...initReq, method: "POST", body: JSON.stringify(req)})
36
38
  }
37
39
  }