@renatoascencio/n8n-nodes-chatwoot 0.2.0 → 0.4.0

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 (264) hide show
  1. package/README.md +248 -9
  2. package/dist/credentials/ChatwootPlatformApi.credentials.d.ts +9 -0
  3. package/dist/credentials/ChatwootPlatformApi.credentials.js +49 -0
  4. package/dist/credentials/ChatwootPlatformApi.credentials.js.map +1 -0
  5. package/dist/credentials/ChatwootPublicApi.credentials.d.ts +7 -0
  6. package/dist/credentials/ChatwootPublicApi.credentials.js +31 -0
  7. package/dist/credentials/ChatwootPublicApi.credentials.js.map +1 -0
  8. package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +4 -1
  9. package/dist/nodes/Chatwoot/Chatwoot.node.js +807 -12
  10. package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -1
  11. package/dist/nodes/Chatwoot/GenericFunctions.d.ts +14 -0
  12. package/dist/nodes/Chatwoot/GenericFunctions.js +170 -0
  13. package/dist/nodes/Chatwoot/GenericFunctions.js.map +1 -1
  14. package/dist/nodes/Chatwoot/chatwoot.svg +4 -11
  15. package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.d.ts +2 -0
  16. package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js +63 -0
  17. package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js.map +1 -0
  18. package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.d.ts +2 -0
  19. package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js +34 -0
  20. package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js.map +1 -0
  21. package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.d.ts +2 -0
  22. package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js +34 -0
  23. package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js.map +1 -0
  24. package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.d.ts +2 -0
  25. package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js +20 -0
  26. package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js.map +1 -0
  27. package/dist/nodes/Chatwoot/resources/accountAgentBot/index.d.ts +3 -0
  28. package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js +60 -0
  29. package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js.map +1 -0
  30. package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.d.ts +2 -0
  31. package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js +70 -0
  32. package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js.map +1 -0
  33. package/dist/nodes/Chatwoot/resources/accountUser/create.operation.d.ts +2 -0
  34. package/dist/nodes/Chatwoot/resources/accountUser/create.operation.js +52 -0
  35. package/dist/nodes/Chatwoot/resources/accountUser/create.operation.js.map +1 -0
  36. package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.d.ts +2 -0
  37. package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.js +34 -0
  38. package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.js.map +1 -0
  39. package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.d.ts +2 -0
  40. package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.js +20 -0
  41. package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.js.map +1 -0
  42. package/dist/nodes/Chatwoot/resources/accountUser/index.d.ts +3 -0
  43. package/dist/nodes/Chatwoot/resources/accountUser/index.js +44 -0
  44. package/dist/nodes/Chatwoot/resources/accountUser/index.js.map +1 -0
  45. package/dist/nodes/Chatwoot/resources/agentBot/index.d.ts +3 -0
  46. package/dist/nodes/Chatwoot/resources/agentBot/index.js +143 -0
  47. package/dist/nodes/Chatwoot/resources/agentBot/index.js.map +1 -0
  48. package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.d.ts +2 -0
  49. package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js +76 -0
  50. package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js.map +1 -0
  51. package/dist/nodes/Chatwoot/resources/auditLog/index.d.ts +3 -0
  52. package/dist/nodes/Chatwoot/resources/auditLog/index.js +26 -0
  53. package/dist/nodes/Chatwoot/resources/auditLog/index.js.map +1 -0
  54. package/dist/nodes/Chatwoot/resources/automationRule/index.d.ts +3 -0
  55. package/dist/nodes/Chatwoot/resources/automationRule/index.js +205 -0
  56. package/dist/nodes/Chatwoot/resources/automationRule/index.js.map +1 -0
  57. package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.d.ts +2 -0
  58. package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js +36 -0
  59. package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js.map +1 -0
  60. package/dist/nodes/Chatwoot/resources/contact/filter.operation.d.ts +2 -0
  61. package/dist/nodes/Chatwoot/resources/contact/filter.operation.js +51 -0
  62. package/dist/nodes/Chatwoot/resources/contact/filter.operation.js.map +1 -0
  63. package/dist/nodes/Chatwoot/resources/contact/index.js +24 -0
  64. package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -1
  65. package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.d.ts +2 -0
  66. package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.js +20 -0
  67. package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.js.map +1 -0
  68. package/dist/nodes/Chatwoot/resources/conversation/create.operation.d.ts +2 -0
  69. package/dist/nodes/Chatwoot/resources/conversation/create.operation.js +92 -0
  70. package/dist/nodes/Chatwoot/resources/conversation/create.operation.js.map +1 -0
  71. package/dist/nodes/Chatwoot/resources/conversation/filter.operation.d.ts +2 -0
  72. package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js +51 -0
  73. package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js.map +1 -0
  74. package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.d.ts +2 -0
  75. package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js +55 -0
  76. package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js.map +1 -0
  77. package/dist/nodes/Chatwoot/resources/conversation/index.js +56 -0
  78. package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -1
  79. package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.d.ts +2 -0
  80. package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.js +20 -0
  81. package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.js.map +1 -0
  82. package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.d.ts +2 -0
  83. package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js +41 -0
  84. package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js.map +1 -0
  85. package/dist/nodes/Chatwoot/resources/conversation/update.operation.d.ts +2 -0
  86. package/dist/nodes/Chatwoot/resources/conversation/update.operation.js +56 -0
  87. package/dist/nodes/Chatwoot/resources/conversation/update.operation.js.map +1 -0
  88. package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.d.ts +2 -0
  89. package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js +34 -0
  90. package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js.map +1 -0
  91. package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.d.ts +2 -0
  92. package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js +20 -0
  93. package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js.map +1 -0
  94. package/dist/nodes/Chatwoot/resources/csatSurvey/index.d.ts +3 -0
  95. package/dist/nodes/Chatwoot/resources/csatSurvey/index.js +26 -0
  96. package/dist/nodes/Chatwoot/resources/csatSurvey/index.js.map +1 -0
  97. package/dist/nodes/Chatwoot/resources/customFilter/index.d.ts +3 -0
  98. package/dist/nodes/Chatwoot/resources/customFilter/index.js +139 -0
  99. package/dist/nodes/Chatwoot/resources/customFilter/index.js.map +1 -0
  100. package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.d.ts +2 -0
  101. package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js +113 -0
  102. package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js.map +1 -0
  103. package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.d.ts +2 -0
  104. package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js +91 -0
  105. package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js.map +1 -0
  106. package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.d.ts +2 -0
  107. package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js +84 -0
  108. package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js.map +1 -0
  109. package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.d.ts +2 -0
  110. package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.js +20 -0
  111. package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.js.map +1 -0
  112. package/dist/nodes/Chatwoot/resources/helpCenter/index.d.ts +3 -0
  113. package/dist/nodes/Chatwoot/resources/helpCenter/index.js +60 -0
  114. package/dist/nodes/Chatwoot/resources/helpCenter/index.js.map +1 -0
  115. package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.d.ts +2 -0
  116. package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js +77 -0
  117. package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js.map +1 -0
  118. package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.d.ts +2 -0
  119. package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js +34 -0
  120. package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js.map +1 -0
  121. package/dist/nodes/Chatwoot/resources/inbox/create.operation.d.ts +2 -0
  122. package/dist/nodes/Chatwoot/resources/inbox/create.operation.js +110 -0
  123. package/dist/nodes/Chatwoot/resources/inbox/create.operation.js.map +1 -0
  124. package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.d.ts +2 -0
  125. package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js +34 -0
  126. package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js.map +1 -0
  127. package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.d.ts +2 -0
  128. package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.js +20 -0
  129. package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.js.map +1 -0
  130. package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.d.ts +2 -0
  131. package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.js +20 -0
  132. package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.js.map +1 -0
  133. package/dist/nodes/Chatwoot/resources/inbox/index.js +48 -0
  134. package/dist/nodes/Chatwoot/resources/inbox/index.js.map +1 -1
  135. package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.d.ts +2 -0
  136. package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.js +36 -0
  137. package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.js.map +1 -0
  138. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.d.ts +2 -0
  139. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js +47 -0
  140. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js.map +1 -0
  141. package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.d.ts +2 -0
  142. package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js +34 -0
  143. package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js.map +1 -0
  144. package/dist/nodes/Chatwoot/resources/integration/getAll.operation.d.ts +2 -0
  145. package/dist/nodes/Chatwoot/resources/integration/getAll.operation.js +5 -0
  146. package/dist/nodes/Chatwoot/resources/integration/getAll.operation.js.map +1 -0
  147. package/dist/nodes/Chatwoot/resources/integration/index.d.ts +3 -0
  148. package/dist/nodes/Chatwoot/resources/integration/index.js +52 -0
  149. package/dist/nodes/Chatwoot/resources/integration/index.js.map +1 -0
  150. package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.d.ts +2 -0
  151. package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js +47 -0
  152. package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js.map +1 -0
  153. package/dist/nodes/Chatwoot/resources/message/delete.operation.d.ts +2 -0
  154. package/dist/nodes/Chatwoot/resources/message/delete.operation.js +34 -0
  155. package/dist/nodes/Chatwoot/resources/message/delete.operation.js.map +1 -0
  156. package/dist/nodes/Chatwoot/resources/message/index.js +20 -1
  157. package/dist/nodes/Chatwoot/resources/message/index.js.map +1 -1
  158. package/dist/nodes/Chatwoot/resources/message/update.operation.d.ts +2 -0
  159. package/dist/nodes/Chatwoot/resources/message/update.operation.js +51 -0
  160. package/dist/nodes/Chatwoot/resources/message/update.operation.js.map +1 -0
  161. package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.d.ts +2 -0
  162. package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js +56 -0
  163. package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js.map +1 -0
  164. package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.d.ts +2 -0
  165. package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.js +20 -0
  166. package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.js.map +1 -0
  167. package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.d.ts +2 -0
  168. package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.js +20 -0
  169. package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.js.map +1 -0
  170. package/dist/nodes/Chatwoot/resources/platformAccount/index.d.ts +3 -0
  171. package/dist/nodes/Chatwoot/resources/platformAccount/index.js +52 -0
  172. package/dist/nodes/Chatwoot/resources/platformAccount/index.js.map +1 -0
  173. package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.d.ts +2 -0
  174. package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js +63 -0
  175. package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js.map +1 -0
  176. package/dist/nodes/Chatwoot/resources/platformUser/create.operation.d.ts +2 -0
  177. package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js +67 -0
  178. package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js.map +1 -0
  179. package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.d.ts +2 -0
  180. package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.js +20 -0
  181. package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.js.map +1 -0
  182. package/dist/nodes/Chatwoot/resources/platformUser/get.operation.d.ts +2 -0
  183. package/dist/nodes/Chatwoot/resources/platformUser/get.operation.js +20 -0
  184. package/dist/nodes/Chatwoot/resources/platformUser/get.operation.js.map +1 -0
  185. package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.d.ts +2 -0
  186. package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.js +20 -0
  187. package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.js.map +1 -0
  188. package/dist/nodes/Chatwoot/resources/platformUser/index.d.ts +3 -0
  189. package/dist/nodes/Chatwoot/resources/platformUser/index.js +60 -0
  190. package/dist/nodes/Chatwoot/resources/platformUser/index.js.map +1 -0
  191. package/dist/nodes/Chatwoot/resources/platformUser/update.operation.d.ts +2 -0
  192. package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js +66 -0
  193. package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js.map +1 -0
  194. package/dist/nodes/Chatwoot/resources/profile/fetch.operation.d.ts +2 -0
  195. package/dist/nodes/Chatwoot/resources/profile/fetch.operation.js +5 -0
  196. package/dist/nodes/Chatwoot/resources/profile/fetch.operation.js.map +1 -0
  197. package/dist/nodes/Chatwoot/resources/profile/index.d.ts +3 -0
  198. package/dist/nodes/Chatwoot/resources/profile/index.js +26 -0
  199. package/dist/nodes/Chatwoot/resources/profile/index.js.map +1 -0
  200. package/dist/nodes/Chatwoot/resources/publicContact/create.operation.d.ts +2 -0
  201. package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js +63 -0
  202. package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js.map +1 -0
  203. package/dist/nodes/Chatwoot/resources/publicContact/get.operation.d.ts +2 -0
  204. package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js +20 -0
  205. package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js.map +1 -0
  206. package/dist/nodes/Chatwoot/resources/publicContact/index.d.ts +3 -0
  207. package/dist/nodes/Chatwoot/resources/publicContact/index.js +44 -0
  208. package/dist/nodes/Chatwoot/resources/publicContact/index.js.map +1 -0
  209. package/dist/nodes/Chatwoot/resources/publicContact/update.operation.d.ts +2 -0
  210. package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js +70 -0
  211. package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js.map +1 -0
  212. package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.d.ts +2 -0
  213. package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js +42 -0
  214. package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js.map +1 -0
  215. package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.d.ts +2 -0
  216. package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js +34 -0
  217. package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js.map +1 -0
  218. package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.d.ts +2 -0
  219. package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js +20 -0
  220. package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js.map +1 -0
  221. package/dist/nodes/Chatwoot/resources/publicConversation/index.d.ts +3 -0
  222. package/dist/nodes/Chatwoot/resources/publicConversation/index.js +68 -0
  223. package/dist/nodes/Chatwoot/resources/publicConversation/index.js.map +1 -0
  224. package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.d.ts +2 -0
  225. package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js +34 -0
  226. package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js.map +1 -0
  227. package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.d.ts +2 -0
  228. package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js +52 -0
  229. package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js.map +1 -0
  230. package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.d.ts +2 -0
  231. package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js +34 -0
  232. package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js.map +1 -0
  233. package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.d.ts +2 -0
  234. package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js +73 -0
  235. package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js.map +1 -0
  236. package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.d.ts +2 -0
  237. package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js +34 -0
  238. package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js.map +1 -0
  239. package/dist/nodes/Chatwoot/resources/publicMessage/index.d.ts +3 -0
  240. package/dist/nodes/Chatwoot/resources/publicMessage/index.js +44 -0
  241. package/dist/nodes/Chatwoot/resources/publicMessage/index.js.map +1 -0
  242. package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.d.ts +2 -0
  243. package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js +65 -0
  244. package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js.map +1 -0
  245. package/dist/nodes/Chatwoot/resources/report/index.d.ts +3 -0
  246. package/dist/nodes/Chatwoot/resources/report/index.js +155 -0
  247. package/dist/nodes/Chatwoot/resources/report/index.js.map +1 -0
  248. package/dist/nodes/Chatwoot/resources/team/addAgent.operation.d.ts +2 -0
  249. package/dist/nodes/Chatwoot/resources/team/addAgent.operation.js +34 -0
  250. package/dist/nodes/Chatwoot/resources/team/addAgent.operation.js.map +1 -0
  251. package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.d.ts +2 -0
  252. package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.js +34 -0
  253. package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.js.map +1 -0
  254. package/dist/nodes/Chatwoot/resources/team/getMembers.operation.d.ts +2 -0
  255. package/dist/nodes/Chatwoot/resources/team/getMembers.operation.js +20 -0
  256. package/dist/nodes/Chatwoot/resources/team/getMembers.operation.js.map +1 -0
  257. package/dist/nodes/Chatwoot/resources/team/index.js +32 -0
  258. package/dist/nodes/Chatwoot/resources/team/index.js.map +1 -1
  259. package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.d.ts +2 -0
  260. package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.js +34 -0
  261. package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.js.map +1 -0
  262. package/dist/nodes/Chatwoot/types.d.ts +19 -0
  263. package/dist/tsconfig.tsbuildinfo +1 -1
  264. package/package.json +4 -2
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.auditLogFields = exports.auditLogOperations = void 0;
4
+ const getAll_operation_1 = require("./getAll.operation");
5
+ exports.auditLogOperations = {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['auditLog'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Get Many',
18
+ value: 'getAll',
19
+ description: 'Get audit logs for the account',
20
+ action: 'Get audit logs',
21
+ },
22
+ ],
23
+ default: 'getAll',
24
+ };
25
+ exports.auditLogFields = [...getAll_operation_1.getAllOperation];
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/auditLog/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AAExC,QAAA,kBAAkB,GAAoB;IACjD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;SACvB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,gCAAgC;YAC7C,MAAM,EAAE,gBAAgB;SACzB;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,cAAc,GAAsB,CAAC,GAAG,kCAAe,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const automationRuleOperations: INodeProperties;
3
+ export declare const automationRuleFields: INodeProperties[];
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.automationRuleFields = exports.automationRuleOperations = void 0;
4
+ exports.automationRuleOperations = {
5
+ displayName: 'Operation',
6
+ name: 'operation',
7
+ type: 'options',
8
+ noDataExpression: true,
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['automationRule'],
12
+ },
13
+ },
14
+ options: [
15
+ {
16
+ name: 'Create',
17
+ value: 'create',
18
+ description: 'Create an automation rule',
19
+ action: 'Create an automation rule',
20
+ },
21
+ {
22
+ name: 'Delete',
23
+ value: 'delete',
24
+ description: 'Delete an automation rule',
25
+ action: 'Delete an automation rule',
26
+ },
27
+ {
28
+ name: 'Get',
29
+ value: 'get',
30
+ description: 'Get an automation rule by ID',
31
+ action: 'Get an automation rule',
32
+ },
33
+ {
34
+ name: 'Get Many',
35
+ value: 'getAll',
36
+ description: 'Get all automation rules',
37
+ action: 'Get all automation rules',
38
+ },
39
+ {
40
+ name: 'Update',
41
+ value: 'update',
42
+ description: 'Update an automation rule',
43
+ action: 'Update an automation rule',
44
+ },
45
+ ],
46
+ default: 'getAll',
47
+ };
48
+ exports.automationRuleFields = [
49
+ {
50
+ displayName: 'Automation Rule ID',
51
+ name: 'automationRuleId',
52
+ type: 'number',
53
+ required: true,
54
+ default: 0,
55
+ displayOptions: {
56
+ show: {
57
+ resource: ['automationRule'],
58
+ operation: ['get', 'update', 'delete'],
59
+ },
60
+ },
61
+ description: 'ID of the automation rule',
62
+ },
63
+ {
64
+ displayName: 'Name',
65
+ name: 'name',
66
+ type: 'string',
67
+ required: true,
68
+ default: '',
69
+ displayOptions: {
70
+ show: {
71
+ resource: ['automationRule'],
72
+ operation: ['create'],
73
+ },
74
+ },
75
+ description: 'Name of the automation rule',
76
+ },
77
+ {
78
+ displayName: 'Event Name',
79
+ name: 'eventName',
80
+ type: 'options',
81
+ required: true,
82
+ options: [
83
+ { name: 'Conversation Created', value: 'conversation_created' },
84
+ { name: 'Conversation Updated', value: 'conversation_updated' },
85
+ { name: 'Conversation Opened', value: 'conversation_opened' },
86
+ { name: 'Message Created', value: 'message_created' },
87
+ ],
88
+ default: 'conversation_created',
89
+ displayOptions: {
90
+ show: {
91
+ resource: ['automationRule'],
92
+ operation: ['create'],
93
+ },
94
+ },
95
+ description: 'Event that triggers the automation',
96
+ },
97
+ {
98
+ displayName: 'Conditions (JSON)',
99
+ name: 'conditions',
100
+ type: 'json',
101
+ required: true,
102
+ default: '[]',
103
+ displayOptions: {
104
+ show: {
105
+ resource: ['automationRule'],
106
+ operation: ['create'],
107
+ },
108
+ },
109
+ description: 'Array of conditions in JSON format',
110
+ },
111
+ {
112
+ displayName: 'Actions (JSON)',
113
+ name: 'actions',
114
+ type: 'json',
115
+ required: true,
116
+ default: '[]',
117
+ displayOptions: {
118
+ show: {
119
+ resource: ['automationRule'],
120
+ operation: ['create'],
121
+ },
122
+ },
123
+ description: 'Array of actions in JSON format',
124
+ },
125
+ {
126
+ displayName: 'Additional Fields',
127
+ name: 'additionalFields',
128
+ type: 'collection',
129
+ placeholder: 'Add Field',
130
+ default: {},
131
+ displayOptions: {
132
+ show: {
133
+ resource: ['automationRule'],
134
+ operation: ['create'],
135
+ },
136
+ },
137
+ options: [
138
+ {
139
+ displayName: 'Description',
140
+ name: 'description',
141
+ type: 'string',
142
+ default: '',
143
+ description: 'Description of the automation rule',
144
+ },
145
+ {
146
+ displayName: 'Active',
147
+ name: 'active',
148
+ type: 'boolean',
149
+ default: true,
150
+ description: 'Whether the rule is active',
151
+ },
152
+ ],
153
+ },
154
+ {
155
+ displayName: 'Update Fields',
156
+ name: 'updateFields',
157
+ type: 'collection',
158
+ placeholder: 'Add Field',
159
+ default: {},
160
+ displayOptions: {
161
+ show: {
162
+ resource: ['automationRule'],
163
+ operation: ['update'],
164
+ },
165
+ },
166
+ options: [
167
+ {
168
+ displayName: 'Name',
169
+ name: 'name',
170
+ type: 'string',
171
+ default: '',
172
+ description: 'Name of the automation rule',
173
+ },
174
+ {
175
+ displayName: 'Description',
176
+ name: 'description',
177
+ type: 'string',
178
+ default: '',
179
+ description: 'Description of the automation rule',
180
+ },
181
+ {
182
+ displayName: 'Active',
183
+ name: 'active',
184
+ type: 'boolean',
185
+ default: true,
186
+ description: 'Whether the rule is active',
187
+ },
188
+ {
189
+ displayName: 'Conditions (JSON)',
190
+ name: 'conditions',
191
+ type: 'json',
192
+ default: '',
193
+ description: 'Array of conditions in JSON format',
194
+ },
195
+ {
196
+ displayName: 'Actions (JSON)',
197
+ name: 'actions',
198
+ type: 'json',
199
+ default: '',
200
+ description: 'Array of actions in JSON format',
201
+ },
202
+ ],
203
+ },
204
+ ];
205
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/automationRule/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAoB;IACvD,WAAW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;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,4BAA4B;aAC1C;YACD;gBACE,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oCAAoC;aAClD;YACD;gBACE,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;aAC/C;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addLabelsOperation: INodeProperties[];
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addLabelsOperation = void 0;
4
+ exports.addLabelsOperation = [
5
+ {
6
+ displayName: 'Contact ID',
7
+ name: 'contactId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['contact'],
14
+ operation: ['addLabels'],
15
+ },
16
+ },
17
+ description: 'ID of the contact to add labels to',
18
+ },
19
+ {
20
+ displayName: 'Labels',
21
+ name: 'labels',
22
+ type: 'multiOptions',
23
+ typeOptions: {
24
+ loadOptionsMethod: 'getLabels',
25
+ },
26
+ default: [],
27
+ displayOptions: {
28
+ show: {
29
+ resource: ['contact'],
30
+ operation: ['addLabels'],
31
+ },
32
+ },
33
+ description: 'Labels to add to the contact. Choose from the list or specify comma-separated label names.',
34
+ },
35
+ ];
36
+ //# sourceMappingURL=addLabels.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addLabels.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/addLabels.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACnD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,WAAW,CAAC;aACzB;SACF;QACD,WAAW,EAAE,oCAAoC;KAClD;IACD;QACE,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE;YACX,iBAAiB,EAAE,WAAW;SAC/B;QACD,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,WAAW,CAAC;aACzB;SACF;QACD,WAAW,EAAE,4FAA4F;KAC1G;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const filterOperation: INodeProperties[];
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.filterOperation = void 0;
4
+ exports.filterOperation = [
5
+ {
6
+ displayName: 'Return All',
7
+ name: 'returnAll',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['contact'],
13
+ operation: ['filter'],
14
+ },
15
+ },
16
+ description: 'Whether to return all results or only up to a given limit',
17
+ },
18
+ {
19
+ displayName: 'Limit',
20
+ name: 'limit',
21
+ type: 'number',
22
+ default: 50,
23
+ typeOptions: {
24
+ minValue: 1,
25
+ maxValue: 100,
26
+ },
27
+ displayOptions: {
28
+ show: {
29
+ resource: ['contact'],
30
+ operation: ['filter'],
31
+ returnAll: [false],
32
+ },
33
+ },
34
+ description: 'Max number of results to return',
35
+ },
36
+ {
37
+ displayName: 'Filter Payload',
38
+ name: 'filterPayload',
39
+ type: 'json',
40
+ default: '[]',
41
+ required: true,
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['contact'],
45
+ operation: ['filter'],
46
+ },
47
+ },
48
+ description: 'Filter conditions as JSON array. Example: [{"attribute_key": "email", "filter_operator": "contains", "values": ["@example.com"]}]',
49
+ },
50
+ ];
51
+ //# sourceMappingURL=filter.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/filter.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,2DAA2D;KACzE;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACX,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACd;QACD,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,iCAAiC;KAC/C;IACD;QACE,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EACT,mIAAmI;KACtI;CACF,CAAC"}
@@ -9,6 +9,9 @@ const delete_operation_1 = require("./delete.operation");
9
9
  const search_operation_1 = require("./search.operation");
10
10
  const getConversations_operation_1 = require("./getConversations.operation");
11
11
  const merge_operation_1 = require("./merge.operation");
12
+ const filter_operation_1 = require("./filter.operation");
13
+ const addLabels_operation_1 = require("./addLabels.operation");
14
+ const listLabels_operation_1 = require("./listLabels.operation");
12
15
  exports.contactOperations = {
13
16
  displayName: 'Operation',
14
17
  name: 'operation',
@@ -20,6 +23,12 @@ exports.contactOperations = {
20
23
  },
21
24
  },
22
25
  options: [
26
+ {
27
+ name: 'Add Labels',
28
+ value: 'addLabels',
29
+ description: 'Add labels to a contact',
30
+ action: 'Add labels to contact',
31
+ },
23
32
  {
24
33
  name: 'Create',
25
34
  value: 'create',
@@ -32,6 +41,12 @@ exports.contactOperations = {
32
41
  description: 'Delete a contact',
33
42
  action: 'Delete a contact',
34
43
  },
44
+ {
45
+ name: 'Filter',
46
+ value: 'filter',
47
+ description: 'Filter contacts using advanced criteria',
48
+ action: 'Filter contacts',
49
+ },
35
50
  {
36
51
  name: 'Get',
37
52
  value: 'get',
@@ -50,6 +65,12 @@ exports.contactOperations = {
50
65
  description: 'Get many contacts',
51
66
  action: 'Get many contacts',
52
67
  },
68
+ {
69
+ name: 'List Labels',
70
+ value: 'listLabels',
71
+ description: 'Get all labels for a contact',
72
+ action: 'List contact labels',
73
+ },
53
74
  {
54
75
  name: 'Merge',
55
76
  value: 'merge',
@@ -80,5 +101,8 @@ exports.contactFields = [
80
101
  ...search_operation_1.searchOperation,
81
102
  ...getConversations_operation_1.getConversationsOperation,
82
103
  ...merge_operation_1.mergeOperation,
104
+ ...filter_operation_1.filterOperation,
105
+ ...addLabels_operation_1.addLabelsOperation,
106
+ ...listLabels_operation_1.listLabelsOperation,
83
107
  ];
84
108
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/index.ts"],"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E,kBAAkB;SAC3B;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,aAAa,GAAsB;IAC9C,GAAG,kCAAe;IAClB,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,sDAAyB;IAC5B,GAAG,gCAAc;CAClB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,mDAA+C;AAC/C,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,6EAAyE;AACzE,uDAAmD;AACnD,yDAAqD;AACrD,+DAA2D;AAC3D,iEAA6D;AAEhD,QAAA,iBAAiB,GAAoB;IAChD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,yBAAyB;YACtC,MAAM,EAAE,uBAAuB;SAChC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sBAAsB;YACnC,MAAM,EAAE,kBAAkB;SAC3B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,kBAAkB;SAC3B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,yCAAyC;YACtD,MAAM,EAAE,iBAAiB;SAC1B;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,qBAAqB;YAClC,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,qCAAqC;YAClD,MAAM,EAAE,2BAA2B;SACpC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,mBAAmB;SAC5B;QACD;YACE,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,8BAA8B;YAC3C,MAAM,EAAE,qBAAqB;SAC9B;QACD;YACE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,6BAA6B;YAC1C,MAAM,EAAE,gBAAgB;SACzB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sDAAsD;YACnE,MAAM,EAAE,iBAAiB;SAC1B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,kBAAkB;SAC3B;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,aAAa,GAAsB;IAC9C,GAAG,kCAAe;IAClB,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,sDAAyB;IAC5B,GAAG,gCAAc;IACjB,GAAG,kCAAe;IAClB,GAAG,wCAAkB;IACrB,GAAG,0CAAmB;CACvB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const listLabelsOperation: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listLabelsOperation = void 0;
4
+ exports.listLabelsOperation = [
5
+ {
6
+ displayName: 'Contact ID',
7
+ name: 'contactId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['contact'],
14
+ operation: ['listLabels'],
15
+ },
16
+ },
17
+ description: 'ID of the contact to get labels from',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=listLabels.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listLabels.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/listLabels.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAsB;IACpD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,YAAY,CAAC;aAC1B;SACF;QACD,WAAW,EAAE,sCAAsC;KACpD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createOperation: INodeProperties[];
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createOperation = void 0;
4
+ exports.createOperation = [
5
+ {
6
+ displayName: 'Source ID',
7
+ name: 'sourceId',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['conversation'],
14
+ operation: ['create'],
15
+ },
16
+ },
17
+ description: 'Source identifier for the conversation (e.g., phone number, email)',
18
+ },
19
+ {
20
+ displayName: 'Inbox',
21
+ name: 'inboxId',
22
+ type: 'options',
23
+ typeOptions: {
24
+ loadOptionsMethod: 'getInboxes',
25
+ },
26
+ required: true,
27
+ default: '',
28
+ displayOptions: {
29
+ show: {
30
+ resource: ['conversation'],
31
+ operation: ['create'],
32
+ },
33
+ },
34
+ description: 'Inbox to create the conversation in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
35
+ },
36
+ {
37
+ displayName: 'Additional Fields',
38
+ name: 'additionalFields',
39
+ type: 'collection',
40
+ placeholder: 'Add Field',
41
+ default: {},
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['conversation'],
45
+ operation: ['create'],
46
+ },
47
+ },
48
+ options: [
49
+ {
50
+ displayName: 'Contact ID',
51
+ name: 'contact_id',
52
+ type: 'number',
53
+ default: 0,
54
+ description: 'ID of an existing contact to associate with the conversation',
55
+ },
56
+ {
57
+ displayName: 'Status',
58
+ name: 'status',
59
+ type: 'options',
60
+ options: [
61
+ { name: 'Open', value: 'open' },
62
+ { name: 'Pending', value: 'pending' },
63
+ { name: 'Resolved', value: 'resolved' },
64
+ ],
65
+ default: 'open',
66
+ description: 'Initial status of the conversation',
67
+ },
68
+ {
69
+ displayName: 'Assignee ID',
70
+ name: 'assignee_id',
71
+ type: 'number',
72
+ default: 0,
73
+ description: 'Agent ID to assign the conversation to',
74
+ },
75
+ {
76
+ displayName: 'Team ID',
77
+ name: 'team_id',
78
+ type: 'number',
79
+ default: 0,
80
+ description: 'Team ID to assign the conversation to',
81
+ },
82
+ {
83
+ displayName: 'Custom Attributes (JSON)',
84
+ name: 'custom_attributes',
85
+ type: 'json',
86
+ default: '{}',
87
+ description: 'Custom attributes as JSON object',
88
+ },
89
+ ],
90
+ },
91
+ ];
92
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/create.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAA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AAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,wCAAwC;aACtD;YACD;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,uCAAuC;aACrD;YACD;gBACE,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,kCAAkC;aAChD;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const filterOperation: INodeProperties[];
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.filterOperation = void 0;
4
+ exports.filterOperation = [
5
+ {
6
+ displayName: 'Return All',
7
+ name: 'returnAll',
8
+ type: 'boolean',
9
+ default: false,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['conversation'],
13
+ operation: ['filter'],
14
+ },
15
+ },
16
+ description: 'Whether to return all results or only up to a given limit',
17
+ },
18
+ {
19
+ displayName: 'Limit',
20
+ name: 'limit',
21
+ type: 'number',
22
+ default: 50,
23
+ typeOptions: {
24
+ minValue: 1,
25
+ maxValue: 100,
26
+ },
27
+ displayOptions: {
28
+ show: {
29
+ resource: ['conversation'],
30
+ operation: ['filter'],
31
+ returnAll: [false],
32
+ },
33
+ },
34
+ description: 'Max number of results to return',
35
+ },
36
+ {
37
+ displayName: 'Filter Payload',
38
+ name: 'filterPayload',
39
+ type: 'json',
40
+ default: '[]',
41
+ required: true,
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['conversation'],
45
+ operation: ['filter'],
46
+ },
47
+ },
48
+ description: 'Filter conditions as JSON array. Example: [{"attribute_key": "status", "filter_operator": "equal_to", "values": ["open"]}]',
49
+ },
50
+ ];
51
+ //# sourceMappingURL=filter.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/filter.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,2DAA2D;KACzE;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACX,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACd;QACD,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,iCAAiC;KAC/C;IACD;QACE,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EACT,4HAA4H;KAC/H;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getMetaOperation: INodeProperties[];