@trii/types 2.10.773 → 2.10.775

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 (412) hide show
  1. package/README.md +2 -0
  2. package/dist/Common/Messages/Message.d.ts +2 -0
  3. package/dist/Contacts/segments.d.ts +3 -2
  4. package/dist/Contacts/segments.js +1 -0
  5. package/dist/Marketing/Campaign.d.ts +96 -50
  6. package/dist/Marketing/Campaign.js +9 -10
  7. package/dist/Marketing/CampaignContract.d.ts +3 -0
  8. package/dist/Marketing/CampaignContract.js +54 -0
  9. package/dist/Marketing/index.d.ts +1 -0
  10. package/dist/Marketing/index.js +1 -0
  11. package/dist/Users/Signature.d.ts +5 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +2 -1
  14. package/package.json +1 -1
  15. package/dist/src/AI/Credential.d.ts +0 -13
  16. package/dist/src/AI/Credential.js +0 -2
  17. package/dist/src/AI/Documents/Document.d.ts +0 -36
  18. package/dist/src/AI/Documents/Document.js +0 -15
  19. package/dist/src/AI/Documents/Store.d.ts +0 -25
  20. package/dist/src/AI/Documents/Store.js +0 -10
  21. package/dist/src/AI/Map.d.ts +0 -13
  22. package/dist/src/AI/Map.js +0 -2
  23. package/dist/src/AI/Provider.d.ts +0 -6
  24. package/dist/src/AI/Provider.js +0 -2
  25. package/dist/src/AI/Threads/API.d.ts +0 -55
  26. package/dist/src/AI/Threads/API.js +0 -2
  27. package/dist/src/AI/Threads/Message.d.ts +0 -61
  28. package/dist/src/AI/Threads/Message.js +0 -2
  29. package/dist/src/AI/Threads/Thread.d.ts +0 -22
  30. package/dist/src/AI/Threads/Thread.js +0 -2
  31. package/dist/src/AI/Threads/index.d.ts +0 -3
  32. package/dist/src/AI/Threads/index.js +0 -19
  33. package/dist/src/AI/aiModuleStatus.d.ts +0 -3
  34. package/dist/src/AI/aiModuleStatus.js +0 -2
  35. package/dist/src/AI/index.d.ts +0 -4
  36. package/dist/src/AI/index.js +0 -20
  37. package/dist/src/Accounts/accounts.d.ts +0 -88
  38. package/dist/src/Accounts/accounts.js +0 -24
  39. package/dist/src/Accounts/device.d.ts +0 -31
  40. package/dist/src/Accounts/device.js +0 -19
  41. package/dist/src/Accounts/index.d.ts +0 -2
  42. package/dist/src/Accounts/index.js +0 -18
  43. package/dist/src/ApiResponses/index.d.ts +0 -9
  44. package/dist/src/ApiResponses/index.js +0 -2
  45. package/dist/src/AuditLogs/auditLog.d.ts +0 -9
  46. package/dist/src/AuditLogs/auditLog.js +0 -2
  47. package/dist/src/AuditLogs/auditLogType.d.ts +0 -5
  48. package/dist/src/AuditLogs/auditLogType.js +0 -9
  49. package/dist/src/AuditLogs/index.d.ts +0 -2
  50. package/dist/src/AuditLogs/index.js +0 -18
  51. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -48
  52. package/dist/src/Automations/Capabilities/Capability.js +0 -9
  53. package/dist/src/Automations/Capabilities/index.d.ts +0 -1
  54. package/dist/src/Automations/Capabilities/index.js +0 -17
  55. package/dist/src/Automations/Common.d.ts +0 -47
  56. package/dist/src/Automations/Common.js +0 -18
  57. package/dist/src/Automations/Events/Event.d.ts +0 -41
  58. package/dist/src/Automations/Events/Event.js +0 -2
  59. package/dist/src/Automations/Events/index.d.ts +0 -1
  60. package/dist/src/Automations/Events/index.js +0 -17
  61. package/dist/src/Automations/Executions/Execution.d.ts +0 -114
  62. package/dist/src/Automations/Executions/Execution.js +0 -23
  63. package/dist/src/Automations/Executions/index.d.ts +0 -1
  64. package/dist/src/Automations/Executions/index.js +0 -17
  65. package/dist/src/Automations/Flows/Canvas.d.ts +0 -86
  66. package/dist/src/Automations/Flows/Canvas.js +0 -34
  67. package/dist/src/Automations/Flows/Flow.d.ts +0 -102
  68. package/dist/src/Automations/Flows/Flow.js +0 -34
  69. package/dist/src/Automations/Flows/Requests.d.ts +0 -71
  70. package/dist/src/Automations/Flows/Requests.js +0 -2
  71. package/dist/src/Automations/Flows/Validation.d.ts +0 -28
  72. package/dist/src/Automations/Flows/Validation.js +0 -9
  73. package/dist/src/Automations/Flows/index.d.ts +0 -4
  74. package/dist/src/Automations/Flows/index.js +0 -20
  75. package/dist/src/Automations/Nodes/Node.d.ts +0 -75
  76. package/dist/src/Automations/Nodes/Node.js +0 -18
  77. package/dist/src/Automations/Nodes/index.d.ts +0 -1
  78. package/dist/src/Automations/Nodes/index.js +0 -17
  79. package/dist/src/Automations/index.d.ts +0 -6
  80. package/dist/src/Automations/index.js +0 -22
  81. package/dist/src/Calendar/Calendar.d.ts +0 -18
  82. package/dist/src/Calendar/Calendar.js +0 -2
  83. package/dist/src/Calendar/Common.d.ts +0 -77
  84. package/dist/src/Calendar/Common.js +0 -16
  85. package/dist/src/Calendar/Event.d.ts +0 -64
  86. package/dist/src/Calendar/Event.js +0 -16
  87. package/dist/src/Calendar/Events.d.ts +0 -61
  88. package/dist/src/Calendar/Events.js +0 -5
  89. package/dist/src/Calendar/Task.d.ts +0 -12
  90. package/dist/src/Calendar/Task.js +0 -2
  91. package/dist/src/Calendar/Tasks.d.ts +0 -18
  92. package/dist/src/Calendar/Tasks.js +0 -5
  93. package/dist/src/Calendar/index.d.ts +0 -3
  94. package/dist/src/Calendar/index.js +0 -19
  95. package/dist/src/Calls/Audio.d.ts +0 -17
  96. package/dist/src/Calls/Audio.js +0 -8
  97. package/dist/src/Calls/Call.d.ts +0 -59
  98. package/dist/src/Calls/Call.js +0 -25
  99. package/dist/src/Calls/Codecs.d.ts +0 -5
  100. package/dist/src/Calls/Codecs.js +0 -21
  101. package/dist/src/Calls/Extension.d.ts +0 -24
  102. package/dist/src/Calls/Extension.js +0 -2
  103. package/dist/src/Calls/Options.d.ts +0 -5
  104. package/dist/src/Calls/Options.js +0 -2
  105. package/dist/src/Calls/Queue.d.ts +0 -52
  106. package/dist/src/Calls/Queue.js +0 -12
  107. package/dist/src/Calls/RingGroup.d.ts +0 -46
  108. package/dist/src/Calls/RingGroup.js +0 -27
  109. package/dist/src/Calls/Transport.d.ts +0 -6
  110. package/dist/src/Calls/Transport.js +0 -11
  111. package/dist/src/Calls/Trunk.d.ts +0 -31
  112. package/dist/src/Calls/Trunk.js +0 -2
  113. package/dist/src/Calls/index.d.ts +0 -6
  114. package/dist/src/Calls/index.js +0 -22
  115. package/dist/src/Chats/Chat.d.ts +0 -61
  116. package/dist/src/Chats/Chat.js +0 -28
  117. package/dist/src/Collections/Api.d.ts +0 -41
  118. package/dist/src/Collections/Api.js +0 -2
  119. package/dist/src/Collections/Commission.d.ts +0 -52
  120. package/dist/src/Collections/Commission.js +0 -10
  121. package/dist/src/Collections/Common.d.ts +0 -78
  122. package/dist/src/Collections/Common.js +0 -39
  123. package/dist/src/Collections/Dashboard.d.ts +0 -27
  124. package/dist/src/Collections/Dashboard.js +0 -2
  125. package/dist/src/Collections/Debt.d.ts +0 -97
  126. package/dist/src/Collections/Debt.js +0 -12
  127. package/dist/src/Collections/Interest.d.ts +0 -38
  128. package/dist/src/Collections/Interest.js +0 -25
  129. package/dist/src/Collections/Payment.d.ts +0 -87
  130. package/dist/src/Collections/Payment.js +0 -21
  131. package/dist/src/Collections/PaymentPlan.d.ts +0 -87
  132. package/dist/src/Collections/PaymentPlan.js +0 -21
  133. package/dist/src/Collections/PaymentPlanConfiguration.d.ts +0 -100
  134. package/dist/src/Collections/PaymentPlanConfiguration.js +0 -34
  135. package/dist/src/Collections/Portfolio.d.ts +0 -52
  136. package/dist/src/Collections/Portfolio.js +0 -12
  137. package/dist/src/Collections/Promise.d.ts +0 -49
  138. package/dist/src/Collections/Promise.js +0 -25
  139. package/dist/src/Collections/index.d.ts +0 -11
  140. package/dist/src/Collections/index.js +0 -27
  141. package/dist/src/Common/API/AuthApiKey.d.ts +0 -5
  142. package/dist/src/Common/API/AuthApiKey.js +0 -2
  143. package/dist/src/Common/API/AuthBasic.d.ts +0 -4
  144. package/dist/src/Common/API/AuthBasic.js +0 -2
  145. package/dist/src/Common/API/AuthBearer.d.ts +0 -5
  146. package/dist/src/Common/API/AuthBearer.js +0 -2
  147. package/dist/src/Common/API/AuthType.d.ts +0 -6
  148. package/dist/src/Common/API/AuthType.js +0 -10
  149. package/dist/src/Common/API/Method.d.ts +0 -4
  150. package/dist/src/Common/API/Method.js +0 -8
  151. package/dist/src/Common/API/index.d.ts +0 -5
  152. package/dist/src/Common/API/index.js +0 -21
  153. package/dist/src/Common/Channels/Channel.d.ts +0 -124
  154. package/dist/src/Common/Channels/Channel.js +0 -20
  155. package/dist/src/Common/Channels/ChannelAccount.d.ts +0 -35
  156. package/dist/src/Common/Channels/ChannelAccount.js +0 -17
  157. package/dist/src/Common/Channels/ChannelType.d.ts +0 -24
  158. package/dist/src/Common/Channels/ChannelType.js +0 -28
  159. package/dist/src/Common/Channels/Email.d.ts +0 -62
  160. package/dist/src/Common/Channels/Email.js +0 -36
  161. package/dist/src/Common/Channels/Facebook.d.ts +0 -25
  162. package/dist/src/Common/Channels/Facebook.js +0 -6
  163. package/dist/src/Common/Channels/Form.d.ts +0 -118
  164. package/dist/src/Common/Channels/Form.js +0 -32
  165. package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -20
  166. package/dist/src/Common/Channels/GoogleBusiness.js +0 -9
  167. package/dist/src/Common/Channels/Instagram.d.ts +0 -29
  168. package/dist/src/Common/Channels/Instagram.js +0 -14
  169. package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -27
  170. package/dist/src/Common/Channels/MercadoLibre.js +0 -9
  171. package/dist/src/Common/Channels/Pbx.d.ts +0 -2
  172. package/dist/src/Common/Channels/Pbx.js +0 -6
  173. package/dist/src/Common/Channels/Permission.d.ts +0 -6
  174. package/dist/src/Common/Channels/Permission.js +0 -6
  175. package/dist/src/Common/Channels/RCS.d.ts +0 -37
  176. package/dist/src/Common/Channels/RCS.js +0 -9
  177. package/dist/src/Common/Channels/Sip.d.ts +0 -2
  178. package/dist/src/Common/Channels/Sip.js +0 -6
  179. package/dist/src/Common/Channels/Sms.d.ts +0 -46
  180. package/dist/src/Common/Channels/Sms.js +0 -16
  181. package/dist/src/Common/Channels/WebChat.d.ts +0 -62
  182. package/dist/src/Common/Channels/WebChat.js +0 -19
  183. package/dist/src/Common/Channels/WhatsApp.d.ts +0 -89
  184. package/dist/src/Common/Channels/WhatsApp.js +0 -18
  185. package/dist/src/Common/Channels/index.d.ts +0 -16
  186. package/dist/src/Common/Channels/index.js +0 -32
  187. package/dist/src/Common/EventsQueue/Data/postComment.d.ts +0 -26
  188. package/dist/src/Common/EventsQueue/Data/postComment.js +0 -2
  189. package/dist/src/Common/EventsQueue/EmailTemplate.d.ts +0 -10
  190. package/dist/src/Common/EventsQueue/EmailTemplate.js +0 -2
  191. package/dist/src/Common/EventsQueue/EventQueue.d.ts +0 -13
  192. package/dist/src/Common/EventsQueue/EventQueue.js +0 -2
  193. package/dist/src/Common/EventsQueue/UserUpdate.d.ts +0 -8
  194. package/dist/src/Common/EventsQueue/UserUpdate.js +0 -2
  195. package/dist/src/Common/EventsQueue/index.d.ts +0 -3
  196. package/dist/src/Common/EventsQueue/index.js +0 -19
  197. package/dist/src/Common/Logs/Log.d.ts +0 -18
  198. package/dist/src/Common/Logs/Log.js +0 -13
  199. package/dist/src/Common/Logs/index.d.ts +0 -1
  200. package/dist/src/Common/Logs/index.js +0 -17
  201. package/dist/src/Common/Messages/MediaFile.d.ts +0 -5
  202. package/dist/src/Common/Messages/MediaFile.js +0 -2
  203. package/dist/src/Common/Messages/Message.d.ts +0 -423
  204. package/dist/src/Common/Messages/Message.js +0 -62
  205. package/dist/src/Common/Messages/Template.d.ts +0 -86
  206. package/dist/src/Common/Messages/Template.js +0 -26
  207. package/dist/src/Common/Messages/index.d.ts +0 -3
  208. package/dist/src/Common/Messages/index.js +0 -19
  209. package/dist/src/Common/Notifications/Notification.d.ts +0 -19
  210. package/dist/src/Common/Notifications/Notification.js +0 -10
  211. package/dist/src/Common/Notifications/UserNotificationsConfig.d.ts +0 -33
  212. package/dist/src/Common/Notifications/UserNotificationsConfig.js +0 -18
  213. package/dist/src/Common/Notifications/index.d.ts +0 -2
  214. package/dist/src/Common/Notifications/index.js +0 -18
  215. package/dist/src/Common/Schedules/Schedules.d.ts +0 -32
  216. package/dist/src/Common/Schedules/Schedules.js +0 -2
  217. package/dist/src/Common/Schedules/index.d.ts +0 -1
  218. package/dist/src/Common/Schedules/index.js +0 -17
  219. package/dist/src/Common/index.d.ts +0 -6
  220. package/dist/src/Common/index.js +0 -42
  221. package/dist/src/Contacts/DuplicateContact.d.ts +0 -11
  222. package/dist/src/Contacts/DuplicateContact.js +0 -2
  223. package/dist/src/Contacts/File.d.ts +0 -17
  224. package/dist/src/Contacts/File.js +0 -2
  225. package/dist/src/Contacts/Import.d.ts +0 -18
  226. package/dist/src/Contacts/Import.js +0 -2
  227. package/dist/src/Contacts/Label.d.ts +0 -9
  228. package/dist/src/Contacts/Label.js +0 -2
  229. package/dist/src/Contacts/Note.d.ts +0 -15
  230. package/dist/src/Contacts/Note.js +0 -2
  231. package/dist/src/Contacts/Relationship.d.ts +0 -28
  232. package/dist/src/Contacts/Relationship.js +0 -16
  233. package/dist/src/Contacts/contacts.d.ts +0 -269
  234. package/dist/src/Contacts/contacts.js +0 -54
  235. package/dist/src/Contacts/index.d.ts +0 -9
  236. package/dist/src/Contacts/index.js +0 -25
  237. package/dist/src/Contacts/options.d.ts +0 -5
  238. package/dist/src/Contacts/options.js +0 -2
  239. package/dist/src/Contacts/segments.d.ts +0 -52
  240. package/dist/src/Contacts/segments.js +0 -53
  241. package/dist/src/Conversations/Assignment.d.ts +0 -81
  242. package/dist/src/Conversations/Assignment.js +0 -4
  243. package/dist/src/Conversations/Conversation.d.ts +0 -360
  244. package/dist/src/Conversations/Conversation.js +0 -36
  245. package/dist/src/Conversations/DashBoard/dashboard.d.ts +0 -115
  246. package/dist/src/Conversations/DashBoard/dashboard.js +0 -65
  247. package/dist/src/Conversations/DashBoard/dashboardChannels.d.ts +0 -5
  248. package/dist/src/Conversations/DashBoard/dashboardChannels.js +0 -6
  249. package/dist/src/Conversations/DashBoard/dashboardMessages.d.ts +0 -13
  250. package/dist/src/Conversations/DashBoard/dashboardMessages.js +0 -9
  251. package/dist/src/Conversations/Ending.d.ts +0 -17
  252. package/dist/src/Conversations/Ending.js +0 -2
  253. package/dist/src/Conversations/Flows/Definitions.d.ts +0 -10
  254. package/dist/src/Conversations/Flows/Definitions.js +0 -2
  255. package/dist/src/Conversations/Flows/Flow.d.ts +0 -222
  256. package/dist/src/Conversations/Flows/Flow.js +0 -50
  257. package/dist/src/Conversations/Flows/FlowInfo.d.ts +0 -9
  258. package/dist/src/Conversations/Flows/FlowInfo.js +0 -2
  259. package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +0 -336
  260. package/dist/src/Conversations/Flows/Workflows/Workflow.js +0 -98
  261. package/dist/src/Conversations/Flows/Workflows/index.d.ts +0 -1
  262. package/dist/src/Conversations/Flows/Workflows/index.js +0 -17
  263. package/dist/src/Conversations/Flows/index.d.ts +0 -4
  264. package/dist/src/Conversations/Flows/index.js +0 -20
  265. package/dist/src/Conversations/Groups/Group.d.ts +0 -17
  266. package/dist/src/Conversations/Groups/Group.js +0 -2
  267. package/dist/src/Conversations/InboxMongo.d.ts +0 -154
  268. package/dist/src/Conversations/InboxMongo.js +0 -128
  269. package/dist/src/Conversations/InboxProjection.d.ts +0 -162
  270. package/dist/src/Conversations/InboxProjection.js +0 -2
  271. package/dist/src/Conversations/Label.d.ts +0 -10
  272. package/dist/src/Conversations/Label.js +0 -2
  273. package/dist/src/Conversations/Outbox.d.ts +0 -24
  274. package/dist/src/Conversations/Outbox.js +0 -4
  275. package/dist/src/Conversations/Queue.d.ts +0 -107
  276. package/dist/src/Conversations/Queue.js +0 -4
  277. package/dist/src/Conversations/QuickResponse.d.ts +0 -34
  278. package/dist/src/Conversations/QuickResponse.js +0 -2
  279. package/dist/src/Conversations/Routing.d.ts +0 -164
  280. package/dist/src/Conversations/Routing.js +0 -2
  281. package/dist/src/Conversations/Sla.d.ts +0 -227
  282. package/dist/src/Conversations/Sla.js +0 -6
  283. package/dist/src/Conversations/SocialWalls.d.ts +0 -72
  284. package/dist/src/Conversations/SocialWalls.js +0 -2
  285. package/dist/src/Conversations/Survey.d.ts +0 -19
  286. package/dist/src/Conversations/Survey.js +0 -9
  287. package/dist/src/Conversations/Transfer.d.ts +0 -73
  288. package/dist/src/Conversations/Transfer.js +0 -2
  289. package/dist/src/Conversations/WebHook.d.ts +0 -22
  290. package/dist/src/Conversations/WebHook.js +0 -2
  291. package/dist/src/Conversations/index.d.ts +0 -21
  292. package/dist/src/Conversations/index.js +0 -60
  293. package/dist/src/Docs/Document.d.ts +0 -58
  294. package/dist/src/Docs/Document.js +0 -29
  295. package/dist/src/Docs/Store.d.ts +0 -37
  296. package/dist/src/Docs/Store.js +0 -17
  297. package/dist/src/Docs/index.d.ts +0 -2
  298. package/dist/src/Docs/index.js +0 -18
  299. package/dist/src/Forms/API.d.ts +0 -53
  300. package/dist/src/Forms/API.js +0 -2
  301. package/dist/src/Forms/SubmittedForm.d.ts +0 -56
  302. package/dist/src/Forms/SubmittedForm.js +0 -9
  303. package/dist/src/Forms/index.d.ts +0 -2
  304. package/dist/src/Forms/index.js +0 -18
  305. package/dist/src/Marketing/Campaign.d.ts +0 -69
  306. package/dist/src/Marketing/Campaign.js +0 -30
  307. package/dist/src/Marketing/Dashboard.d.ts +0 -48
  308. package/dist/src/Marketing/Dashboard.js +0 -2
  309. package/dist/src/Marketing/Options.d.ts +0 -12
  310. package/dist/src/Marketing/Options.js +0 -9
  311. package/dist/src/Marketing/Template.d.ts +0 -19
  312. package/dist/src/Marketing/Template.js +0 -8
  313. package/dist/src/Marketing/index.d.ts +0 -4
  314. package/dist/src/Marketing/index.js +0 -20
  315. package/dist/src/Presence/AgentPause.d.ts +0 -24
  316. package/dist/src/Presence/AgentPause.js +0 -19
  317. package/dist/src/Presence/QueueParticipation.d.ts +0 -17
  318. package/dist/src/Presence/QueueParticipation.js +0 -2
  319. package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
  320. package/dist/src/Presence/QueueRoutingState.js +0 -9
  321. package/dist/src/Presence/index.d.ts +0 -3
  322. package/dist/src/Presence/index.js +0 -19
  323. package/dist/src/PublicAPI/apiKey.d.ts +0 -12
  324. package/dist/src/PublicAPI/apiKey.js +0 -2
  325. package/dist/src/Reports/ScheduledReport.d.ts +0 -205
  326. package/dist/src/Reports/ScheduledReport.js +0 -57
  327. package/dist/src/Reports/aiReport.d.ts +0 -20
  328. package/dist/src/Reports/aiReport.js +0 -2
  329. package/dist/src/Reports/apiResult.d.ts +0 -5
  330. package/dist/src/Reports/apiResult.js +0 -2
  331. package/dist/src/Reports/index.d.ts +0 -3
  332. package/dist/src/Reports/index.js +0 -19
  333. package/dist/src/Sales/Api.d.ts +0 -40
  334. package/dist/src/Sales/Api.js +0 -2
  335. package/dist/src/Sales/Common.d.ts +0 -72
  336. package/dist/src/Sales/Common.js +0 -31
  337. package/dist/src/Sales/Dashboard.d.ts +0 -25
  338. package/dist/src/Sales/Dashboard.js +0 -2
  339. package/dist/src/Sales/Lead.d.ts +0 -99
  340. package/dist/src/Sales/Lead.js +0 -8
  341. package/dist/src/Sales/index.d.ts +0 -4
  342. package/dist/src/Sales/index.js +0 -20
  343. package/dist/src/Security/Security.d.ts +0 -5
  344. package/dist/src/Security/Security.js +0 -2
  345. package/dist/src/Security/index.d.ts +0 -1
  346. package/dist/src/Security/index.js +0 -17
  347. package/dist/src/Shop/Cart/cart.d.ts +0 -19
  348. package/dist/src/Shop/Cart/cart.js +0 -2
  349. package/dist/src/Shop/index.d.ts +0 -1
  350. package/dist/src/Shop/index.js +0 -17
  351. package/dist/src/Spaces/Dashboard.d.ts +0 -4
  352. package/dist/src/Spaces/Dashboard.js +0 -2
  353. package/dist/src/Spaces/index.d.ts +0 -2
  354. package/dist/src/Spaces/index.js +0 -18
  355. package/dist/src/Spaces/spaces.d.ts +0 -104
  356. package/dist/src/Spaces/spaces.js +0 -85
  357. package/dist/src/Tickets/AI.d.ts +0 -400
  358. package/dist/src/Tickets/AI.js +0 -113
  359. package/dist/src/Tickets/AdvancedApi.d.ts +0 -486
  360. package/dist/src/Tickets/AdvancedApi.js +0 -108
  361. package/dist/src/Tickets/Api.d.ts +0 -62
  362. package/dist/src/Tickets/Api.js +0 -8
  363. package/dist/src/Tickets/Approval.d.ts +0 -139
  364. package/dist/src/Tickets/Approval.js +0 -30
  365. package/dist/src/Tickets/Automation.d.ts +0 -237
  366. package/dist/src/Tickets/Automation.js +0 -74
  367. package/dist/src/Tickets/Category.d.ts +0 -71
  368. package/dist/src/Tickets/Category.js +0 -2
  369. package/dist/src/Tickets/Common.d.ts +0 -90
  370. package/dist/src/Tickets/Common.js +0 -38
  371. package/dist/src/Tickets/Conversation.d.ts +0 -68
  372. package/dist/src/Tickets/Conversation.js +0 -30
  373. package/dist/src/Tickets/Dashboard.d.ts +0 -485
  374. package/dist/src/Tickets/Dashboard.js +0 -218
  375. package/dist/src/Tickets/Fields.d.ts +0 -134
  376. package/dist/src/Tickets/Fields.js +0 -44
  377. package/dist/src/Tickets/Layouts.d.ts +0 -65
  378. package/dist/src/Tickets/Layouts.js +0 -22
  379. package/dist/src/Tickets/Routing.d.ts +0 -290
  380. package/dist/src/Tickets/Routing.js +0 -87
  381. package/dist/src/Tickets/Satisfaction.d.ts +0 -31
  382. package/dist/src/Tickets/Satisfaction.js +0 -9
  383. package/dist/src/Tickets/Security.d.ts +0 -302
  384. package/dist/src/Tickets/Security.js +0 -107
  385. package/dist/src/Tickets/SelfService.d.ts +0 -255
  386. package/dist/src/Tickets/SelfService.js +0 -56
  387. package/dist/src/Tickets/Sla.d.ts +0 -253
  388. package/dist/src/Tickets/Sla.js +0 -73
  389. package/dist/src/Tickets/Task.d.ts +0 -122
  390. package/dist/src/Tickets/Task.js +0 -17
  391. package/dist/src/Tickets/Ticket.d.ts +0 -133
  392. package/dist/src/Tickets/Ticket.js +0 -2
  393. package/dist/src/Tickets/Views.d.ts +0 -77
  394. package/dist/src/Tickets/Views.js +0 -23
  395. package/dist/src/Tickets/Workflow.d.ts +0 -129
  396. package/dist/src/Tickets/Workflow.js +0 -44
  397. package/dist/src/Tickets/index.d.ts +0 -20
  398. package/dist/src/Tickets/index.js +0 -36
  399. package/dist/src/Users/Signature.d.ts +0 -74
  400. package/dist/src/Users/Signature.js +0 -2
  401. package/dist/src/Users/UserActivitySummary.d.ts +0 -5
  402. package/dist/src/Users/UserActivitySummary.js +0 -2
  403. package/dist/src/Users/UserProfile.d.ts +0 -97
  404. package/dist/src/Users/UserProfile.js +0 -5
  405. package/dist/src/Users/UserTrii.d.ts +0 -112
  406. package/dist/src/Users/UserTrii.js +0 -17
  407. package/dist/src/Users/UserType.d.ts +0 -10
  408. package/dist/src/Users/UserType.js +0 -13
  409. package/dist/src/Users/index.d.ts +0 -5
  410. package/dist/src/Users/index.js +0 -21
  411. package/dist/src/index.d.ts +0 -23
  412. package/dist/src/index.js +0 -59
@@ -1,52 +0,0 @@
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
- NOT_EQUAL = 11
45
- }
46
- export interface filter {
47
- key: string;
48
- type: ContactField_type;
49
- }
50
- export declare const Segment_Filter_Details: filter[];
51
- export declare const Segment_Filter_Geography: filter[];
52
- export declare const Segment_Filter_Account: filter[];
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Segment_Filter_Account = exports.Segment_Filter_Geography = exports.Segment_Filter_Details = exports.Segment_Filter_Operator = void 0;
4
- const contacts_1 = require("./contacts");
5
- var Segment_Filter_Operator;
6
- (function (Segment_Filter_Operator) {
7
- Segment_Filter_Operator[Segment_Filter_Operator["NULL"] = 0] = "NULL";
8
- Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN"] = 1] = "LESS_THAN";
9
- Segment_Filter_Operator[Segment_Filter_Operator["LESS_THAN_EQUAL"] = 2] = "LESS_THAN_EQUAL";
10
- Segment_Filter_Operator[Segment_Filter_Operator["EQUAL"] = 3] = "EQUAL";
11
- Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN_EQUAL"] = 4] = "GREATER_THAN_EQUAL";
12
- Segment_Filter_Operator[Segment_Filter_Operator["GREATER_THAN"] = 5] = "GREATER_THAN";
13
- Segment_Filter_Operator[Segment_Filter_Operator["START_WITH"] = 6] = "START_WITH";
14
- Segment_Filter_Operator[Segment_Filter_Operator["END_WITH"] = 7] = "END_WITH";
15
- Segment_Filter_Operator[Segment_Filter_Operator["CONTAINS"] = 8] = "CONTAINS";
16
- Segment_Filter_Operator[Segment_Filter_Operator["NOT_CONTAINS"] = 9] = "NOT_CONTAINS";
17
- Segment_Filter_Operator[Segment_Filter_Operator["ANY_VALUE"] = 10] = "ANY_VALUE";
18
- Segment_Filter_Operator[Segment_Filter_Operator["NOT_EQUAL"] = 11] = "NOT_EQUAL";
19
- })(Segment_Filter_Operator || (exports.Segment_Filter_Operator = Segment_Filter_Operator = {}));
20
- exports.Segment_Filter_Details = [
21
- {
22
- key: "details.name",
23
- type: contacts_1.ContactField_type.TEXT
24
- },
25
- {
26
- key: "details.email",
27
- type: contacts_1.ContactField_type.TEXT
28
- },
29
- ];
30
- exports.Segment_Filter_Geography = [
31
- {
32
- key: "geography.country",
33
- type: contacts_1.ContactField_type.TEXT
34
- },
35
- {
36
- key: "details.city",
37
- type: contacts_1.ContactField_type.TEXT
38
- }
39
- ];
40
- exports.Segment_Filter_Account = [
41
- {
42
- key: "account.name",
43
- type: contacts_1.ContactField_type.TEXT
44
- },
45
- {
46
- key: "account.email",
47
- type: contacts_1.ContactField_type.TEXT
48
- },
49
- {
50
- key: "account.numberOfEmployees",
51
- type: contacts_1.ContactField_type.NUMBER_INTEGER
52
- }
53
- ];
@@ -1,81 +0,0 @@
1
- import { ID } from './Conversation';
2
- export declare const CONVERSATION_ASSIGNMENT_EVENTS_COLLECTION = "conversation_assignment_events";
3
- export type ConversationAssignmentEventType = 'enqueued' | 'routing_started' | 'offered' | 'assigned' | 'accepted' | 'transferred' | 'released' | 'timed_out' | 'requeued';
4
- export type ConversationAssignmentReason = 'conversation_created' | 'routing_selected' | 'manual_assignment' | 'manual_transfer' | 'flow_routing' | 'offer_timeout' | 'assignment_timeout' | 'agent_accepted' | 'agent_released' | 'supervisor_released' | 'capacity_rebalance' | 'sla_escalation' | 'system_recovery';
5
- export type AssignmentOwnerReference = {
6
- type: 'none';
7
- id?: never;
8
- } | {
9
- type: 'user' | 'bot' | 'flow';
10
- id: ID;
11
- };
12
- export type AssignmentStateReference = {
13
- status: 'unrouted';
14
- assignmentId?: never;
15
- queueId?: never;
16
- owner: {
17
- type: 'none';
18
- id?: never;
19
- } | {
20
- type: 'bot' | 'flow';
21
- id: ID;
22
- };
23
- } | {
24
- status: 'queued' | 'routing';
25
- assignmentId: ID;
26
- queueId: ID;
27
- owner: {
28
- type: 'none';
29
- id?: never;
30
- };
31
- } | {
32
- status: 'offered' | 'assigned' | 'accepted';
33
- assignmentId: ID;
34
- queueId: ID;
35
- owner: {
36
- type: 'user';
37
- id: ID;
38
- };
39
- };
40
- export type AssignmentActorReference = {
41
- type: 'system';
42
- id?: never;
43
- } | {
44
- type: 'user' | 'bot' | 'flow';
45
- id: ID;
46
- };
47
- /**
48
- * Immutable domain event stored in conversation_assignment_events.
49
- *
50
- * Events must only be inserted. Corrections are represented by a new event.
51
- */
52
- export interface ConversationAssignmentEvent {
53
- id: ID;
54
- spaceId: ID;
55
- conversationId: ID;
56
- /**
57
- * Monotonic order within a conversation.
58
- */
59
- sequence: number;
60
- eventType: ConversationAssignmentEventType;
61
- reason: ConversationAssignmentReason;
62
- /**
63
- * Undefined only when no previous assignment state existed.
64
- */
65
- previous?: AssignmentStateReference;
66
- current: AssignmentStateReference;
67
- actor: AssignmentActorReference;
68
- routingDecisionId?: ID;
69
- /**
70
- * Version of conversations after applying the transition.
71
- */
72
- conversationVersion: number;
73
- correlationId?: ID;
74
- causationId?: ID;
75
- idempotencyKey: string;
76
- /**
77
- * Domain time and persistence time, respectively.
78
- */
79
- occurredAt: Date;
80
- recordedAt: Date;
81
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONVERSATION_ASSIGNMENT_EVENTS_COLLECTION = void 0;
4
- exports.CONVERSATION_ASSIGNMENT_EVENTS_COLLECTION = 'conversation_assignment_events';
@@ -1,360 +0,0 @@
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 { IContactAddress, IContactInfo } from "../Contacts/contacts";
6
- import { IEnding } from "./Ending";
7
- import { ChatType } from "../Chats/Chat";
8
- export interface IConversation {
9
- id: string;
10
- spaceId: string;
11
- version: number;
12
- /** @deprecated Use assignment.owner. */
13
- type: ChatType;
14
- /**only for Front-End */
15
- chatName: string;
16
- chatImage: string;
17
- chatMembersCount: number;
18
- whatsappGroupInfo?: IWhatsAppGroupInfo;
19
- contactInfo?: IContactInfo;
20
- direction: ConversationDirection;
21
- remoteAddress: string;
22
- remoteAddressId: string;
23
- channelInfo: Channels.IChannelInfo;
24
- status: ConversationStatus;
25
- priority: 'low' | 'normal' | 'high' | 'urgent';
26
- assignment: ConversationAssignmentSnapshot;
27
- /** @deprecated Use owner and assignment.*/
28
- assignedTo?: ConversationAssigned;
29
- sla: {
30
- status: 'none' | 'running' | 'warning' | 'breached' | 'met';
31
- deadlineAt?: Date;
32
- policyId?: string;
33
- version: number;
34
- };
35
- lastMessage: string;
36
- lastMessageId?: string;
37
- newMessagesCount: number;
38
- newMessagesUnread: boolean;
39
- lastActivityAt: Date;
40
- lastCustomerActivityAt?: Date;
41
- lastAgentActivityAt?: Date;
42
- labels: ILabel[];
43
- pinned: boolean;
44
- /** @deprecated A transfer is represented by an event and the resulting current state. */
45
- transferBy?: string;
46
- /** @deprecated A transfer is represented by an event and the resulting current state. */
47
- transferTo?: ConversationAssigned;
48
- expired: boolean;
49
- /** @deprecated Expiration does not own a separate assignment snapshot.*/
50
- expiredAssignedTo: ConversationAssigned;
51
- participants: UserInfo[];
52
- archived: boolean;
53
- spam: boolean;
54
- externalMessagingWindowEndAt?: Date;
55
- workflowId?: string;
56
- botStatus: ConversationBotStatus;
57
- botVars: ConversationBotVar[];
58
- metadata: IConversationMetadata;
59
- /** Domain objects discussed or served by this conversation. */
60
- finalizedOnWebChat: Date;
61
- ending?: IEnding;
62
- qualityEvaluation?: IInteractionQualityEvaluation;
63
- reOpenAt?: Date;
64
- reOpenByUserId?: string;
65
- reOpenPolicyId?: string;
66
- createdAt: Date;
67
- updatedAt: Date;
68
- resolvedAt?: Date;
69
- resolvedByUserId?: string;
70
- resolutionReasonId?: string;
71
- finalizedAt: Date;
72
- finalizedBy?: string;
73
- }
74
- export interface IWhatsAppGroupInfo {
75
- whatsappGroupId: string;
76
- groupInviteCode: string;
77
- members: IWhatsAppGroupMember[];
78
- invitationTemplateId: string;
79
- subject: string;
80
- description: string;
81
- }
82
- export interface IWhatsAppGroupMember {
83
- contactAddress: IContactAddress;
84
- contactId: string;
85
- name: string;
86
- contactInfo: IContactInfo;
87
- joinedAt?: Date;
88
- }
89
- export interface IInteractionQualityEvaluation {
90
- courtesy: EvaluationCriterion;
91
- clarity: EvaluationCriterion;
92
- empathy: EvaluationCriterion;
93
- proactivity: EvaluationCriterion;
94
- resolution: EvaluationCriterion;
95
- responseTime: EvaluationCriterion;
96
- overallScore: EvaluationCriterion;
97
- }
98
- export interface EvaluationCriterion {
99
- value: number;
100
- comment: string;
101
- }
102
- export interface IConversationMetadata {
103
- nickname?: string;
104
- email?: string;
105
- ip?: string;
106
- country?: string;
107
- region?: string;
108
- city?: string;
109
- timezone?: string;
110
- latitude?: number;
111
- longitude?: number;
112
- isp?: string;
113
- userAgent?: string;
114
- browser?: string;
115
- os?: string;
116
- deviceType?: 'Desktop' | 'Mobile' | 'Tablet';
117
- language?: string;
118
- referer?: string;
119
- utmSource?: string;
120
- utmMedium?: string;
121
- utmCampaign?: string;
122
- sessionId?: string;
123
- screenResolution?: string;
124
- }
125
- export declare enum ConversationBotStatus {
126
- NONE = 0,
127
- WAITING = 1,
128
- PROCESSING = 2,
129
- FINALIZED = 4,
130
- CANCELED = 5
131
- }
132
- export interface ConversationBotVar {
133
- title: string;
134
- value: string;
135
- }
136
- /**
137
- * @deprecated Legacy channel assignment configuration. Use QueueRoutingConfig.
138
- */
139
- export interface ConversationAssigned {
140
- groupInfo?: GroupInfo;
141
- userInfo?: UserInfo;
142
- userIds?: string[];
143
- }
144
- export declare enum ConversationDirection {
145
- INBOUND = 1,
146
- OUTBOUND = 2
147
- }
148
- /**
149
- * @deprecated Use QueueDistributionMode and QueueRoutingStrategy.
150
- */
151
- export declare enum AssignMethod {
152
- ALL = 0,
153
- ROUND_ROBIN = 1,
154
- RANDOM = 2,
155
- LEAST_BUSY = 3
156
- }
157
- export declare enum ConversationStatus {
158
- NEW = 1,
159
- OPEN = 2,
160
- ACTIVE = 2,// Alias for OPEN
161
- RESOLVED = 3,
162
- FINALIZED = 3,// Alias for RESOLVED
163
- WAITING = 10
164
- }
165
- export type InboxViewId = 'pending' | 'following' | 'sla_warning' | 'sla_breached' | 'team_sla_breached' | 'resolved';
166
- export type OwnerType = 'user' | 'bot' | 'flow' | 'none';
167
- export interface NoConversationOwner {
168
- type: 'none';
169
- id?: never;
170
- displayName?: never;
171
- avatarUrl?: never;
172
- }
173
- export interface UserConversationOwner {
174
- type: 'user';
175
- id: ID;
176
- displayName?: string;
177
- avatarUrl?: string;
178
- }
179
- export interface BotConversationOwner {
180
- type: 'bot';
181
- id: ID;
182
- displayName?: string;
183
- avatarUrl?: string;
184
- }
185
- export interface FlowConversationOwner {
186
- type: 'flow';
187
- id: ID;
188
- displayName?: string;
189
- avatarUrl?: string;
190
- }
191
- export type ConversationOwner = NoConversationOwner | UserConversationOwner | BotConversationOwner | FlowConversationOwner;
192
- export type ConversationAssignmentStatus = 'unrouted' | 'queued' | 'routing' | 'offered' | 'assigned' | 'accepted';
193
- export type ConversationAssignmentSource = 'routing' | 'manual' | 'transfer' | 'requeue';
194
- interface QueuedConversationAssignmentBase {
195
- assignmentId: ID;
196
- queueId: ID;
197
- source: ConversationAssignmentSource;
198
- queuedAt: Date;
199
- lastRoutingDecisionId?: ID;
200
- }
201
- export type ConversationAssignmentSnapshot = {
202
- status: 'unrouted';
203
- assignmentId?: never;
204
- queueId?: never;
205
- owner: NoConversationOwner | BotConversationOwner | FlowConversationOwner;
206
- source?: never;
207
- queuedAt?: never;
208
- lastRoutingDecisionId?: never;
209
- offeredAt?: never;
210
- offerExpiresAt?: never;
211
- assignedAt?: never;
212
- acceptedAt?: never;
213
- } | (QueuedConversationAssignmentBase & {
214
- status: 'queued' | 'routing';
215
- owner: NoConversationOwner;
216
- offeredAt?: never;
217
- offerExpiresAt?: never;
218
- assignedAt?: never;
219
- acceptedAt?: never;
220
- }) | (QueuedConversationAssignmentBase & {
221
- status: 'offered';
222
- owner: UserConversationOwner;
223
- offeredAt: Date;
224
- offerExpiresAt?: Date;
225
- assignedAt?: never;
226
- acceptedAt?: never;
227
- }) | (QueuedConversationAssignmentBase & {
228
- status: 'assigned';
229
- owner: UserConversationOwner;
230
- offeredAt?: Date;
231
- offerExpiresAt?: Date;
232
- assignedAt: Date;
233
- acceptedAt?: never;
234
- }) | (QueuedConversationAssignmentBase & {
235
- status: 'accepted';
236
- owner: UserConversationOwner;
237
- offeredAt?: Date;
238
- offerExpiresAt?: Date;
239
- assignedAt: Date;
240
- acceptedAt: Date;
241
- });
242
- export type ActorType = 'user' | 'contact' | 'bot' | 'flow' | 'system';
243
- export type ParticipantRole = 'owner' | 'collaborator' | 'follower' | 'mentioned' | 'supervisor' | 'bot' | 'flow' | 'historical';
244
- export type ConversationEventType = 'conversation_created' | 'queued' | 'assigned' | 'accepted' | 'transferred' | 'consult_requested' | 'collaborator_added' | 'participant_added' | 'participant_removed' | 'participation_abandoned' | 'follow_started' | 'follow_stopped' | 'message_sent' | 'message_received' | 'internal_note_added' | 'bot_started' | 'bot_finished' | 'flow_started' | 'flow_finished' | 'status_changed' | 'resolved' | 'reopened' | 'sla_warning' | 'sla_breached' | 'sla_started' | 'sla_paused' | 'sla_resumed' | 'sla_met' | 'sla_overridden';
245
- export type ID = string;
246
- export type ConversationSubscriptionSource = 'manual' | 'assigned' | 'participated' | 'mentioned' | 'supervisor' | 'rule';
247
- export type ConversationSubscriptionNotificationEvent = 'customer_message' | 'internal_mention' | 'assignment_change' | 'acceptance' | 'resolution' | 'reopen';
248
- export type ConversationSubscriptionNotifications = {
249
- mode: 'all' | 'muted';
250
- events?: never;
251
- } | {
252
- mode: 'custom';
253
- events: [
254
- ConversationSubscriptionNotificationEvent,
255
- ...ConversationSubscriptionNotificationEvent[]
256
- ];
257
- };
258
- interface ConversationSubscriptionBase {
259
- id: ID;
260
- spaceId: string;
261
- conversationId: ID;
262
- userId: ID;
263
- source: ConversationSubscriptionSource;
264
- notifications: ConversationSubscriptionNotifications;
265
- createdAt: Date;
266
- updatedAt: Date;
267
- version: number;
268
- }
269
- /**
270
- * Current following state for one user/conversation pair.
271
- *
272
- * A subscription is persistent product intent. Assignment or participation
273
- * visibility must not create it unless an explicit auto-follow policy applies.
274
- */
275
- export type ConversationSubscription = (ConversationSubscriptionBase & {
276
- status: 'following';
277
- followedAt: Date;
278
- unfollowedAt?: never;
279
- }) | (ConversationSubscriptionBase & {
280
- status: 'unfollowed';
281
- followedAt: Date;
282
- unfollowedAt: Date;
283
- });
284
- export type InboxVisibilityReason = 'manual_follow' | 'assigned_to_user' | 'shared_queue_member' | 'queue_claimable' | 'active_participant' | 'sla_warning_owner' | 'sla_breached_owner' | 'supervised_queue_sla' | 'supervisor_escalation' | 'resolved_visible';
285
- export interface ConversationInboxSnapshot {
286
- interactionKind: 'private' | 'wall_post' | 'comment' | 'mention';
287
- channelType: string;
288
- contact: {
289
- id?: ID;
290
- displayName: string;
291
- initials?: string;
292
- };
293
- status: ConversationStatus;
294
- owner: ConversationOwner;
295
- queueId?: ID;
296
- preview?: string;
297
- unreadCount: number;
298
- priority: 'low' | 'normal' | 'high' | 'urgent';
299
- sla: {
300
- status: 'none' | 'running' | 'warning' | 'breached' | 'met';
301
- deadlineAt?: Date;
302
- };
303
- lastActivityAt: Date;
304
- }
305
- /**
306
- * Membership of one materialized conversation in one logical inbox view.
307
- *
308
- * visibilityReasons has set semantics: values must be unique and non-empty.
309
- * Removing one reason preserves the view while at least one reason remains.
310
- */
311
- export interface UserInboxItemView {
312
- viewId: InboxViewId;
313
- visibilityReasons: [
314
- InboxVisibilityReason,
315
- ...InboxVisibilityReason[]
316
- ];
317
- requiresAction: boolean;
318
- }
319
- /**
320
- * Materialized read model. There is exactly one document for each
321
- * spaceId + userId + conversationId tuple.
322
- *
323
- * views must contain unique viewId values. Delete the document when the last
324
- * view is removed.
325
- */
326
- export interface UserInboxItemDocument {
327
- id: ID;
328
- spaceId: ID;
329
- userId: ID;
330
- conversationId: ID;
331
- views: UserInboxItemView[];
332
- snapshot: ConversationInboxSnapshot;
333
- pinned: boolean;
334
- priorityScore: number;
335
- sortAt: Date;
336
- conversationVersion: number;
337
- subscriptionVersion?: number;
338
- projectionVersion: number;
339
- lastSourceEventId: ID;
340
- projectedAt: Date;
341
- }
342
- /**
343
- * Materialized counters for exactly one user/view pair.
344
- *
345
- * total and requiresAction count conversations, never visibility reasons.
346
- * unread counts conversations whose snapshot.unreadCount is greater than zero,
347
- * not the number of unread messages.
348
- */
349
- export interface UserInboxCounterDocument {
350
- id: ID;
351
- spaceId: ID;
352
- userId: ID;
353
- viewId: InboxViewId;
354
- total: number;
355
- requiresAction: number;
356
- unread: number;
357
- projectionVersion: number;
358
- updatedAt: Date;
359
- }
360
- export {};
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConversationStatus = exports.AssignMethod = exports.ConversationDirection = exports.ConversationBotStatus = void 0;
4
- var ConversationBotStatus;
5
- (function (ConversationBotStatus) {
6
- ConversationBotStatus[ConversationBotStatus["NONE"] = 0] = "NONE";
7
- ConversationBotStatus[ConversationBotStatus["WAITING"] = 1] = "WAITING";
8
- ConversationBotStatus[ConversationBotStatus["PROCESSING"] = 2] = "PROCESSING";
9
- ConversationBotStatus[ConversationBotStatus["FINALIZED"] = 4] = "FINALIZED";
10
- ConversationBotStatus[ConversationBotStatus["CANCELED"] = 5] = "CANCELED";
11
- })(ConversationBotStatus || (exports.ConversationBotStatus = ConversationBotStatus = {}));
12
- var ConversationDirection;
13
- (function (ConversationDirection) {
14
- ConversationDirection[ConversationDirection["INBOUND"] = 1] = "INBOUND";
15
- ConversationDirection[ConversationDirection["OUTBOUND"] = 2] = "OUTBOUND";
16
- })(ConversationDirection || (exports.ConversationDirection = ConversationDirection = {}));
17
- /**
18
- * @deprecated Use QueueDistributionMode and QueueRoutingStrategy.
19
- */
20
- var AssignMethod;
21
- (function (AssignMethod) {
22
- AssignMethod[AssignMethod["ALL"] = 0] = "ALL";
23
- AssignMethod[AssignMethod["ROUND_ROBIN"] = 1] = "ROUND_ROBIN";
24
- AssignMethod[AssignMethod["RANDOM"] = 2] = "RANDOM";
25
- AssignMethod[AssignMethod["LEAST_BUSY"] = 3] = "LEAST_BUSY";
26
- })(AssignMethod || (exports.AssignMethod = AssignMethod = {}));
27
- var ConversationStatus;
28
- (function (ConversationStatus) {
29
- ConversationStatus[ConversationStatus["NEW"] = 1] = "NEW";
30
- ConversationStatus[ConversationStatus["OPEN"] = 2] = "OPEN";
31
- ConversationStatus[ConversationStatus["ACTIVE"] = 2] = "ACTIVE";
32
- ConversationStatus[ConversationStatus["RESOLVED"] = 3] = "RESOLVED";
33
- ConversationStatus[ConversationStatus["FINALIZED"] = 3] = "FINALIZED";
34
- ConversationStatus[ConversationStatus["WAITING"] = 10] = "WAITING";
35
- // ARCHIVED = 4,
36
- })(ConversationStatus || (exports.ConversationStatus = ConversationStatus = {}));