@livetiles/reach-plugin-types 0.4.0-preview.94 → 0.4.0-preview.95

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +12 -1
  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?: {
@@ -2942,6 +2942,17 @@ declare module "libs/reach/util/common/src/Models" {
2942
2942
  GroupNameChange = "GROUP_NAME_CHANGE",
2943
2943
  UserLeftGroup = "USER_LEFT_GROUP"
2944
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;
2955
+ }
2945
2956
  export interface ChatMessage {
2946
2957
  itemId: string;
2947
2958
  content: string;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.0-preview.94",
7
+ "version": "0.4.0-preview.95",
8
8
  "dependencies": {}
9
9
  }