@trii/types 2.10.79

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 (522) hide show
  1. package/README.md +9 -0
  2. package/dist/AI/Credential.d.ts +13 -0
  3. package/dist/AI/Credential.js +2 -0
  4. package/dist/AI/Documents/Document.d.ts +36 -0
  5. package/dist/AI/Documents/Document.js +15 -0
  6. package/dist/AI/Documents/Store.d.ts +25 -0
  7. package/dist/AI/Documents/Store.js +10 -0
  8. package/dist/AI/Map.d.ts +13 -0
  9. package/dist/AI/Map.js +2 -0
  10. package/dist/AI/MapPolygon.d.ts +22 -0
  11. package/dist/AI/MapPolygon.js +2 -0
  12. package/dist/AI/Provider.d.ts +6 -0
  13. package/dist/AI/Provider.js +2 -0
  14. package/dist/AI/Threads/API.d.ts +55 -0
  15. package/dist/AI/Threads/API.js +2 -0
  16. package/dist/AI/Threads/Message.d.ts +61 -0
  17. package/dist/AI/Threads/Message.js +2 -0
  18. package/dist/AI/Threads/Thread.d.ts +22 -0
  19. package/dist/AI/Threads/Thread.js +2 -0
  20. package/dist/AI/Threads/index.d.ts +3 -0
  21. package/dist/AI/Threads/index.js +19 -0
  22. package/dist/AI/aiModuleStatus.d.ts +3 -0
  23. package/dist/AI/aiModuleStatus.js +2 -0
  24. package/dist/AI/index.d.ts +4 -0
  25. package/dist/AI/index.js +20 -0
  26. package/dist/Accounts/accounts.d.ts +88 -0
  27. package/dist/Accounts/accounts.js +24 -0
  28. package/dist/Accounts/device.d.ts +31 -0
  29. package/dist/Accounts/device.js +19 -0
  30. package/dist/Accounts/index.d.ts +2 -0
  31. package/dist/Accounts/index.js +18 -0
  32. package/dist/ApiResponses/index.d.ts +9 -0
  33. package/dist/ApiResponses/index.js +2 -0
  34. package/dist/AuditLogs/auditLog.d.ts +9 -0
  35. package/dist/AuditLogs/auditLog.js +2 -0
  36. package/dist/AuditLogs/auditLogType.d.ts +5 -0
  37. package/dist/AuditLogs/auditLogType.js +9 -0
  38. package/dist/AuditLogs/index.d.ts +2 -0
  39. package/dist/AuditLogs/index.js +18 -0
  40. package/dist/Automations/Capabilities/Capability.d.ts +81 -0
  41. package/dist/Automations/Capabilities/Capability.js +23 -0
  42. package/dist/Automations/Capabilities/index.d.ts +1 -0
  43. package/dist/Automations/Capabilities/index.js +17 -0
  44. package/dist/Automations/Common.d.ts +94 -0
  45. package/dist/Automations/Common.js +40 -0
  46. package/dist/Automations/Events/Event.d.ts +96 -0
  47. package/dist/Automations/Events/Event.js +19 -0
  48. package/dist/Automations/Events/index.d.ts +1 -0
  49. package/dist/Automations/Events/index.js +17 -0
  50. package/dist/Automations/Executions/Execution.d.ts +298 -0
  51. package/dist/Automations/Executions/Execution.js +76 -0
  52. package/dist/Automations/Executions/Testing.d.ts +166 -0
  53. package/dist/Automations/Executions/Testing.js +54 -0
  54. package/dist/Automations/Executions/index.d.ts +2 -0
  55. package/dist/Automations/Executions/index.js +18 -0
  56. package/dist/Automations/Flows/Canvas.d.ts +109 -0
  57. package/dist/Automations/Flows/Canvas.js +43 -0
  58. package/dist/Automations/Flows/Flow.d.ts +154 -0
  59. package/dist/Automations/Flows/Flow.js +58 -0
  60. package/dist/Automations/Flows/Requests.d.ts +71 -0
  61. package/dist/Automations/Flows/Requests.js +2 -0
  62. package/dist/Automations/Flows/Validation.d.ts +28 -0
  63. package/dist/Automations/Flows/Validation.js +9 -0
  64. package/dist/Automations/Flows/index.d.ts +4 -0
  65. package/dist/Automations/Flows/index.js +20 -0
  66. package/dist/Automations/Nodes/Node.d.ts +116 -0
  67. package/dist/Automations/Nodes/Node.js +27 -0
  68. package/dist/Automations/Nodes/index.d.ts +1 -0
  69. package/dist/Automations/Nodes/index.js +17 -0
  70. package/dist/Automations/Triggers/Trigger.d.ts +112 -0
  71. package/dist/Automations/Triggers/Trigger.js +66 -0
  72. package/dist/Automations/Triggers/index.d.ts +1 -0
  73. package/dist/Automations/Triggers/index.js +17 -0
  74. package/dist/Automations/index.d.ts +7 -0
  75. package/dist/Automations/index.js +23 -0
  76. package/dist/Calendar/Calendar.d.ts +18 -0
  77. package/dist/Calendar/Calendar.js +2 -0
  78. package/dist/Calendar/Common.d.ts +77 -0
  79. package/dist/Calendar/Common.js +16 -0
  80. package/dist/Calendar/Event.d.ts +64 -0
  81. package/dist/Calendar/Event.js +16 -0
  82. package/dist/Calendar/Events.d.ts +61 -0
  83. package/dist/Calendar/Events.js +5 -0
  84. package/dist/Calendar/Task.d.ts +12 -0
  85. package/dist/Calendar/Task.js +2 -0
  86. package/dist/Calendar/Tasks.d.ts +18 -0
  87. package/dist/Calendar/Tasks.js +5 -0
  88. package/dist/Calendar/index.d.ts +3 -0
  89. package/dist/Calendar/index.js +19 -0
  90. package/dist/Calls/Audio.d.ts +17 -0
  91. package/dist/Calls/Audio.js +8 -0
  92. package/dist/Calls/Call.d.ts +59 -0
  93. package/dist/Calls/Call.js +25 -0
  94. package/dist/Calls/Codecs.d.ts +5 -0
  95. package/dist/Calls/Codecs.js +21 -0
  96. package/dist/Calls/Extension.d.ts +24 -0
  97. package/dist/Calls/Extension.js +2 -0
  98. package/dist/Calls/Options.d.ts +5 -0
  99. package/dist/Calls/Options.js +2 -0
  100. package/dist/Calls/Queue.d.ts +52 -0
  101. package/dist/Calls/Queue.js +12 -0
  102. package/dist/Calls/RingGroup.d.ts +46 -0
  103. package/dist/Calls/RingGroup.js +27 -0
  104. package/dist/Calls/Transport.d.ts +6 -0
  105. package/dist/Calls/Transport.js +11 -0
  106. package/dist/Calls/Trunk.d.ts +31 -0
  107. package/dist/Calls/Trunk.js +2 -0
  108. package/dist/Calls/index.d.ts +6 -0
  109. package/dist/Calls/index.js +22 -0
  110. package/dist/Chats/Chat.d.ts +63 -0
  111. package/dist/Chats/Chat.js +28 -0
  112. package/dist/Collections/Api.d.ts +41 -0
  113. package/dist/Collections/Api.js +2 -0
  114. package/dist/Collections/Commission.d.ts +52 -0
  115. package/dist/Collections/Commission.js +10 -0
  116. package/dist/Collections/Common.d.ts +78 -0
  117. package/dist/Collections/Common.js +39 -0
  118. package/dist/Collections/Dashboard.d.ts +27 -0
  119. package/dist/Collections/Dashboard.js +2 -0
  120. package/dist/Collections/Debt.d.ts +97 -0
  121. package/dist/Collections/Debt.js +12 -0
  122. package/dist/Collections/Interest.d.ts +38 -0
  123. package/dist/Collections/Interest.js +25 -0
  124. package/dist/Collections/Payment.d.ts +87 -0
  125. package/dist/Collections/Payment.js +21 -0
  126. package/dist/Collections/PaymentPlan.d.ts +87 -0
  127. package/dist/Collections/PaymentPlan.js +21 -0
  128. package/dist/Collections/PaymentPlanConfiguration.d.ts +100 -0
  129. package/dist/Collections/PaymentPlanConfiguration.js +34 -0
  130. package/dist/Collections/Portfolio.d.ts +52 -0
  131. package/dist/Collections/Portfolio.js +12 -0
  132. package/dist/Collections/Promise.d.ts +49 -0
  133. package/dist/Collections/Promise.js +25 -0
  134. package/dist/Collections/index.d.ts +11 -0
  135. package/dist/Collections/index.js +27 -0
  136. package/dist/Common/API/AuthApiKey.d.ts +5 -0
  137. package/dist/Common/API/AuthApiKey.js +2 -0
  138. package/dist/Common/API/AuthBasic.d.ts +4 -0
  139. package/dist/Common/API/AuthBasic.js +2 -0
  140. package/dist/Common/API/AuthBearer.d.ts +5 -0
  141. package/dist/Common/API/AuthBearer.js +2 -0
  142. package/dist/Common/API/AuthType.d.ts +6 -0
  143. package/dist/Common/API/AuthType.js +10 -0
  144. package/dist/Common/API/Method.d.ts +4 -0
  145. package/dist/Common/API/Method.js +8 -0
  146. package/dist/Common/API/index.d.ts +5 -0
  147. package/dist/Common/API/index.js +21 -0
  148. package/dist/Common/Channels/Channel.d.ts +143 -0
  149. package/dist/Common/Channels/Channel.js +33 -0
  150. package/dist/Common/Channels/ChannelAccount.d.ts +35 -0
  151. package/dist/Common/Channels/ChannelAccount.js +17 -0
  152. package/dist/Common/Channels/ChannelType.d.ts +24 -0
  153. package/dist/Common/Channels/ChannelType.js +28 -0
  154. package/dist/Common/Channels/Email.d.ts +88 -0
  155. package/dist/Common/Channels/Email.js +49 -0
  156. package/dist/Common/Channels/Facebook.d.ts +26 -0
  157. package/dist/Common/Channels/Facebook.js +6 -0
  158. package/dist/Common/Channels/Form.d.ts +119 -0
  159. package/dist/Common/Channels/Form.js +32 -0
  160. package/dist/Common/Channels/GoogleBusiness.d.ts +21 -0
  161. package/dist/Common/Channels/GoogleBusiness.js +9 -0
  162. package/dist/Common/Channels/Instagram.d.ts +35 -0
  163. package/dist/Common/Channels/Instagram.js +14 -0
  164. package/dist/Common/Channels/MercadoLibre.d.ts +28 -0
  165. package/dist/Common/Channels/MercadoLibre.js +9 -0
  166. package/dist/Common/Channels/Pbx.d.ts +2 -0
  167. package/dist/Common/Channels/Pbx.js +6 -0
  168. package/dist/Common/Channels/Permission.d.ts +6 -0
  169. package/dist/Common/Channels/Permission.js +6 -0
  170. package/dist/Common/Channels/RCS.d.ts +37 -0
  171. package/dist/Common/Channels/RCS.js +9 -0
  172. package/dist/Common/Channels/Sip.d.ts +2 -0
  173. package/dist/Common/Channels/Sip.js +6 -0
  174. package/dist/Common/Channels/Sms.d.ts +46 -0
  175. package/dist/Common/Channels/Sms.js +16 -0
  176. package/dist/Common/Channels/WebChat.d.ts +68 -0
  177. package/dist/Common/Channels/WebChat.js +13 -0
  178. package/dist/Common/Channels/WhatsApp.d.ts +89 -0
  179. package/dist/Common/Channels/WhatsApp.js +18 -0
  180. package/dist/Common/Channels/index.d.ts +16 -0
  181. package/dist/Common/Channels/index.js +32 -0
  182. package/dist/Common/EventsQueue/Data/postComment.d.ts +26 -0
  183. package/dist/Common/EventsQueue/Data/postComment.js +2 -0
  184. package/dist/Common/EventsQueue/EmailTemplate.d.ts +10 -0
  185. package/dist/Common/EventsQueue/EmailTemplate.js +2 -0
  186. package/dist/Common/EventsQueue/EventQueue.d.ts +31 -0
  187. package/dist/Common/EventsQueue/EventQueue.js +2 -0
  188. package/dist/Common/EventsQueue/UserUpdate.d.ts +8 -0
  189. package/dist/Common/EventsQueue/UserUpdate.js +2 -0
  190. package/dist/Common/EventsQueue/index.d.ts +3 -0
  191. package/dist/Common/EventsQueue/index.js +19 -0
  192. package/dist/Common/Logs/Log.d.ts +18 -0
  193. package/dist/Common/Logs/Log.js +13 -0
  194. package/dist/Common/Logs/index.d.ts +1 -0
  195. package/dist/Common/Logs/index.js +17 -0
  196. package/dist/Common/Messages/MediaFile.d.ts +5 -0
  197. package/dist/Common/Messages/MediaFile.js +2 -0
  198. package/dist/Common/Messages/Message.d.ts +600 -0
  199. package/dist/Common/Messages/Message.js +64 -0
  200. package/dist/Common/Messages/Template.d.ts +86 -0
  201. package/dist/Common/Messages/Template.js +26 -0
  202. package/dist/Common/Messages/index.d.ts +3 -0
  203. package/dist/Common/Messages/index.js +19 -0
  204. package/dist/Common/Notifications/Notification.d.ts +19 -0
  205. package/dist/Common/Notifications/Notification.js +10 -0
  206. package/dist/Common/Notifications/UserNotificationsConfig.d.ts +33 -0
  207. package/dist/Common/Notifications/UserNotificationsConfig.js +18 -0
  208. package/dist/Common/Notifications/index.d.ts +2 -0
  209. package/dist/Common/Notifications/index.js +18 -0
  210. package/dist/Common/Schedules/Schedules.d.ts +32 -0
  211. package/dist/Common/Schedules/Schedules.js +2 -0
  212. package/dist/Common/Schedules/index.d.ts +1 -0
  213. package/dist/Common/Schedules/index.js +17 -0
  214. package/dist/Common/index.d.ts +6 -0
  215. package/dist/Common/index.js +42 -0
  216. package/dist/Contacts/CommunicationEndpoint.d.ts +107 -0
  217. package/dist/Contacts/CommunicationEndpoint.js +39 -0
  218. package/dist/Contacts/CommunicationMethod.d.ts +9 -0
  219. package/dist/Contacts/CommunicationMethod.js +2 -0
  220. package/dist/Contacts/DuplicateContact.d.ts +11 -0
  221. package/dist/Contacts/DuplicateContact.js +2 -0
  222. package/dist/Contacts/File.d.ts +17 -0
  223. package/dist/Contacts/File.js +2 -0
  224. package/dist/Contacts/Import.d.ts +18 -0
  225. package/dist/Contacts/Import.js +2 -0
  226. package/dist/Contacts/Label.d.ts +9 -0
  227. package/dist/Contacts/Label.js +2 -0
  228. package/dist/Contacts/Note.d.ts +15 -0
  229. package/dist/Contacts/Note.js +2 -0
  230. package/dist/Contacts/Relationship.d.ts +28 -0
  231. package/dist/Contacts/Relationship.js +16 -0
  232. package/dist/Contacts/contacts.d.ts +291 -0
  233. package/dist/Contacts/contacts.js +54 -0
  234. package/dist/Contacts/index.d.ts +11 -0
  235. package/dist/Contacts/index.js +27 -0
  236. package/dist/Contacts/options.d.ts +5 -0
  237. package/dist/Contacts/options.js +2 -0
  238. package/dist/Contacts/segments.d.ts +53 -0
  239. package/dist/Contacts/segments.js +54 -0
  240. package/dist/Conversations/Assignment.d.ts +188 -0
  241. package/dist/Conversations/Assignment.js +2 -0
  242. package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +78 -0
  243. package/dist/Conversations/Classifications/ClassificationTaxonomy.js +2 -0
  244. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.d.ts +67 -0
  245. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.js +2 -0
  246. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +31 -0
  247. package/dist/Conversations/Classifications/ConversationClassificationEvents.js +8 -0
  248. package/dist/Conversations/Classifications/index.d.ts +3 -0
  249. package/dist/Conversations/Classifications/index.js +19 -0
  250. package/dist/Conversations/Conversation.d.ts +522 -0
  251. package/dist/Conversations/Conversation.js +37 -0
  252. package/dist/Conversations/ConversationAutomationState.d.ts +49 -0
  253. package/dist/Conversations/ConversationAutomationState.js +2 -0
  254. package/dist/Conversations/ConversationPendingTransfer.d.ts +18 -0
  255. package/dist/Conversations/ConversationPendingTransfer.js +2 -0
  256. package/dist/Conversations/ConversationReadState.d.ts +16 -0
  257. package/dist/Conversations/ConversationReadState.js +2 -0
  258. package/dist/Conversations/ConversationSlaClockState.d.ts +70 -0
  259. package/dist/Conversations/ConversationSlaClockState.js +2 -0
  260. package/dist/Conversations/ConversationTransferRouting.d.ts +77 -0
  261. package/dist/Conversations/ConversationTransferRouting.js +2 -0
  262. package/dist/Conversations/DashBoard/dashboard.d.ts +115 -0
  263. package/dist/Conversations/DashBoard/dashboard.js +65 -0
  264. package/dist/Conversations/DashBoard/dashboardChannels.d.ts +5 -0
  265. package/dist/Conversations/DashBoard/dashboardChannels.js +6 -0
  266. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  267. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  268. package/dist/Conversations/DashBoard/dashboardMessages.d.ts +13 -0
  269. package/dist/Conversations/DashBoard/dashboardMessages.js +9 -0
  270. package/dist/Conversations/Ending.d.ts +17 -0
  271. package/dist/Conversations/Ending.js +2 -0
  272. package/dist/Conversations/Flows/Definitions.d.ts +10 -0
  273. package/dist/Conversations/Flows/Definitions.js +2 -0
  274. package/dist/Conversations/Flows/Flow.d.ts +222 -0
  275. package/dist/Conversations/Flows/Flow.js +50 -0
  276. package/dist/Conversations/Flows/FlowInfo.d.ts +9 -0
  277. package/dist/Conversations/Flows/FlowInfo.js +2 -0
  278. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
  279. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
  280. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  281. package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
  282. package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
  283. package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
  284. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
  285. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
  286. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
  287. package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
  288. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
  289. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
  290. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
  291. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
  292. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
  293. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
  294. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
  295. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
  296. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
  297. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
  298. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
  299. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
  300. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
  301. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
  302. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
  303. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
  304. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
  305. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
  306. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
  307. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
  308. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
  309. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
  310. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
  311. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
  312. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
  313. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
  314. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
  315. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
  316. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
  317. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
  318. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
  319. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
  320. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
  321. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
  322. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
  323. package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
  324. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
  325. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
  326. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
  327. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
  328. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
  329. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
  330. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
  331. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
  332. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
  333. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
  334. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
  335. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
  336. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
  337. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
  338. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
  339. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
  340. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
  341. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
  342. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
  343. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
  344. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
  345. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
  346. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
  347. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
  348. package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
  349. package/dist/Conversations/Flows/Nodes/index.js +40 -0
  350. package/dist/Conversations/Flows/Workflows/Workflow.d.ts +336 -0
  351. package/dist/Conversations/Flows/Workflows/Workflow.js +98 -0
  352. package/dist/Conversations/Flows/Workflows/index.d.ts +1 -0
  353. package/dist/Conversations/Flows/Workflows/index.js +17 -0
  354. package/dist/Conversations/Flows/index.d.ts +4 -0
  355. package/dist/Conversations/Flows/index.js +20 -0
  356. package/dist/Conversations/Groups/Group.d.ts +17 -0
  357. package/dist/Conversations/Groups/Group.js +2 -0
  358. package/dist/Conversations/InboxCounters.d.ts +18 -0
  359. package/dist/Conversations/InboxCounters.js +2 -0
  360. package/dist/Conversations/InboxQueries.d.ts +133 -0
  361. package/dist/Conversations/InboxQueries.js +2 -0
  362. package/dist/Conversations/Label.d.ts +10 -0
  363. package/dist/Conversations/Label.js +2 -0
  364. package/dist/Conversations/Outbox.d.ts +23 -0
  365. package/dist/Conversations/Outbox.js +2 -0
  366. package/dist/Conversations/Queue.d.ts +103 -0
  367. package/dist/Conversations/Queue.js +2 -0
  368. package/dist/Conversations/QuickResponse.d.ts +34 -0
  369. package/dist/Conversations/QuickResponse.js +2 -0
  370. package/dist/Conversations/Routing.d.ts +159 -0
  371. package/dist/Conversations/Routing.js +2 -0
  372. package/dist/Conversations/Sla.d.ts +236 -0
  373. package/dist/Conversations/Sla.js +2 -0
  374. package/dist/Conversations/SocialWalls.d.ts +88 -0
  375. package/dist/Conversations/SocialWalls.js +2 -0
  376. package/dist/Conversations/Survey.d.ts +19 -0
  377. package/dist/Conversations/Survey.js +9 -0
  378. package/dist/Conversations/Transfer.d.ts +74 -0
  379. package/dist/Conversations/Transfer.js +2 -0
  380. package/dist/Conversations/WebHook.d.ts +22 -0
  381. package/dist/Conversations/WebHook.js +2 -0
  382. package/dist/Conversations/index.d.ts +26 -0
  383. package/dist/Conversations/index.js +65 -0
  384. package/dist/Docs/Document.d.ts +58 -0
  385. package/dist/Docs/Document.js +29 -0
  386. package/dist/Docs/Store.d.ts +37 -0
  387. package/dist/Docs/Store.js +17 -0
  388. package/dist/Docs/index.d.ts +2 -0
  389. package/dist/Docs/index.js +18 -0
  390. package/dist/Events/DomainEventTypes.d.ts +51 -0
  391. package/dist/Events/DomainEventTypes.js +49 -0
  392. package/dist/Events/index.d.ts +1 -0
  393. package/dist/Events/index.js +17 -0
  394. package/dist/Forms/API.d.ts +53 -0
  395. package/dist/Forms/API.js +2 -0
  396. package/dist/Forms/SubmittedForm.d.ts +56 -0
  397. package/dist/Forms/SubmittedForm.js +9 -0
  398. package/dist/Forms/index.d.ts +2 -0
  399. package/dist/Forms/index.js +18 -0
  400. package/dist/Marketing/Campaign.d.ts +115 -0
  401. package/dist/Marketing/Campaign.js +29 -0
  402. package/dist/Marketing/CampaignContract.d.ts +3 -0
  403. package/dist/Marketing/CampaignContract.js +54 -0
  404. package/dist/Marketing/Dashboard.d.ts +48 -0
  405. package/dist/Marketing/Dashboard.js +2 -0
  406. package/dist/Marketing/Options.d.ts +12 -0
  407. package/dist/Marketing/Options.js +9 -0
  408. package/dist/Marketing/Template.d.ts +19 -0
  409. package/dist/Marketing/Template.js +8 -0
  410. package/dist/Marketing/index.d.ts +5 -0
  411. package/dist/Marketing/index.js +21 -0
  412. package/dist/Presence/AgentPause.d.ts +24 -0
  413. package/dist/Presence/AgentPause.js +19 -0
  414. package/dist/Presence/ChannelRoutingState.d.ts +17 -0
  415. package/dist/Presence/ChannelRoutingState.js +9 -0
  416. package/dist/Presence/QueueParticipation.d.ts +17 -0
  417. package/dist/Presence/QueueParticipation.js +2 -0
  418. package/dist/Presence/QueueRoutingState.d.ts +27 -0
  419. package/dist/Presence/QueueRoutingState.js +9 -0
  420. package/dist/Presence/index.d.ts +3 -0
  421. package/dist/Presence/index.js +19 -0
  422. package/dist/PublicAPI/apiKey.d.ts +101 -0
  423. package/dist/PublicAPI/apiKey.js +29 -0
  424. package/dist/Reports/ScheduledReport.d.ts +205 -0
  425. package/dist/Reports/ScheduledReport.js +57 -0
  426. package/dist/Reports/aiReport.d.ts +20 -0
  427. package/dist/Reports/aiReport.js +2 -0
  428. package/dist/Reports/apiResult.d.ts +5 -0
  429. package/dist/Reports/apiResult.js +2 -0
  430. package/dist/Reports/index.d.ts +3 -0
  431. package/dist/Reports/index.js +19 -0
  432. package/dist/Sales/Api.d.ts +40 -0
  433. package/dist/Sales/Api.js +2 -0
  434. package/dist/Sales/Common.d.ts +72 -0
  435. package/dist/Sales/Common.js +31 -0
  436. package/dist/Sales/Dashboard.d.ts +25 -0
  437. package/dist/Sales/Dashboard.js +2 -0
  438. package/dist/Sales/Lead.d.ts +99 -0
  439. package/dist/Sales/Lead.js +8 -0
  440. package/dist/Sales/index.d.ts +4 -0
  441. package/dist/Sales/index.js +20 -0
  442. package/dist/Security/Security.d.ts +5 -0
  443. package/dist/Security/Security.js +2 -0
  444. package/dist/Security/index.d.ts +1 -0
  445. package/dist/Security/index.js +17 -0
  446. package/dist/Shop/Cart/cart.d.ts +19 -0
  447. package/dist/Shop/Cart/cart.js +2 -0
  448. package/dist/Shop/index.d.ts +1 -0
  449. package/dist/Shop/index.js +17 -0
  450. package/dist/Spaces/Dashboard.d.ts +4 -0
  451. package/dist/Spaces/Dashboard.js +2 -0
  452. package/dist/Spaces/index.d.ts +2 -0
  453. package/dist/Spaces/index.js +18 -0
  454. package/dist/Spaces/spaces.d.ts +104 -0
  455. package/dist/Spaces/spaces.js +85 -0
  456. package/dist/Tickets/AI.d.ts +448 -0
  457. package/dist/Tickets/AI.js +113 -0
  458. package/dist/Tickets/AccessLevel.d.ts +5 -0
  459. package/dist/Tickets/AccessLevel.js +9 -0
  460. package/dist/Tickets/AdvancedApi.d.ts +641 -0
  461. package/dist/Tickets/AdvancedApi.js +135 -0
  462. package/dist/Tickets/Api.d.ts +79 -0
  463. package/dist/Tickets/Api.js +8 -0
  464. package/dist/Tickets/Approval.d.ts +155 -0
  465. package/dist/Tickets/Approval.js +30 -0
  466. package/dist/Tickets/Automation.d.ts +285 -0
  467. package/dist/Tickets/Automation.js +78 -0
  468. package/dist/Tickets/Category.d.ts +89 -0
  469. package/dist/Tickets/Category.js +2 -0
  470. package/dist/Tickets/Common.d.ts +172 -0
  471. package/dist/Tickets/Common.js +38 -0
  472. package/dist/Tickets/Conversation.d.ts +134 -0
  473. package/dist/Tickets/Conversation.js +43 -0
  474. package/dist/Tickets/CustomerNotification.d.ts +192 -0
  475. package/dist/Tickets/CustomerNotification.js +54 -0
  476. package/dist/Tickets/Dashboard.d.ts +710 -0
  477. package/dist/Tickets/Dashboard.js +284 -0
  478. package/dist/Tickets/Fields.d.ts +235 -0
  479. package/dist/Tickets/Fields.js +44 -0
  480. package/dist/Tickets/Group.d.ts +74 -0
  481. package/dist/Tickets/Group.js +2 -0
  482. package/dist/Tickets/Layouts.d.ts +65 -0
  483. package/dist/Tickets/Layouts.js +22 -0
  484. package/dist/Tickets/Notes.d.ts +30 -0
  485. package/dist/Tickets/Notes.js +13 -0
  486. package/dist/Tickets/QuickResponse.d.ts +64 -0
  487. package/dist/Tickets/QuickResponse.js +41 -0
  488. package/dist/Tickets/Routing.d.ts +459 -0
  489. package/dist/Tickets/Routing.js +116 -0
  490. package/dist/Tickets/Satisfaction.d.ts +31 -0
  491. package/dist/Tickets/Satisfaction.js +9 -0
  492. package/dist/Tickets/Security.d.ts +573 -0
  493. package/dist/Tickets/Security.js +117 -0
  494. package/dist/Tickets/SelfService.d.ts +670 -0
  495. package/dist/Tickets/SelfService.js +62 -0
  496. package/dist/Tickets/Sla.d.ts +430 -0
  497. package/dist/Tickets/Sla.js +75 -0
  498. package/dist/Tickets/Task.d.ts +133 -0
  499. package/dist/Tickets/Task.js +17 -0
  500. package/dist/Tickets/Ticket.d.ts +167 -0
  501. package/dist/Tickets/Ticket.js +2 -0
  502. package/dist/Tickets/Views.d.ts +77 -0
  503. package/dist/Tickets/Views.js +23 -0
  504. package/dist/Tickets/Workflow.d.ts +183 -0
  505. package/dist/Tickets/Workflow.js +48 -0
  506. package/dist/Tickets/index.d.ts +24 -0
  507. package/dist/Tickets/index.js +40 -0
  508. package/dist/Users/Signature.d.ts +81 -0
  509. package/dist/Users/Signature.js +2 -0
  510. package/dist/Users/UserActivitySummary.d.ts +5 -0
  511. package/dist/Users/UserActivitySummary.js +2 -0
  512. package/dist/Users/UserProfile.d.ts +121 -0
  513. package/dist/Users/UserProfile.js +5 -0
  514. package/dist/Users/UserTrii.d.ts +112 -0
  515. package/dist/Users/UserTrii.js +17 -0
  516. package/dist/Users/UserType.d.ts +10 -0
  517. package/dist/Users/UserType.js +13 -0
  518. package/dist/Users/index.d.ts +5 -0
  519. package/dist/Users/index.js +21 -0
  520. package/dist/index.d.ts +25 -0
  521. package/dist/index.js +61 -0
  522. package/package.json +12 -0
@@ -0,0 +1,86 @@
1
+ export interface Template {
2
+ id: string;
3
+ spaceId: string;
4
+ channelId?: string;
5
+ enabled: boolean | true;
6
+ name?: string;
7
+ namespace?: string;
8
+ language?: string;
9
+ category?: string;
10
+ contentSid?: string;
11
+ body: string;
12
+ buttons?: TemplateButton[];
13
+ header: TemplateHeader;
14
+ footer: string;
15
+ add_security_recommendation?: boolean;
16
+ code_expiration_minutes?: number;
17
+ message_send_ttl_seconds?: number;
18
+ varsBody?: TemplateVar[];
19
+ varsHeader?: TemplateVar[];
20
+ varsFooter?: TemplateVar[];
21
+ varsButtons?: TemplateVarButton[];
22
+ status: TemplateStatus;
23
+ rejectedReason: string;
24
+ timestamp?: Date;
25
+ /**lista de id de grupos */
26
+ allowGroups?: string[];
27
+ /**lista de id de usuarios */
28
+ allowUsers?: string[];
29
+ /**Usar en modulo Conversations */
30
+ allowInConversations?: boolean | true;
31
+ /**Usar en modulo Marketing */
32
+ allowInMarketing?: boolean | true;
33
+ }
34
+ export declare enum TemplateStatus {
35
+ PENDING = 0,
36
+ APPROVED = 1,
37
+ REJECTED = 2,
38
+ PROCESSING = 3
39
+ }
40
+ export interface TemplateHeader {
41
+ type: TemplateHeaderType;
42
+ text: string;
43
+ url: string;
44
+ mimeType: string;
45
+ filename: string;
46
+ locationName: string;
47
+ locationAddress: string;
48
+ }
49
+ export declare enum TemplateHeaderType {
50
+ TEXT = 0,
51
+ IMAGE = 1,
52
+ VIDEO = 2,
53
+ FILE = 3,
54
+ LOCATION = 4
55
+ }
56
+ export interface TemplateButton {
57
+ btnNumber: number;
58
+ text: string;
59
+ url: string;
60
+ payload: string;
61
+ type: TemplateButtonType;
62
+ package_name?: string;
63
+ signature_hash?: string;
64
+ autofill_text?: string;
65
+ zero_tap_terms_accepted?: boolean;
66
+ supported_apps?: TemplateButtonApp[];
67
+ }
68
+ export declare enum TemplateButtonType {
69
+ TEXT = 0,
70
+ URL = 1,
71
+ COPY_CODE = 2,
72
+ ONE_TAP = 3,
73
+ ZERO_TAP = 4
74
+ }
75
+ export interface TemplateButtonApp {
76
+ package_name: string;
77
+ signature_hash: string;
78
+ }
79
+ export interface TemplateVar {
80
+ name: string;
81
+ value: string;
82
+ }
83
+ export interface TemplateVarButton {
84
+ btnNumber: number;
85
+ vars: TemplateVar[];
86
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TemplateButtonType = exports.TemplateHeaderType = exports.TemplateStatus = void 0;
4
+ var TemplateStatus;
5
+ (function (TemplateStatus) {
6
+ TemplateStatus[TemplateStatus["PENDING"] = 0] = "PENDING";
7
+ TemplateStatus[TemplateStatus["APPROVED"] = 1] = "APPROVED";
8
+ TemplateStatus[TemplateStatus["REJECTED"] = 2] = "REJECTED";
9
+ TemplateStatus[TemplateStatus["PROCESSING"] = 3] = "PROCESSING";
10
+ })(TemplateStatus || (exports.TemplateStatus = TemplateStatus = {}));
11
+ var TemplateHeaderType;
12
+ (function (TemplateHeaderType) {
13
+ TemplateHeaderType[TemplateHeaderType["TEXT"] = 0] = "TEXT";
14
+ TemplateHeaderType[TemplateHeaderType["IMAGE"] = 1] = "IMAGE";
15
+ TemplateHeaderType[TemplateHeaderType["VIDEO"] = 2] = "VIDEO";
16
+ TemplateHeaderType[TemplateHeaderType["FILE"] = 3] = "FILE";
17
+ TemplateHeaderType[TemplateHeaderType["LOCATION"] = 4] = "LOCATION";
18
+ })(TemplateHeaderType || (exports.TemplateHeaderType = TemplateHeaderType = {}));
19
+ var TemplateButtonType;
20
+ (function (TemplateButtonType) {
21
+ TemplateButtonType[TemplateButtonType["TEXT"] = 0] = "TEXT";
22
+ TemplateButtonType[TemplateButtonType["URL"] = 1] = "URL";
23
+ TemplateButtonType[TemplateButtonType["COPY_CODE"] = 2] = "COPY_CODE";
24
+ TemplateButtonType[TemplateButtonType["ONE_TAP"] = 3] = "ONE_TAP";
25
+ TemplateButtonType[TemplateButtonType["ZERO_TAP"] = 4] = "ZERO_TAP";
26
+ })(TemplateButtonType || (exports.TemplateButtonType = TemplateButtonType = {}));
@@ -0,0 +1,3 @@
1
+ export * from "./Message";
2
+ export * from "./MediaFile";
3
+ export * from "./Template";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Message"), exports);
18
+ __exportStar(require("./MediaFile"), exports);
19
+ __exportStar(require("./Template"), exports);
@@ -0,0 +1,19 @@
1
+ export interface INotification {
2
+ id: string;
3
+ type: string;
4
+ title: string;
5
+ description: string;
6
+ isRead: Boolean;
7
+ task?: NotificationTask;
8
+ createdAt: Date;
9
+ }
10
+ export interface NotificationTask {
11
+ taskId: string;
12
+ taskStatus: NotificationTaskStatus;
13
+ }
14
+ export declare enum NotificationTaskStatus {
15
+ QUEUED = 0,
16
+ RUNNING = 1,
17
+ FINISHED = 2,
18
+ ERROR = 3
19
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationTaskStatus = void 0;
4
+ var NotificationTaskStatus;
5
+ (function (NotificationTaskStatus) {
6
+ NotificationTaskStatus[NotificationTaskStatus["QUEUED"] = 0] = "QUEUED";
7
+ NotificationTaskStatus[NotificationTaskStatus["RUNNING"] = 1] = "RUNNING";
8
+ NotificationTaskStatus[NotificationTaskStatus["FINISHED"] = 2] = "FINISHED";
9
+ NotificationTaskStatus[NotificationTaskStatus["ERROR"] = 3] = "ERROR";
10
+ })(NotificationTaskStatus || (exports.NotificationTaskStatus = NotificationTaskStatus = {}));
@@ -0,0 +1,33 @@
1
+ export interface IUserNotificationsConfig {
2
+ id: string;
3
+ spaceId: string;
4
+ userId: string;
5
+ conversations: UserConfig_Conversations;
6
+ chat: UserConfig_Chat;
7
+ calendar: UserConfig_Calendar;
8
+ tickets: UserConfig_Tickets;
9
+ }
10
+ export declare class UserConfig_Conversations {
11
+ newConversation: UserConfig_SendTo;
12
+ transferIn: UserConfig_SendTo;
13
+ newMessage: UserConfig_SendTo;
14
+ responseTimeOut: UserConfig_SendTo;
15
+ reminders: UserConfig_SendTo;
16
+ }
17
+ export declare class UserConfig_Chat {
18
+ reminders: UserConfig_SendTo;
19
+ }
20
+ export declare class UserConfig_Calendar {
21
+ eventReminder: UserConfig_SendTo;
22
+ }
23
+ export declare class UserConfig_Tickets {
24
+ newTicketAssigned: UserConfig_SendTo;
25
+ transferIn: UserConfig_SendTo;
26
+ newContactMessage: UserConfig_SendTo;
27
+ firstResponseTimeOut: UserConfig_SendTo;
28
+ resolutionTimeOut: UserConfig_SendTo;
29
+ }
30
+ export declare class UserConfig_SendTo {
31
+ email: boolean;
32
+ push: boolean;
33
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserConfig_SendTo = exports.UserConfig_Tickets = exports.UserConfig_Calendar = exports.UserConfig_Chat = exports.UserConfig_Conversations = void 0;
4
+ class UserConfig_Conversations {
5
+ }
6
+ exports.UserConfig_Conversations = UserConfig_Conversations;
7
+ class UserConfig_Chat {
8
+ }
9
+ exports.UserConfig_Chat = UserConfig_Chat;
10
+ class UserConfig_Calendar {
11
+ }
12
+ exports.UserConfig_Calendar = UserConfig_Calendar;
13
+ class UserConfig_Tickets {
14
+ }
15
+ exports.UserConfig_Tickets = UserConfig_Tickets;
16
+ class UserConfig_SendTo {
17
+ }
18
+ exports.UserConfig_SendTo = UserConfig_SendTo;
@@ -0,0 +1,2 @@
1
+ export * from './Notification';
2
+ export * from './UserNotificationsConfig';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Notification"), exports);
18
+ __exportStar(require("./UserNotificationsConfig"), exports);
@@ -0,0 +1,32 @@
1
+ export interface IHoliday {
2
+ id: string | null;
3
+ description: string | null;
4
+ datetimeStart: Date | null;
5
+ datetimeEnd: Date | null;
6
+ }
7
+ export interface ITimeRange {
8
+ id: string;
9
+ name: string;
10
+ monday: boolean;
11
+ tuesday: boolean;
12
+ wednesday: boolean;
13
+ thursday: boolean;
14
+ friday: boolean;
15
+ saturday: boolean;
16
+ sunday: boolean;
17
+ start: string | null;
18
+ end: string | null;
19
+ startSeconds: number;
20
+ endSeconds: number;
21
+ }
22
+ export interface ISchedule {
23
+ id: string | null;
24
+ spaceId: string | null;
25
+ name: string | null;
26
+ description: string | null;
27
+ timeRanges: ITimeRange[];
28
+ holidays: IHoliday[] | null;
29
+ createdAt?: Date | null;
30
+ updatedAt?: Date | null;
31
+ deletedAt?: Date | null;
32
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from './Schedules';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Schedules"), exports);
@@ -0,0 +1,6 @@
1
+ export * as API from './API/index';
2
+ export * as Channels from './Channels/index';
3
+ export * as Messages from './Messages/index';
4
+ export * as Notifications from './Notifications/index';
5
+ export * as Schedules from './Schedules/index';
6
+ export * as QueueEvent from './EventsQueue/index';
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.QueueEvent = exports.Schedules = exports.Notifications = exports.Messages = exports.Channels = exports.API = void 0;
37
+ exports.API = __importStar(require("./API/index"));
38
+ exports.Channels = __importStar(require("./Channels/index"));
39
+ exports.Messages = __importStar(require("./Messages/index"));
40
+ exports.Notifications = __importStar(require("./Notifications/index"));
41
+ exports.Schedules = __importStar(require("./Schedules/index"));
42
+ exports.QueueEvent = __importStar(require("./EventsQueue/index"));
@@ -0,0 +1,107 @@
1
+ export declare enum CommunicationEndpointKind {
2
+ PHONE = "phone",
3
+ EMAIL = "email",
4
+ PROVIDER_IDENTITY = "provider_identity"
5
+ }
6
+ /**
7
+ * Known provider identity namespaces. Contracts continue to accept strings so
8
+ * custom providers and namespaces can be introduced without a library update.
9
+ */
10
+ export declare const providerIdentityNamespaces: {
11
+ readonly meta: {
12
+ readonly instagramUser: "instagram_user";
13
+ readonly messengerUser: "messenger_user";
14
+ readonly whatsappUser: "whatsapp_user";
15
+ };
16
+ readonly telegram: {
17
+ readonly user: "user";
18
+ readonly chat: "chat";
19
+ };
20
+ readonly trii: {
21
+ readonly webchatVisitor: "webchat_visitor";
22
+ };
23
+ readonly mercadolibre: {
24
+ readonly buyer: "buyer";
25
+ };
26
+ readonly google: {
27
+ readonly businessMessagesUser: "business_messages_user";
28
+ };
29
+ };
30
+ export type KnownIdentityProvider = keyof typeof providerIdentityNamespaces;
31
+ export type KnownProviderIdentityNamespace = {
32
+ [TProvider in KnownIdentityProvider]: (typeof providerIdentityNamespaces)[TProvider][keyof (typeof providerIdentityNamespaces)[TProvider]];
33
+ }[KnownIdentityProvider];
34
+ export declare enum CommunicationEndpointStatus {
35
+ ACTIVE = "active",
36
+ INACTIVE = "inactive",
37
+ ORPHANED = "orphaned"
38
+ }
39
+ export interface ICommunicationEndpointActivity {
40
+ firstSeenAt?: Date;
41
+ lastSeenAt?: Date;
42
+ lastMessageInAt?: Date;
43
+ lastMessageOutAt?: Date;
44
+ }
45
+ export interface ICommunicationEndpoint {
46
+ id: string;
47
+ spaceId: string;
48
+ kind: CommunicationEndpointKind;
49
+ status: CommunicationEndpointStatus;
50
+ normalizedValue: string;
51
+ normalizationVersion: number;
52
+ displayValue: string;
53
+ phoneInfo?: IPhoneEndpointInfo;
54
+ emailInfo?: IEmailEndpointInfo;
55
+ providerIdentityInfo?: IProviderIdentityEndpointInfo;
56
+ activity?: ICommunicationEndpointActivity;
57
+ createdAt: Date;
58
+ createdBy?: string;
59
+ updatedAt?: Date;
60
+ updatedBy?: string;
61
+ inactiveAt?: Date;
62
+ inactiveBy?: string;
63
+ }
64
+ export interface IPhoneEndpointInfo {
65
+ e164: string;
66
+ isMobile: boolean;
67
+ country: string;
68
+ countryName: string;
69
+ /**
70
+ * ISO 3166-2 subdivision code when it can be resolved from the phone
71
+ * number, for example `AR-C` or `US-CA`. Empty when unknown, not
72
+ * applicable, or when the number does not identify a subdivision.
73
+ */
74
+ state: string;
75
+ /**
76
+ * Display name corresponding to `state`, for example `Córdoba` or
77
+ * `California`. Empty when `state` is not available.
78
+ */
79
+ stateName: string;
80
+ }
81
+ export interface IEmailEndpointInfo {
82
+ localPart: string;
83
+ domain: string;
84
+ }
85
+ export interface IProviderIdentityProfile {
86
+ displayName?: string;
87
+ username?: string;
88
+ imageUrl?: string;
89
+ imageObservedAt?: Date;
90
+ }
91
+ export interface IProviderIdentityEndpointInfo {
92
+ /** System that issues and controls the external identity. */
93
+ provider: string;
94
+ /**
95
+ * Provider-defined namespace in which the identity keys are valid.
96
+ * This is not a communication channel or a configured channel account.
97
+ */
98
+ identityNamespace: string;
99
+ /** Configured channel account in which the external identity is valid. */
100
+ channelAccountId: string;
101
+ profile?: IProviderIdentityProfile;
102
+ }
103
+ export interface ICommunicationEndpointSnapshot {
104
+ endpointId: string;
105
+ kind: CommunicationEndpointKind;
106
+ displayValue: string;
107
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CommunicationEndpointStatus = exports.providerIdentityNamespaces = exports.CommunicationEndpointKind = void 0;
4
+ var CommunicationEndpointKind;
5
+ (function (CommunicationEndpointKind) {
6
+ CommunicationEndpointKind["PHONE"] = "phone";
7
+ CommunicationEndpointKind["EMAIL"] = "email";
8
+ CommunicationEndpointKind["PROVIDER_IDENTITY"] = "provider_identity";
9
+ })(CommunicationEndpointKind || (exports.CommunicationEndpointKind = CommunicationEndpointKind = {}));
10
+ /**
11
+ * Known provider identity namespaces. Contracts continue to accept strings so
12
+ * custom providers and namespaces can be introduced without a library update.
13
+ */
14
+ exports.providerIdentityNamespaces = {
15
+ meta: {
16
+ instagramUser: 'instagram_user',
17
+ messengerUser: 'messenger_user',
18
+ whatsappUser: 'whatsapp_user',
19
+ },
20
+ telegram: {
21
+ user: 'user',
22
+ chat: 'chat',
23
+ },
24
+ trii: {
25
+ webchatVisitor: 'webchat_visitor',
26
+ },
27
+ mercadolibre: {
28
+ buyer: 'buyer',
29
+ },
30
+ google: {
31
+ businessMessagesUser: 'business_messages_user',
32
+ },
33
+ };
34
+ var CommunicationEndpointStatus;
35
+ (function (CommunicationEndpointStatus) {
36
+ CommunicationEndpointStatus["ACTIVE"] = "active";
37
+ CommunicationEndpointStatus["INACTIVE"] = "inactive";
38
+ CommunicationEndpointStatus["ORPHANED"] = "orphaned";
39
+ })(CommunicationEndpointStatus || (exports.CommunicationEndpointStatus = CommunicationEndpointStatus = {}));
@@ -0,0 +1,9 @@
1
+ export interface ICommunicationMethod {
2
+ endpointId: string;
3
+ isFavorite: boolean;
4
+ label: string;
5
+ note: string;
6
+ sortOrder: number;
7
+ linkedAt: Date;
8
+ linkedBy?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface DuplicateContact {
2
+ key: string;
3
+ value: string;
4
+ contacts: DuplicateContactData[];
5
+ }
6
+ export interface DuplicateContactData {
7
+ id: string;
8
+ name: string;
9
+ imageUrl?: string;
10
+ isBusiness: boolean;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { UserInfo } from "../Users/UserTrii";
2
+ export interface IFile {
3
+ id: string;
4
+ spaceId: string;
5
+ contactId: string;
6
+ fileName: string;
7
+ mimeType: string;
8
+ /** in bytes */
9
+ size: number;
10
+ url: string;
11
+ createdAt: Date;
12
+ createdBy: UserInfo;
13
+ updatedAt?: Date;
14
+ updatedBy?: string;
15
+ deletedAt?: Date;
16
+ deletedBy?: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ export interface IImportResult {
2
+ message: string;
3
+ websocketKey: string;
4
+ }
5
+ export interface IImportStatus {
6
+ spaceId: string;
7
+ websocketKey: string;
8
+ totalContacts: number;
9
+ imported: number;
10
+ updated: number;
11
+ errors: number;
12
+ totalBusinesses: number;
13
+ importedBusinesses: number;
14
+ updatedBusinesses: number;
15
+ errorsBusinesses: number;
16
+ finished: boolean;
17
+ errorExcelUrl?: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ interface ILabel {
2
+ id?: string | null;
3
+ spaceId?: string | null;
4
+ name?: string | null;
5
+ createdAt?: string | null;
6
+ updatedAt?: string | null;
7
+ deletedAt?: string | null;
8
+ }
9
+ export { ILabel };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { UserInfo } from "../Users/UserTrii";
2
+ export interface INote {
3
+ id: string;
4
+ spaceId: string;
5
+ contactId: string;
6
+ title: string;
7
+ text: string;
8
+ isEdited: boolean;
9
+ createdAt: Date;
10
+ createdBy: UserInfo;
11
+ updatedAt?: Date;
12
+ updatedBy?: string;
13
+ deletedAt?: Date;
14
+ deletedBy?: string;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ export interface Relationship {
2
+ id: string;
3
+ spaceId: string;
4
+ name: string;
5
+ order: number;
6
+ sourceContactFieldKey: string;
7
+ sourceDataTransformation: string;
8
+ searchContactFieldKey: string;
9
+ searchCondition: SearchCondition;
10
+ sourceListFieldKey: string;
11
+ searchListFieldKey: string;
12
+ createdAt?: Date | null;
13
+ createdBy?: string | null;
14
+ updatedAt?: Date | null;
15
+ updatedBy?: string | null;
16
+ }
17
+ export declare enum SearchCondition {
18
+ Equals = 0,
19
+ NotEquals = 1,
20
+ Contains = 2,
21
+ NotContains = 3,
22
+ StartsWith = 4,
23
+ EndsWith = 5,
24
+ GreaterThan = 6,
25
+ LessThan = 7,
26
+ GreaterThanOrEqual = 8,
27
+ LessThanOrEqual = 9
28
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchCondition = void 0;
4
+ var SearchCondition;
5
+ (function (SearchCondition) {
6
+ SearchCondition[SearchCondition["Equals"] = 0] = "Equals";
7
+ SearchCondition[SearchCondition["NotEquals"] = 1] = "NotEquals";
8
+ SearchCondition[SearchCondition["Contains"] = 2] = "Contains";
9
+ SearchCondition[SearchCondition["NotContains"] = 3] = "NotContains";
10
+ SearchCondition[SearchCondition["StartsWith"] = 4] = "StartsWith";
11
+ SearchCondition[SearchCondition["EndsWith"] = 5] = "EndsWith";
12
+ SearchCondition[SearchCondition["GreaterThan"] = 6] = "GreaterThan";
13
+ SearchCondition[SearchCondition["LessThan"] = 7] = "LessThan";
14
+ SearchCondition[SearchCondition["GreaterThanOrEqual"] = 8] = "GreaterThanOrEqual";
15
+ SearchCondition[SearchCondition["LessThanOrEqual"] = 9] = "LessThanOrEqual";
16
+ })(SearchCondition || (exports.SearchCondition = SearchCondition = {}));