@readerseye2/cr_type 1.0.26 → 1.0.27

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.
@@ -19,6 +19,11 @@ export interface MessageRequest {
19
19
  type: "text" | "image" | "notice";
20
20
  notice_payload?: NoticeMessage;
21
21
  }
22
+ export interface NoticeMessageResult {
23
+ success: boolean;
24
+ payload?: MessageRequest;
25
+ error?: string;
26
+ }
22
27
  export interface MessageResponse {
23
28
  msg: string;
24
29
  sender_type: OauthUserType;
@@ -1,4 +1,4 @@
1
- import { MessageReadResponse, MessageResponse } from "./socket-message.types";
1
+ import { MessageReadResponse, MessageResponse, NoticeMessageResult } from "./socket-message.types";
2
2
  export interface ServerToClientEvents {
3
3
  connect: () => void;
4
4
  disconnect: () => void;
@@ -12,3 +12,8 @@ export interface ServerToClientEvents {
12
12
  'chat-message:read-peer': (payload: MessageReadResponse) => void;
13
13
  'chat-message:read-self': (payload: MessageReadResponse) => void;
14
14
  }
15
+ export interface NoticeToClientEvents {
16
+ 'notice-message:result': (payload: NoticeMessageResult) => void;
17
+ }
18
+ export interface AdminServerToClientEvents extends ServerToClientEvents, NoticeToClientEvents {
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readerseye2/cr_type",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "CheckReading shared TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",