@livetiles/reach-plugin-types 0.4.0-preview.93 → 0.4.0-preview.99
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/lib/index.d.ts +18 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2912,7 +2912,7 @@ declare module "libs/reach/util/common/src/Models" {
|
|
|
2912
2912
|
import { Account } from "libs/reach/util/common/src/user/Account";
|
|
2913
2913
|
export interface Chat {
|
|
2914
2914
|
id: string;
|
|
2915
|
-
members: Account[];
|
|
2915
|
+
members: (Account & ChatMember)[];
|
|
2916
2916
|
memberIds: string[];
|
|
2917
2917
|
groupName?: string;
|
|
2918
2918
|
lastMessageInfo?: {
|
|
@@ -2923,6 +2923,10 @@ declare module "libs/reach/util/common/src/Models" {
|
|
|
2923
2923
|
deleteDate?: string;
|
|
2924
2924
|
deleteState?: DeleteState;
|
|
2925
2925
|
messageType?: ChatMessageType;
|
|
2926
|
+
messageValues?: {
|
|
2927
|
+
groupName?: string;
|
|
2928
|
+
userId?: string;
|
|
2929
|
+
};
|
|
2926
2930
|
};
|
|
2927
2931
|
messages: ChatMessage[];
|
|
2928
2932
|
hasNewMessages: boolean;
|
|
@@ -2935,7 +2939,19 @@ declare module "libs/reach/util/common/src/Models" {
|
|
|
2935
2939
|
}
|
|
2936
2940
|
export enum ChatMessageType {
|
|
2937
2941
|
Default = "DEFAULT",
|
|
2938
|
-
GroupNameChange = "GROUP_NAME_CHANGE"
|
|
2942
|
+
GroupNameChange = "GROUP_NAME_CHANGE",
|
|
2943
|
+
UserLeftGroup = "USER_LEFT_GROUP"
|
|
2944
|
+
}
|
|
2945
|
+
export enum MemberStatus {
|
|
2946
|
+
Normal = "NORMAL",
|
|
2947
|
+
LeftGroupChat = "LEFT_GROUP_CHAT",
|
|
2948
|
+
LeftOneToOneChat = "LEFT_ONE_TO_ONE_CHAT"
|
|
2949
|
+
}
|
|
2950
|
+
export interface ChatMember {
|
|
2951
|
+
id?: string;
|
|
2952
|
+
status?: MemberStatus;
|
|
2953
|
+
joinDate?: string;
|
|
2954
|
+
leftDate?: string;
|
|
2939
2955
|
}
|
|
2940
2956
|
export interface ChatMessage {
|
|
2941
2957
|
itemId: string;
|