@trii/types 2.10.385 → 2.10.387

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 (215) hide show
  1. package/dist/Accounts/accounts.d.ts +88 -88
  2. package/dist/Accounts/accounts.js +21 -21
  3. package/dist/Accounts/device.d.ts +31 -31
  4. package/dist/Accounts/device.js +16 -16
  5. package/dist/Accounts/index.d.ts +2 -2
  6. package/dist/Accounts/index.js +2 -2
  7. package/dist/ApiResponses/index.d.ts +8 -8
  8. package/dist/ApiResponses/index.js +1 -1
  9. package/dist/AuditLogs/auditLog.d.ts +7 -7
  10. package/dist/AuditLogs/auditLog.js +1 -1
  11. package/dist/AuditLogs/auditLogType.d.ts +5 -5
  12. package/dist/AuditLogs/auditLogType.js +6 -6
  13. package/dist/AuditLogs/index.d.ts +2 -2
  14. package/dist/AuditLogs/index.js +2 -2
  15. package/dist/Calendar/Event.d.ts +63 -63
  16. package/dist/Calendar/Event.js +13 -13
  17. package/dist/Calendar/index.d.ts +1 -1
  18. package/dist/Calendar/index.js +1 -1
  19. package/dist/Calls/Call.d.ts +55 -55
  20. package/dist/Calls/Call.js +22 -22
  21. package/dist/Calls/index.d.ts +1 -1
  22. package/dist/Calls/index.js +1 -1
  23. package/dist/Common/API/AuthApiKey.d.ts +5 -5
  24. package/dist/Common/API/AuthApiKey.js +1 -1
  25. package/dist/Common/API/AuthBasic.d.ts +4 -4
  26. package/dist/Common/API/AuthBasic.js +1 -1
  27. package/dist/Common/API/AuthBearer.d.ts +5 -5
  28. package/dist/Common/API/AuthBearer.js +1 -1
  29. package/dist/Common/API/AuthType.d.ts +6 -6
  30. package/dist/Common/API/AuthType.js +7 -7
  31. package/dist/Common/API/Method.d.ts +4 -4
  32. package/dist/Common/API/Method.js +5 -5
  33. package/dist/Common/API/index.d.ts +5 -5
  34. package/dist/Common/API/index.js +5 -5
  35. package/dist/Common/Channels/Channel.d.ts +47 -47
  36. package/dist/Common/Channels/Channel.js +1 -1
  37. package/dist/Common/Channels/ChannelType.d.ts +24 -24
  38. package/dist/Common/Channels/ChannelType.js +25 -25
  39. package/dist/Common/Channels/Email.d.ts +59 -59
  40. package/dist/Common/Channels/Email.js +30 -30
  41. package/dist/Common/Channels/Facebook.d.ts +23 -23
  42. package/dist/Common/Channels/Facebook.js +2 -2
  43. package/dist/Common/Channels/Form.d.ts +52 -52
  44. package/dist/Common/Channels/Form.js +25 -25
  45. package/dist/Common/Channels/GoogleBusiness.d.ts +20 -20
  46. package/dist/Common/Channels/GoogleBusiness.js +4 -4
  47. package/dist/Common/Channels/Instagram.d.ts +22 -22
  48. package/dist/Common/Channels/Instagram.js +2 -2
  49. package/dist/Common/Channels/MercadoLibre.d.ts +27 -27
  50. package/dist/Common/Channels/MercadoLibre.js +4 -4
  51. package/dist/Common/Channels/Pbx.d.ts +2 -2
  52. package/dist/Common/Channels/Pbx.js +2 -2
  53. package/dist/Common/Channels/Permission.d.ts +6 -6
  54. package/dist/Common/Channels/Permission.js +2 -2
  55. package/dist/Common/Channels/RCS.d.ts +33 -33
  56. package/dist/Common/Channels/RCS.js +4 -4
  57. package/dist/Common/Channels/Sip.d.ts +2 -2
  58. package/dist/Common/Channels/Sip.js +2 -2
  59. package/dist/Common/Channels/Sms.d.ts +42 -42
  60. package/dist/Common/Channels/Sms.js +12 -12
  61. package/dist/Common/Channels/WebChat.d.ts +60 -60
  62. package/dist/Common/Channels/WebChat.js +14 -14
  63. package/dist/Common/Channels/WhatsApp.d.ts +41 -41
  64. package/dist/Common/Channels/WhatsApp.js +10 -10
  65. package/dist/Common/Channels/index.d.ts +15 -15
  66. package/dist/Common/Channels/index.js +15 -15
  67. package/dist/Common/EventsQueue/EmailTemplate.d.ts +10 -10
  68. package/dist/Common/EventsQueue/EmailTemplate.js +1 -1
  69. package/dist/Common/EventsQueue/EventQueue.d.ts +12 -12
  70. package/dist/Common/EventsQueue/EventQueue.js +1 -1
  71. package/dist/Common/EventsQueue/UserUpdate.d.ts +8 -8
  72. package/dist/Common/EventsQueue/UserUpdate.js +1 -1
  73. package/dist/Common/EventsQueue/index.d.ts +3 -3
  74. package/dist/Common/EventsQueue/index.js +3 -3
  75. package/dist/Common/Logs/Log.d.ts +18 -18
  76. package/dist/Common/Logs/Log.js +10 -10
  77. package/dist/Common/Logs/index.d.ts +1 -1
  78. package/dist/Common/Logs/index.js +1 -1
  79. package/dist/Common/Messages/MediaFile.d.ts +5 -5
  80. package/dist/Common/Messages/MediaFile.js +1 -1
  81. package/dist/Common/Messages/Message.d.ts +359 -359
  82. package/dist/Common/Messages/Message.js +53 -53
  83. package/dist/Common/Messages/Template.d.ts +62 -62
  84. package/dist/Common/Messages/Template.js +20 -20
  85. package/dist/Common/Messages/index.d.ts +3 -3
  86. package/dist/Common/Messages/index.js +3 -3
  87. package/dist/Common/Notifications/Notification.d.ts +19 -19
  88. package/dist/Common/Notifications/Notification.js +7 -7
  89. package/dist/Common/Notifications/UserNotificationsConfig.d.ts +30 -30
  90. package/dist/Common/Notifications/UserNotificationsConfig.js +8 -8
  91. package/dist/Common/Notifications/index.d.ts +2 -2
  92. package/dist/Common/Notifications/index.js +2 -2
  93. package/dist/Common/Schedules/Schedules.d.ts +32 -32
  94. package/dist/Common/Schedules/Schedules.js +1 -1
  95. package/dist/Common/Schedules/index.d.ts +1 -1
  96. package/dist/Common/Schedules/index.js +1 -1
  97. package/dist/Common/index.d.ts +6 -6
  98. package/dist/Common/index.js +12 -12
  99. package/dist/Contacts/File.d.ts +17 -17
  100. package/dist/Contacts/File.js +1 -1
  101. package/dist/Contacts/Label.d.ts +9 -9
  102. package/dist/Contacts/Label.js +1 -1
  103. package/dist/Contacts/Note.d.ts +15 -15
  104. package/dist/Contacts/Note.js +1 -1
  105. package/dist/Contacts/contacts.d.ts +240 -240
  106. package/dist/Contacts/contacts.js +39 -39
  107. package/dist/Contacts/index.d.ts +5 -5
  108. package/dist/Contacts/index.js +5 -5
  109. package/dist/Contacts/segments.d.ts +51 -51
  110. package/dist/Contacts/segments.js +49 -49
  111. package/dist/Conversations/Conversation.d.ts +92 -92
  112. package/dist/Conversations/Conversation.js +44 -44
  113. package/dist/Conversations/DashBoard/dashboard.d.ts +84 -84
  114. package/dist/Conversations/DashBoard/dashboard.js +45 -45
  115. package/dist/Conversations/DashBoard/dashboardChannels.d.ts +5 -5
  116. package/dist/Conversations/DashBoard/dashboardChannels.js +2 -2
  117. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -44
  118. package/dist/Conversations/DashBoard/dashboardForms.js +14 -14
  119. package/dist/Conversations/DashBoard/dashboardMessages.d.ts +13 -13
  120. package/dist/Conversations/DashBoard/dashboardMessages.js +4 -4
  121. package/dist/Conversations/Ending.d.ts +11 -11
  122. package/dist/Conversations/Ending.js +1 -1
  123. package/dist/Conversations/Flows/Flow.d.ts +104 -104
  124. package/dist/Conversations/Flows/Flow.js +36 -36
  125. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +20 -20
  126. package/dist/Conversations/Flows/Nodes/NodeApi.js +2 -2
  127. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +21 -21
  128. package/dist/Conversations/Flows/Nodes/NodeConditional.js +16 -16
  129. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +8 -8
  130. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +2 -2
  131. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +12 -12
  132. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +7 -7
  133. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +6 -6
  134. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +2 -2
  135. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +4 -4
  136. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +2 -2
  137. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +15 -15
  138. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +11 -11
  139. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +12 -12
  140. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +4 -4
  141. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +22 -22
  142. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -9
  143. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +47 -47
  144. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -27
  145. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +45 -45
  146. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +31 -31
  147. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +7 -7
  148. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +2 -2
  149. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +9 -9
  150. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +2 -2
  151. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +14 -14
  152. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +8 -8
  153. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +32 -32
  154. package/dist/Conversations/Flows/Nodes/NodeStart.js +184 -184
  155. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +6 -6
  156. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +2 -2
  157. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +9 -9
  158. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +2 -2
  159. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +6 -6
  160. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +2 -2
  161. package/dist/Conversations/Flows/Nodes/index.d.ts +18 -18
  162. package/dist/Conversations/Flows/Nodes/index.js +18 -18
  163. package/dist/Conversations/Flows/index.d.ts +2 -2
  164. package/dist/Conversations/Flows/index.js +3 -3
  165. package/dist/Conversations/Groups/Group.d.ts +23 -23
  166. package/dist/Conversations/Groups/Group.js +6 -6
  167. package/dist/Conversations/Label.d.ts +10 -10
  168. package/dist/Conversations/Label.js +1 -1
  169. package/dist/Conversations/QuickResponse.d.ts +34 -34
  170. package/dist/Conversations/QuickResponse.js +1 -1
  171. package/dist/Conversations/SocialWalls.d.ts +55 -54
  172. package/dist/Conversations/SocialWalls.js +1 -1
  173. package/dist/Conversations/WebHook.d.ts +22 -22
  174. package/dist/Conversations/WebHook.js +1 -1
  175. package/dist/Conversations/index.d.ts +12 -12
  176. package/dist/Conversations/index.js +14 -14
  177. package/dist/Marketing/Campaign.d.ts +50 -50
  178. package/dist/Marketing/Campaign.js +25 -25
  179. package/dist/Marketing/Dashboard.d.ts +48 -48
  180. package/dist/Marketing/Dashboard.js +1 -1
  181. package/dist/Marketing/index.d.ts +2 -2
  182. package/dist/Marketing/index.js +2 -2
  183. package/dist/PublicAPI/apiKey.d.ts +12 -12
  184. package/dist/PublicAPI/apiKey.js +1 -1
  185. package/dist/Security/Security.d.ts +5 -5
  186. package/dist/Security/Security.js +1 -1
  187. package/dist/Security/index.d.ts +1 -1
  188. package/dist/Security/index.js +1 -1
  189. package/dist/Spaces/Dashboard.d.ts +4 -4
  190. package/dist/Spaces/Dashboard.js +1 -1
  191. package/dist/Spaces/index.d.ts +2 -2
  192. package/dist/Spaces/index.js +2 -2
  193. package/dist/Spaces/spaces.d.ts +92 -92
  194. package/dist/Spaces/spaces.js +77 -77
  195. package/dist/Tickets/AccessLevel.d.ts +5 -5
  196. package/dist/Tickets/AccessLevel.js +6 -6
  197. package/dist/Tickets/index.d.ts +1 -1
  198. package/dist/Tickets/index.js +1 -1
  199. package/dist/Users/UserActivitySummary.d.ts +5 -5
  200. package/dist/Users/UserActivitySummary.js +1 -1
  201. package/dist/Users/UserProfile.d.ts +105 -105
  202. package/dist/Users/UserProfile.js +78 -78
  203. package/dist/Users/UserTrii.d.ts +94 -94
  204. package/dist/Users/UserTrii.js +15 -15
  205. package/dist/Users/UserType.d.ts +10 -10
  206. package/dist/Users/UserType.js +11 -11
  207. package/dist/Users/index.d.ts +4 -4
  208. package/dist/Users/index.js +4 -4
  209. package/dist/index.d.ts +14 -14
  210. package/dist/index.js +28 -28
  211. package/package.json +5 -2
  212. package/dist/Campaigns/Campaign.d.ts +0 -40
  213. package/dist/Campaigns/Campaign.js +0 -18
  214. package/dist/Campaigns/index.d.ts +0 -1
  215. package/dist/Campaigns/index.js +0 -1
@@ -1,51 +1,51 @@
1
- import { ContactField_type } from "./contacts";
2
- export interface ISegment {
3
- id: string;
4
- spaceId?: string | null;
5
- name?: string | null;
6
- description?: string | null;
7
- count: number;
8
- lists: ISegmentList[];
9
- filter?: ISegmentFilter;
10
- countLastUpdate?: string | null;
11
- createdAt?: string | null;
12
- updatedAt?: string | null;
13
- deletedAt?: string | null;
14
- }
15
- export interface ISegmentList {
16
- id: string;
17
- name: string | null;
18
- }
19
- export interface ISegmentFilter {
20
- operator: string | 'AND';
21
- groups: ISegmentFilterGroup[];
22
- }
23
- export interface ISegmentFilterGroup {
24
- operator: string | 'OR';
25
- items: ISegmentFilterGroupItem[];
26
- }
27
- export interface ISegmentFilterGroupItem {
28
- field: string;
29
- condition: string;
30
- value: string;
31
- }
32
- export declare enum Segment_Filter_Operator {
33
- NULL = 0,
34
- LESS_THAN = 1,
35
- LESS_THAN_EQUAL = 2,
36
- EQUAL = 3,
37
- GREATER_THAN_EQUAL = 4,
38
- GREATER_THAN = 5,
39
- START_WITH = 6,
40
- END_WITH = 7,
41
- CONTAINS = 8,
42
- NOT_CONTAINS = 9,
43
- ANY_VALUE = 10
44
- }
45
- export interface filter {
46
- key: string;
47
- type: ContactField_type;
48
- }
49
- export declare const Segment_Filter_Details: filter[];
50
- export declare const Segment_Filter_Geography: filter[];
51
- export declare const Segment_Filter_Account: filter[];
1
+ import { ContactField_type } from "./contacts";
2
+ export interface ISegment {
3
+ id: string;
4
+ spaceId?: string | null;
5
+ name?: string | null;
6
+ description?: string | null;
7
+ count: number;
8
+ lists: ISegmentList[];
9
+ filter?: ISegmentFilter;
10
+ countLastUpdate?: string | null;
11
+ createdAt?: string | null;
12
+ updatedAt?: string | null;
13
+ deletedAt?: string | null;
14
+ }
15
+ export interface ISegmentList {
16
+ id: string;
17
+ name: string | null;
18
+ }
19
+ export interface ISegmentFilter {
20
+ operator: string | 'AND';
21
+ groups: ISegmentFilterGroup[];
22
+ }
23
+ export interface ISegmentFilterGroup {
24
+ operator: string | 'OR';
25
+ items: ISegmentFilterGroupItem[];
26
+ }
27
+ export interface ISegmentFilterGroupItem {
28
+ field: string;
29
+ condition: string;
30
+ value: string;
31
+ }
32
+ export declare enum Segment_Filter_Operator {
33
+ NULL = 0,
34
+ LESS_THAN = 1,
35
+ LESS_THAN_EQUAL = 2,
36
+ EQUAL = 3,
37
+ GREATER_THAN_EQUAL = 4,
38
+ GREATER_THAN = 5,
39
+ START_WITH = 6,
40
+ END_WITH = 7,
41
+ CONTAINS = 8,
42
+ NOT_CONTAINS = 9,
43
+ ANY_VALUE = 10
44
+ }
45
+ export interface filter {
46
+ key: string;
47
+ type: ContactField_type;
48
+ }
49
+ export declare const Segment_Filter_Details: filter[];
50
+ export declare const Segment_Filter_Geography: filter[];
51
+ export declare const Segment_Filter_Account: filter[];
@@ -1,49 +1,49 @@
1
- import { ContactField_type } from "./contacts";
2
- export var Segment_Filter_Operator;
3
- (function (Segment_Filter_Operator) {
4
- Segment_Filter_Operator[Segment_Filter_Operator["NULL"] = 0] = "NULL";
5
- Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN"] = 1] = "LESS_THAN";
6
- Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN_EQUAL"] = 2] = "LESS_THAN_EQUAL";
7
- Segment_Filter_Operator[Segment_Filter_Operator["EQUAL"] = 3] = "EQUAL";
8
- Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN_EQUAL"] = 4] = "GREATER_THAN_EQUAL";
9
- Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN"] = 5] = "GREATER_THAN";
10
- Segment_Filter_Operator[Segment_Filter_Operator["START_WITH"] = 6] = "START_WITH";
11
- Segment_Filter_Operator[Segment_Filter_Operator["END_WITH"] = 7] = "END_WITH";
12
- Segment_Filter_Operator[Segment_Filter_Operator["CONTAINS"] = 8] = "CONTAINS";
13
- Segment_Filter_Operator[Segment_Filter_Operator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
14
- Segment_Filter_Operator[Segment_Filter_Operator["ANY_VALUE"] = 10] = "ANY_VALUE";
15
- })(Segment_Filter_Operator || (Segment_Filter_Operator = {}));
16
- export const Segment_Filter_Details = [
17
- {
18
- key: "details.name",
19
- type: ContactField_type.TEXT
20
- },
21
- {
22
- key: "details.email",
23
- type: ContactField_type.TEXT
24
- },
25
- ];
26
- export const Segment_Filter_Geography = [
27
- {
28
- key: "geography.country",
29
- type: ContactField_type.TEXT
30
- },
31
- {
32
- key: "details.city",
33
- type: ContactField_type.TEXT
34
- }
35
- ];
36
- export const Segment_Filter_Account = [
37
- {
38
- key: "account.name",
39
- type: ContactField_type.TEXT
40
- },
41
- {
42
- key: "account.email",
43
- type: ContactField_type.TEXT
44
- },
45
- {
46
- key: "account.numberOfEmployees",
47
- type: ContactField_type.NUMBER_INTEGER
48
- }
49
- ];
1
+ import { ContactField_type } from "./contacts";
2
+ export var Segment_Filter_Operator;
3
+ (function (Segment_Filter_Operator) {
4
+ Segment_Filter_Operator[Segment_Filter_Operator["NULL"] = 0] = "NULL";
5
+ Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN"] = 1] = "LESS_THAN";
6
+ Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN_EQUAL"] = 2] = "LESS_THAN_EQUAL";
7
+ Segment_Filter_Operator[Segment_Filter_Operator["EQUAL"] = 3] = "EQUAL";
8
+ Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN_EQUAL"] = 4] = "GREATER_THAN_EQUAL";
9
+ Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN"] = 5] = "GREATER_THAN";
10
+ Segment_Filter_Operator[Segment_Filter_Operator["START_WITH"] = 6] = "START_WITH";
11
+ Segment_Filter_Operator[Segment_Filter_Operator["END_WITH"] = 7] = "END_WITH";
12
+ Segment_Filter_Operator[Segment_Filter_Operator["CONTAINS"] = 8] = "CONTAINS";
13
+ Segment_Filter_Operator[Segment_Filter_Operator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
14
+ Segment_Filter_Operator[Segment_Filter_Operator["ANY_VALUE"] = 10] = "ANY_VALUE";
15
+ })(Segment_Filter_Operator || (Segment_Filter_Operator = {}));
16
+ export const Segment_Filter_Details = [
17
+ {
18
+ key: "details.name",
19
+ type: ContactField_type.TEXT
20
+ },
21
+ {
22
+ key: "details.email",
23
+ type: ContactField_type.TEXT
24
+ },
25
+ ];
26
+ export const Segment_Filter_Geography = [
27
+ {
28
+ key: "geography.country",
29
+ type: ContactField_type.TEXT
30
+ },
31
+ {
32
+ key: "details.city",
33
+ type: ContactField_type.TEXT
34
+ }
35
+ ];
36
+ export const Segment_Filter_Account = [
37
+ {
38
+ key: "account.name",
39
+ type: ContactField_type.TEXT
40
+ },
41
+ {
42
+ key: "account.email",
43
+ type: ContactField_type.TEXT
44
+ },
45
+ {
46
+ key: "account.numberOfEmployees",
47
+ type: ContactField_type.NUMBER_INTEGER
48
+ }
49
+ ];
@@ -1,92 +1,92 @@
1
- import { UserInfo } from "../Users/UserTrii";
2
- import { ILabel } from "./Label";
3
- import { GroupInfo } from "./Groups/Group";
4
- import { Channels } from "../Common/index";
5
- import { IContactInfo } from "../Contacts/contacts";
6
- import { IEnding } from "./Ending";
7
- export interface IConversation {
8
- id: string;
9
- /**only for Front-End */
10
- idLocal?: number;
11
- spaceId: string;
12
- type: ChatType;
13
- ownerId: string;
14
- chatName: string;
15
- chatImage: string;
16
- chatMembers: IChatMemeber[];
17
- chatMembersCount: number;
18
- contactInfo?: IContactInfo;
19
- direction: ConversationDirection;
20
- remoteAddress: string;
21
- remoteAddressId: string;
22
- channelInfo: Channels.IChannelInfo;
23
- lastMessage: string;
24
- newMessagesCount: number;
25
- labels: ILabel[];
26
- pinned: boolean;
27
- transferBy?: string;
28
- transferTo?: ConversationAssigned;
29
- expired: boolean;
30
- expiredAssignedTo: ConversationAssigned;
31
- status: ConversationSatus;
32
- assignedTo?: ConversationAssigned;
33
- participants: UserInfo[];
34
- archived: boolean;
35
- workflowId?: string;
36
- botStatus: ConversationBotStatus;
37
- botVars: ConversationBotVar[];
38
- finalizedAt: Date;
39
- ending?: IEnding;
40
- createdAt: Date;
41
- updatedAt: Date;
42
- }
43
- export declare enum ConversationBotStatus {
44
- NONE = 0,
45
- WAITING = 1,
46
- PROCESSING = 2,
47
- FINALIZED = 4,
48
- CANCELED = 5
49
- }
50
- export declare class ConversationBotVar {
51
- title: string;
52
- value: string;
53
- }
54
- export declare enum ChatType {
55
- /**Conversation with a external channel/contact */
56
- EXTERNAL = 0,
57
- /**messages between two users */
58
- DIRECT = 1,
59
- /**messages between multiple users */
60
- GROUP = 2,
61
- /**Messages to discuss a conversation */
62
- DISCUSS_CONVERSATION = 11,
63
- /**Messages to discuss a ticket */
64
- DISCUSS_TICKET = 12
65
- }
66
- export interface IChatMemeber {
67
- joinTimeStamp: Date;
68
- isAdmin: boolean;
69
- userId: string;
70
- user: UserInfo;
71
- }
72
- export declare class ConversationAssigned {
73
- groupInfo?: GroupInfo;
74
- userInfo?: UserInfo;
75
- userIds?: string[];
76
- }
77
- export declare enum ConversationDirection {
78
- INBOUND = 1,
79
- OUTBOUND = 2
80
- }
81
- export declare enum ConversationSatus {
82
- NEW = 1,
83
- ACTIVE = 2,
84
- FINALIZED = 3,
85
- ARCHIVED = 4
86
- }
87
- export declare enum AssignMethod {
88
- ALL = 0,
89
- ROUND_ROBIN = 1,
90
- RANDOM = 2,
91
- LEAST_BUSY = 3
92
- }
1
+ import { UserInfo } from "../Users/UserTrii";
2
+ import { ILabel } from "./Label";
3
+ import { GroupInfo } from "./Groups/Group";
4
+ import { Channels } from "../Common/index";
5
+ import { IContactInfo } from "../Contacts/contacts";
6
+ import { IEnding } from "./Ending";
7
+ export interface IConversation {
8
+ id: string;
9
+ /**only for Front-End */
10
+ idLocal?: number;
11
+ spaceId: string;
12
+ type: ChatType;
13
+ ownerId: string;
14
+ chatName: string;
15
+ chatImage: string;
16
+ chatMembers: IChatMemeber[];
17
+ chatMembersCount: number;
18
+ contactInfo?: IContactInfo;
19
+ direction: ConversationDirection;
20
+ remoteAddress: string;
21
+ remoteAddressId: string;
22
+ channelInfo: Channels.IChannelInfo;
23
+ lastMessage: string;
24
+ newMessagesCount: number;
25
+ labels: ILabel[];
26
+ pinned: boolean;
27
+ transferBy?: string;
28
+ transferTo?: ConversationAssigned;
29
+ expired: boolean;
30
+ expiredAssignedTo: ConversationAssigned;
31
+ status: ConversationSatus;
32
+ assignedTo?: ConversationAssigned;
33
+ participants: UserInfo[];
34
+ archived: boolean;
35
+ workflowId?: string;
36
+ botStatus: ConversationBotStatus;
37
+ botVars: ConversationBotVar[];
38
+ finalizedAt: Date;
39
+ ending?: IEnding;
40
+ createdAt: Date;
41
+ updatedAt: Date;
42
+ }
43
+ export declare enum ConversationBotStatus {
44
+ NONE = 0,
45
+ WAITING = 1,
46
+ PROCESSING = 2,
47
+ FINALIZED = 4,
48
+ CANCELED = 5
49
+ }
50
+ export declare class ConversationBotVar {
51
+ title: string;
52
+ value: string;
53
+ }
54
+ export declare enum ChatType {
55
+ /**Conversation with a external channel/contact */
56
+ EXTERNAL = 0,
57
+ /**messages between two users */
58
+ DIRECT = 1,
59
+ /**messages between multiple users */
60
+ GROUP = 2,
61
+ /**Messages to discuss a conversation */
62
+ DISCUSS_CONVERSATION = 11,
63
+ /**Messages to discuss a ticket */
64
+ DISCUSS_TICKET = 12
65
+ }
66
+ export interface IChatMemeber {
67
+ joinTimeStamp: Date;
68
+ isAdmin: boolean;
69
+ userId: string;
70
+ user: UserInfo;
71
+ }
72
+ export declare class ConversationAssigned {
73
+ groupInfo?: GroupInfo;
74
+ userInfo?: UserInfo;
75
+ userIds?: string[];
76
+ }
77
+ export declare enum ConversationDirection {
78
+ INBOUND = 1,
79
+ OUTBOUND = 2
80
+ }
81
+ export declare enum ConversationSatus {
82
+ NEW = 1,
83
+ ACTIVE = 2,
84
+ FINALIZED = 3,
85
+ ARCHIVED = 4
86
+ }
87
+ export declare enum AssignMethod {
88
+ ALL = 0,
89
+ ROUND_ROBIN = 1,
90
+ RANDOM = 2,
91
+ LEAST_BUSY = 3
92
+ }
@@ -1,44 +1,44 @@
1
- export var ConversationBotStatus;
2
- (function (ConversationBotStatus) {
3
- ConversationBotStatus[ConversationBotStatus["NONE"] = 0] = "NONE";
4
- ConversationBotStatus[ConversationBotStatus["WAITING"] = 1] = "WAITING";
5
- ConversationBotStatus[ConversationBotStatus["PROCESSING"] = 2] = "PROCESSING";
6
- ConversationBotStatus[ConversationBotStatus["FINALIZED"] = 4] = "FINALIZED";
7
- ConversationBotStatus[ConversationBotStatus["CANCELED"] = 5] = "CANCELED";
8
- })(ConversationBotStatus || (ConversationBotStatus = {}));
9
- export class ConversationBotVar {
10
- }
11
- export var ChatType;
12
- (function (ChatType) {
13
- /**Conversation with a external channel/contact */
14
- ChatType[ChatType["EXTERNAL"] = 0] = "EXTERNAL";
15
- /**messages between two users */
16
- ChatType[ChatType["DIRECT"] = 1] = "DIRECT";
17
- /**messages between multiple users */
18
- ChatType[ChatType["GROUP"] = 2] = "GROUP";
19
- /**Messages to discuss a conversation */
20
- ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
21
- /**Messages to discuss a ticket */
22
- ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
23
- })(ChatType || (ChatType = {}));
24
- export class ConversationAssigned {
25
- }
26
- export var ConversationDirection;
27
- (function (ConversationDirection) {
28
- ConversationDirection[ConversationDirection["INBOUND"] = 1] = "INBOUND";
29
- ConversationDirection[ConversationDirection["OUTBOUND"] = 2] = "OUTBOUND";
30
- })(ConversationDirection || (ConversationDirection = {}));
31
- export var ConversationSatus;
32
- (function (ConversationSatus) {
33
- ConversationSatus[ConversationSatus["NEW"] = 1] = "NEW";
34
- ConversationSatus[ConversationSatus["ACTIVE"] = 2] = "ACTIVE";
35
- ConversationSatus[ConversationSatus["FINALIZED"] = 3] = "FINALIZED";
36
- ConversationSatus[ConversationSatus["ARCHIVED"] = 4] = "ARCHIVED";
37
- })(ConversationSatus || (ConversationSatus = {}));
38
- export var AssignMethod;
39
- (function (AssignMethod) {
40
- AssignMethod[AssignMethod["ALL"] = 0] = "ALL";
41
- AssignMethod[AssignMethod["ROUND_ROBIN"] = 1] = "ROUND_ROBIN";
42
- AssignMethod[AssignMethod["RANDOM"] = 2] = "RANDOM";
43
- AssignMethod[AssignMethod["LEAST_BUSY"] = 3] = "LEAST_BUSY";
44
- })(AssignMethod || (AssignMethod = {}));
1
+ export var ConversationBotStatus;
2
+ (function (ConversationBotStatus) {
3
+ ConversationBotStatus[ConversationBotStatus["NONE"] = 0] = "NONE";
4
+ ConversationBotStatus[ConversationBotStatus["WAITING"] = 1] = "WAITING";
5
+ ConversationBotStatus[ConversationBotStatus["PROCESSING"] = 2] = "PROCESSING";
6
+ ConversationBotStatus[ConversationBotStatus["FINALIZED"] = 4] = "FINALIZED";
7
+ ConversationBotStatus[ConversationBotStatus["CANCELED"] = 5] = "CANCELED";
8
+ })(ConversationBotStatus || (ConversationBotStatus = {}));
9
+ export class ConversationBotVar {
10
+ }
11
+ export var ChatType;
12
+ (function (ChatType) {
13
+ /**Conversation with a external channel/contact */
14
+ ChatType[ChatType["EXTERNAL"] = 0] = "EXTERNAL";
15
+ /**messages between two users */
16
+ ChatType[ChatType["DIRECT"] = 1] = "DIRECT";
17
+ /**messages between multiple users */
18
+ ChatType[ChatType["GROUP"] = 2] = "GROUP";
19
+ /**Messages to discuss a conversation */
20
+ ChatType[ChatType["DISCUSS_CONVERSATION"] = 11] = "DISCUSS_CONVERSATION";
21
+ /**Messages to discuss a ticket */
22
+ ChatType[ChatType["DISCUSS_TICKET"] = 12] = "DISCUSS_TICKET";
23
+ })(ChatType || (ChatType = {}));
24
+ export class ConversationAssigned {
25
+ }
26
+ export var ConversationDirection;
27
+ (function (ConversationDirection) {
28
+ ConversationDirection[ConversationDirection["INBOUND"] = 1] = "INBOUND";
29
+ ConversationDirection[ConversationDirection["OUTBOUND"] = 2] = "OUTBOUND";
30
+ })(ConversationDirection || (ConversationDirection = {}));
31
+ export var ConversationSatus;
32
+ (function (ConversationSatus) {
33
+ ConversationSatus[ConversationSatus["NEW"] = 1] = "NEW";
34
+ ConversationSatus[ConversationSatus["ACTIVE"] = 2] = "ACTIVE";
35
+ ConversationSatus[ConversationSatus["FINALIZED"] = 3] = "FINALIZED";
36
+ ConversationSatus[ConversationSatus["ARCHIVED"] = 4] = "ARCHIVED";
37
+ })(ConversationSatus || (ConversationSatus = {}));
38
+ export var AssignMethod;
39
+ (function (AssignMethod) {
40
+ AssignMethod[AssignMethod["ALL"] = 0] = "ALL";
41
+ AssignMethod[AssignMethod["ROUND_ROBIN"] = 1] = "ROUND_ROBIN";
42
+ AssignMethod[AssignMethod["RANDOM"] = 2] = "RANDOM";
43
+ AssignMethod[AssignMethod["LEAST_BUSY"] = 3] = "LEAST_BUSY";
44
+ })(AssignMethod || (AssignMethod = {}));
@@ -1,84 +1,84 @@
1
- import { ChannelType } from "../../Common/Channels/ChannelType";
2
- export declare enum TimeRange {
3
- DAY = 1,
4
- WEEK = 7,
5
- MONTH = 30,
6
- YEAR = 365,
7
- LAST_7_DAYS = 77,
8
- LAST_30_DAYS = 3030,
9
- LAST_60_DAYS = 60,
10
- CUSTOM = 0
11
- }
12
- export declare class BodyDashboard {
13
- userId: string;
14
- timeRange: TimeRange | TimeRange.DAY;
15
- timeStart: Date | null;
16
- timeEnd: Date | null;
17
- memberId: string | null;
18
- groupId: string;
19
- }
20
- export declare enum GeneralDashboardType {
21
- USER = 1,
22
- GROUP = 2
23
- }
24
- export declare class GeneralDashboard {
25
- type: GeneralDashboardType | GeneralDashboardType.USER;
26
- userId: string | null;
27
- groupId: string | null;
28
- name: string;
29
- imageUrl: string;
30
- quantity: number;
31
- }
32
- export declare enum RecordsDashboardType {
33
- ALL = 0,
34
- NEW = 1,
35
- IN_PROGRESS = 2,
36
- EXPIRED = 3
37
- }
38
- export declare class RecordsDashboard {
39
- type: RecordsDashboardType | RecordsDashboardType.ALL;
40
- quantity: number;
41
- }
42
- export declare class EndingsDashboard {
43
- endingId: string;
44
- name: string;
45
- quantity: number;
46
- }
47
- export declare class MembersDashboard {
48
- optionsList: MembersDashboardOption[];
49
- values: MembersDashboardValue[];
50
- }
51
- export declare class MembersDashboardOption {
52
- key: string;
53
- name: string;
54
- }
55
- export declare class MembersDashboardValue {
56
- key: string;
57
- activeConversations: number;
58
- inProgressConversations: number;
59
- expiredConversations: number;
60
- endingConversations: number;
61
- averageFirstResponseTime: string | null;
62
- totalTime: string | null;
63
- loginTime: string | null;
64
- }
65
- export declare class ChannelsDashboard {
66
- channelType: ChannelType;
67
- quantity: number;
68
- channelName: string;
69
- }
70
- export declare class LabelsDashboard {
71
- labelId: string;
72
- name: string;
73
- quantity: number;
74
- }
75
- export declare class TimesDashboard {
76
- averageFirstResponseTime: string;
77
- finalizedTime: string;
78
- }
79
- export declare class QuantityDashboard {
80
- contactsQuantity: number;
81
- finalizedQuantity: number;
82
- onlineAgentsQuantity: number;
83
- groupAgentsQuantity: number;
84
- }
1
+ import { ChannelType } from "../../Common/Channels/ChannelType";
2
+ export declare enum TimeRange {
3
+ DAY = 1,
4
+ WEEK = 7,
5
+ MONTH = 30,
6
+ YEAR = 365,
7
+ LAST_7_DAYS = 77,
8
+ LAST_30_DAYS = 3030,
9
+ LAST_60_DAYS = 60,
10
+ CUSTOM = 0
11
+ }
12
+ export declare class BodyDashboard {
13
+ userId: string;
14
+ timeRange: TimeRange | TimeRange.DAY;
15
+ timeStart: Date | null;
16
+ timeEnd: Date | null;
17
+ memberId: string | null;
18
+ groupId: string;
19
+ }
20
+ export declare enum GeneralDashboardType {
21
+ USER = 1,
22
+ GROUP = 2
23
+ }
24
+ export declare class GeneralDashboard {
25
+ type: GeneralDashboardType | GeneralDashboardType.USER;
26
+ userId: string | null;
27
+ groupId: string | null;
28
+ name: string;
29
+ imageUrl: string;
30
+ quantity: number;
31
+ }
32
+ export declare enum RecordsDashboardType {
33
+ ALL = 0,
34
+ NEW = 1,
35
+ IN_PROGRESS = 2,
36
+ EXPIRED = 3
37
+ }
38
+ export declare class RecordsDashboard {
39
+ type: RecordsDashboardType | RecordsDashboardType.ALL;
40
+ quantity: number;
41
+ }
42
+ export declare class EndingsDashboard {
43
+ endingId: string;
44
+ name: string;
45
+ quantity: number;
46
+ }
47
+ export declare class MembersDashboard {
48
+ optionsList: MembersDashboardOption[];
49
+ values: MembersDashboardValue[];
50
+ }
51
+ export declare class MembersDashboardOption {
52
+ key: string;
53
+ name: string;
54
+ }
55
+ export declare class MembersDashboardValue {
56
+ key: string;
57
+ activeConversations: number;
58
+ inProgressConversations: number;
59
+ expiredConversations: number;
60
+ endingConversations: number;
61
+ averageFirstResponseTime: string | null;
62
+ totalTime: string | null;
63
+ loginTime: string | null;
64
+ }
65
+ export declare class ChannelsDashboard {
66
+ channelType: ChannelType;
67
+ quantity: number;
68
+ channelName: string;
69
+ }
70
+ export declare class LabelsDashboard {
71
+ labelId: string;
72
+ name: string;
73
+ quantity: number;
74
+ }
75
+ export declare class TimesDashboard {
76
+ averageFirstResponseTime: string;
77
+ finalizedTime: string;
78
+ }
79
+ export declare class QuantityDashboard {
80
+ contactsQuantity: number;
81
+ finalizedQuantity: number;
82
+ onlineAgentsQuantity: number;
83
+ groupAgentsQuantity: number;
84
+ }