@daocloud-proto/ghippo 0.29.0-rc2 → 0.29.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.29.0-rc2",
3
+ "version":"0.29.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -81,6 +81,14 @@ export type GetMessagesCountResponse = {
81
81
  unreadTotal?: number
82
82
  }
83
83
 
84
+ export type GetSystemMessageRequest = {
85
+ }
86
+
87
+ export type GetSystemMessageResponse = {
88
+ message?: string
89
+ show?: boolean
90
+ }
91
+
84
92
  export class Message {
85
93
  static ListMessages(req: ListMessagesRequest, initReq?: fm.InitReq): Promise<ListMessagesResponse> {
86
94
  return fm.fetchReq<ListMessagesRequest, ListMessagesResponse>(`/apis/ghippo.io/v1alpha1/messages?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -88,6 +96,9 @@ export class Message {
88
96
  static GetMessage(req: GetMessageRequest, initReq?: fm.InitReq): Promise<GetMessageResponse> {
89
97
  return fm.fetchReq<GetMessageRequest, GetMessageResponse>(`/apis/ghippo.io/v1alpha1/messages/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
90
98
  }
99
+ static GetSystemMessage(req: GetSystemMessageRequest, initReq?: fm.InitReq): Promise<GetSystemMessageResponse> {
100
+ return fm.fetchReq<GetSystemMessageRequest, GetSystemMessageResponse>(`/apis/ghippo.io/v1alpha1/messages/system/system-message?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
101
+ }
91
102
  static ToggleUnreadMessage(req: ToggleUnreadMessageRequest, initReq?: fm.InitReq): Promise<ToggleUnreadMessageResponse> {
92
103
  return fm.fetchReq<ToggleUnreadMessageRequest, ToggleUnreadMessageResponse>(`/apis/ghippo.io/v1alpha1/messages/toggle-unread?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
93
104
  }