openxiangda 1.0.121 → 1.0.123

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.
@@ -3006,6 +3006,45 @@ var createPageSdk = (context) => {
3006
3006
  ...params,
3007
3007
  appType: resolveAppType(context, params.appType)
3008
3008
  }
3009
+ }),
3010
+ listInbox: (params = {}) => request({
3011
+ path: buildOpenXiangdaAppPath(
3012
+ context,
3013
+ params.appType,
3014
+ "/notifications/inbox"
3015
+ ),
3016
+ method: "get",
3017
+ query: {
3018
+ page: params.page,
3019
+ limit: params.limit,
3020
+ readStatus: params.readStatus,
3021
+ keyword: params.keyword,
3022
+ templateCode: params.templateCode
3023
+ }
3024
+ }),
3025
+ getUnreadCount: (params = {}) => request({
3026
+ path: buildOpenXiangdaAppPath(
3027
+ context,
3028
+ params.appType,
3029
+ "/notifications/inbox/unread-count"
3030
+ ),
3031
+ method: "get"
3032
+ }),
3033
+ markRead: (messageId, params = {}) => request({
3034
+ path: buildOpenXiangdaAppPath(
3035
+ context,
3036
+ params.appType,
3037
+ `/notifications/inbox/${encodePathSegment(messageId)}/read`
3038
+ ),
3039
+ method: "post"
3040
+ }),
3041
+ markAllRead: (params = {}) => request({
3042
+ path: buildOpenXiangdaAppPath(
3043
+ context,
3044
+ params.appType,
3045
+ "/notifications/inbox/read-all"
3046
+ ),
3047
+ method: "post"
3009
3048
  })
3010
3049
  };
3011
3050
  const sdk = {