@jealous-robot-dev/shared-types-responses 1.21.8 → 1.22.1
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.
|
@@ -8,11 +8,12 @@ export declare enum LiveChannelServerMsgs {
|
|
|
8
8
|
MSG_SENT = "msg:sent",
|
|
9
9
|
MSG_EDITED = "msg:edited",
|
|
10
10
|
MSG_VIEWED = "msg:viewed",
|
|
11
|
-
MSG_DELETED = "msg:deleted"
|
|
11
|
+
MSG_DELETED = "msg:deleted",
|
|
12
|
+
CONV_DELETED_BY_MEMBER = "conv:deleted-by-mem",
|
|
13
|
+
CONV_AVAIL_ON_CHANGE = "conv:avail-on-change"
|
|
12
14
|
}
|
|
13
15
|
export interface SendMsgPayload {
|
|
14
16
|
tmp_id: number;
|
|
15
|
-
written_at: string;
|
|
16
17
|
conv_id: string;
|
|
17
18
|
author: string;
|
|
18
19
|
text?: string;
|
|
@@ -40,7 +41,14 @@ export interface MsgViewingPayload {
|
|
|
40
41
|
ids: number[];
|
|
41
42
|
conv_id: string;
|
|
42
43
|
}
|
|
43
|
-
export
|
|
44
|
+
export interface ConvDeletedByMemPayload {
|
|
45
|
+
conv_id: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ConvAvailOnChangePayload {
|
|
48
|
+
conv_id: string;
|
|
49
|
+
available: string;
|
|
50
|
+
}
|
|
51
|
+
export declare type ServerMsgs = MsgSentPayload | MsgEditionPayload | MsgDeletionPayload | MsgViewingPayload | ConvDeletedByMemPayload | ConvAvailOnChangePayload;
|
|
44
52
|
export declare type ClientMsgs = SendMsgPayload | MsgEditionPayload | MsgDeletionPayload | MsgViewingPayload;
|
|
45
53
|
export interface ClientMsg {
|
|
46
54
|
type: LiveChannelClientMsgs;
|
|
@@ -14,4 +14,6 @@ var LiveChannelServerMsgs;
|
|
|
14
14
|
LiveChannelServerMsgs["MSG_EDITED"] = "msg:edited";
|
|
15
15
|
LiveChannelServerMsgs["MSG_VIEWED"] = "msg:viewed";
|
|
16
16
|
LiveChannelServerMsgs["MSG_DELETED"] = "msg:deleted";
|
|
17
|
+
LiveChannelServerMsgs["CONV_DELETED_BY_MEMBER"] = "conv:deleted-by-mem";
|
|
18
|
+
LiveChannelServerMsgs["CONV_AVAIL_ON_CHANGE"] = "conv:avail-on-change";
|
|
17
19
|
})(LiveChannelServerMsgs = exports.LiveChannelServerMsgs || (exports.LiveChannelServerMsgs = {}));
|