@daocloud-proto/ghippo 0.8.9 → 0.8.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.8.9",
3
+ "version":"0.8.10",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -27,6 +27,12 @@ export type UpdateTopNavRequest = {
27
27
  export type UpdateTopNavResponse = {
28
28
  }
29
29
 
30
+ export type ResetTopNavRequest = {
31
+ }
32
+
33
+ export type ResetTopNavResponse = {
34
+ }
35
+
30
36
  export class TopNavigator {
31
37
  static Info(req: TopNavRequest, initReq?: fm.InitReq): Promise<TopNavResponse> {
32
38
  return fm.fetchReq<TopNavRequest, TopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -34,4 +40,7 @@ export class TopNavigator {
34
40
  static UpdateTopNav(req: UpdateTopNavRequest, initReq?: fm.InitReq): Promise<UpdateTopNavResponse> {
35
41
  return fm.fetchReq<UpdateTopNavRequest, UpdateTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav`, {...initReq, method: "POST", body: JSON.stringify(req)})
36
42
  }
43
+ static ResetTopNav(req: ResetTopNavRequest, initReq?: fm.InitReq): Promise<ResetTopNavResponse> {
44
+ return fm.fetchReq<ResetTopNavRequest, ResetTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav/reset`, {...initReq, method: "POST"})
45
+ }
37
46
  }