@trii/types 2.10.317 → 2.10.318
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/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { UserInfo } from "../Users/UserTrii";
|
|
2
|
-
export interface IChat {
|
|
3
|
-
id: string;
|
|
4
|
-
spaceId: string;
|
|
5
|
-
ownerId: string;
|
|
6
|
-
type: ChatType;
|
|
7
|
-
chatName: string;
|
|
8
|
-
to: string;
|
|
9
|
-
members: IChatMemeber[];
|
|
10
|
-
memberCount: number;
|
|
11
|
-
chatImage: string;
|
|
12
|
-
lastMessage: string;
|
|
13
|
-
newMessagesCount: number;
|
|
14
|
-
archived: boolean;
|
|
15
|
-
createdAt: Date;
|
|
16
|
-
updatedAt: Date;
|
|
17
|
-
}
|
|
18
|
-
export interface IChatMemeber {
|
|
19
|
-
joinTimeStamp: Date;
|
|
20
|
-
isAdmin: boolean;
|
|
21
|
-
userId: string;
|
|
22
|
-
user: UserInfo;
|
|
23
|
-
}
|
|
24
|
-
export declare enum ChatType {
|
|
25
|
-
/**messages between two users */
|
|
26
|
-
DIRECT = 1,
|
|
27
|
-
/**messages between multiple users */
|
|
28
|
-
GROUP = 2,
|
|
29
|
-
/**Messages to discuss a conversation */
|
|
30
|
-
DISCUSS_CONVERSATION = 11,
|
|
31
|
-
/**Messages to discuss a ticket */
|
|
32
|
-
DISCUSS_TICKET = 12
|
|
33
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export var ChatType;
|
|
2
|
-
(function (ChatType) {
|
|
3
|
-
/**messages between two users */
|
|
4
|
-
ChatType[ChatType["DIRECT"] = 1] = "DIRECT";
|
|
5
|
-
/**messages between multiple users */
|
|
6
|
-
ChatType[ChatType["GROUP"] = 2] = "GROUP";
|
|
7
|
-
/**Messages to discuss a conversation */
|
|
8
|
-
ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
|
|
9
|
-
/**Messages to discuss a ticket */
|
|
10
|
-
ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
|
|
11
|
-
})(ChatType || (ChatType = {}));
|
|
File without changes
|
|
File without changes
|