@trii/types 2.10.182 → 2.10.184

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.
@@ -0,0 +1,13 @@
1
+ export interface INote {
2
+ id: string;
3
+ spaceId: string;
4
+ contactId: string;
5
+ text: string | null;
6
+ isEdited: boolean;
7
+ createdAt: Date;
8
+ createdBy: string;
9
+ updatedAt?: Date;
10
+ updatedBy?: string;
11
+ deletedAt?: Date;
12
+ deletedBy?: string;
13
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
1
  export * from './contacts';
2
2
  export * from './segments';
3
3
  export * from './Label';
4
+ export * from './Note';
@@ -1,3 +1,4 @@
1
1
  export * from './contacts';
2
2
  export * from './segments';
3
3
  export * from './Label';
4
+ export * from './Note';
@@ -0,0 +1,33 @@
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
+ }
@@ -0,0 +1,11 @@
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 = {}));
@@ -1,6 +1,7 @@
1
1
  export * as Flows from './Flows/index';
2
2
  export * as Groups from './Groups/Group';
3
3
  export * from './Conversation';
4
+ export * from './Chat';
4
5
  export * from './Ending';
5
6
  export * from './Label';
6
7
  export * from './WebHook';
@@ -3,6 +3,7 @@ export { Flows_1 as Flows };
3
3
  import * as Groups_1 from './Groups/Group';
4
4
  export { Groups_1 as Groups };
5
5
  export * from './Conversation';
6
+ export * from './Chat';
6
7
  export * from './Ending';
7
8
  export * from './Label';
8
9
  export * from './WebHook';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.182",
3
+ "version": "2.10.184",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",