@trii/types 2.10.190 → 2.10.192

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.
@@ -5,6 +5,12 @@ import { Channels } from "../Common/index";
5
5
  import { IContactInfo } from "../Contacts/contacts";
6
6
  export interface IConversation {
7
7
  id: string;
8
+ type: ChatType;
9
+ ownerId: string;
10
+ chatName: string;
11
+ chatImage: string;
12
+ chatMembers: IChatMemeber[];
13
+ chatMembersCount: number;
8
14
  contactInfo?: IContactInfo;
9
15
  direction: ConversationDirection;
10
16
  remoteAddress: string;
@@ -19,10 +25,27 @@ export interface IConversation {
19
25
  status: ConversationSatus;
20
26
  assignedTo?: ConversationAssigned;
21
27
  participants: UserInfo[];
28
+ archived: boolean;
22
29
  finalizedAt: Date;
23
30
  createdAt: Date;
24
31
  updatedAt: Date;
25
32
  }
33
+ export declare enum ChatType {
34
+ /**messages between two users */
35
+ DIRECT = 1,
36
+ /**messages between multiple users */
37
+ GROUP = 2,
38
+ /**Messages to discuss a conversation */
39
+ DISCUSS_CONVERSATION = 11,
40
+ /**Messages to discuss a ticket */
41
+ DISCUSS_TICKET = 12
42
+ }
43
+ export interface IChatMemeber {
44
+ joinTimeStamp: Date;
45
+ isAdmin: boolean;
46
+ userId: string;
47
+ user: UserInfo;
48
+ }
26
49
  export declare class ConversationAssigned {
27
50
  groupInfo?: GroupInfo;
28
51
  userInfo?: UserInfo;
@@ -1,3 +1,14 @@
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
12
  export class ConversationAssigned {
2
13
  }
3
14
  export var ConversationDirection;
@@ -1,7 +1,6 @@
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';
5
4
  export * from './Ending';
6
5
  export * from './Label';
7
6
  export * from './WebHook';
@@ -3,7 +3,6 @@ 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';
7
6
  export * from './Ending';
8
7
  export * from './Label';
9
8
  export * from './WebHook';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.190",
3
+ "version": "2.10.192",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",