@renatoascencio/n8n-nodes-chatwoot 0.3.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 (241) hide show
  1. package/README.md +247 -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 +579 -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/resources/accountAgentBot/create.operation.d.ts +2 -0
  15. package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js +63 -0
  16. package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js.map +1 -0
  17. package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.d.ts +2 -0
  18. package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js +34 -0
  19. package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js.map +1 -0
  20. package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.d.ts +2 -0
  21. package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js +34 -0
  22. package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js.map +1 -0
  23. package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.d.ts +2 -0
  24. package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js +20 -0
  25. package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js.map +1 -0
  26. package/dist/nodes/Chatwoot/resources/accountAgentBot/index.d.ts +3 -0
  27. package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js +60 -0
  28. package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js.map +1 -0
  29. package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.d.ts +2 -0
  30. package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js +70 -0
  31. package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js.map +1 -0
  32. package/dist/nodes/Chatwoot/resources/accountUser/create.operation.d.ts +2 -0
  33. package/dist/nodes/Chatwoot/resources/accountUser/create.operation.js +52 -0
  34. package/dist/nodes/Chatwoot/resources/accountUser/create.operation.js.map +1 -0
  35. package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.d.ts +2 -0
  36. package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.js +34 -0
  37. package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.js.map +1 -0
  38. package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.d.ts +2 -0
  39. package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.js +20 -0
  40. package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.js.map +1 -0
  41. package/dist/nodes/Chatwoot/resources/accountUser/index.d.ts +3 -0
  42. package/dist/nodes/Chatwoot/resources/accountUser/index.js +44 -0
  43. package/dist/nodes/Chatwoot/resources/accountUser/index.js.map +1 -0
  44. package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.d.ts +2 -0
  45. package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js +76 -0
  46. package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js.map +1 -0
  47. package/dist/nodes/Chatwoot/resources/auditLog/index.d.ts +3 -0
  48. package/dist/nodes/Chatwoot/resources/auditLog/index.js +26 -0
  49. package/dist/nodes/Chatwoot/resources/auditLog/index.js.map +1 -0
  50. package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.d.ts +2 -0
  51. package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js +36 -0
  52. package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js.map +1 -0
  53. package/dist/nodes/Chatwoot/resources/contact/filter.operation.d.ts +2 -0
  54. package/dist/nodes/Chatwoot/resources/contact/filter.operation.js +51 -0
  55. package/dist/nodes/Chatwoot/resources/contact/filter.operation.js.map +1 -0
  56. package/dist/nodes/Chatwoot/resources/contact/index.js +24 -0
  57. package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -1
  58. package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.d.ts +2 -0
  59. package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.js +20 -0
  60. package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.js.map +1 -0
  61. package/dist/nodes/Chatwoot/resources/conversation/filter.operation.d.ts +2 -0
  62. package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js +51 -0
  63. package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js.map +1 -0
  64. package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.d.ts +2 -0
  65. package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js +55 -0
  66. package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js.map +1 -0
  67. package/dist/nodes/Chatwoot/resources/conversation/index.js +40 -0
  68. package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -1
  69. package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.d.ts +2 -0
  70. package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.js +20 -0
  71. package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.js.map +1 -0
  72. package/dist/nodes/Chatwoot/resources/conversation/update.operation.d.ts +2 -0
  73. package/dist/nodes/Chatwoot/resources/conversation/update.operation.js +56 -0
  74. package/dist/nodes/Chatwoot/resources/conversation/update.operation.js.map +1 -0
  75. package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.d.ts +2 -0
  76. package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js +34 -0
  77. package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js.map +1 -0
  78. package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.d.ts +2 -0
  79. package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js +20 -0
  80. package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js.map +1 -0
  81. package/dist/nodes/Chatwoot/resources/csatSurvey/index.d.ts +3 -0
  82. package/dist/nodes/Chatwoot/resources/csatSurvey/index.js +26 -0
  83. package/dist/nodes/Chatwoot/resources/csatSurvey/index.js.map +1 -0
  84. package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.d.ts +2 -0
  85. package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js +113 -0
  86. package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js.map +1 -0
  87. package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.d.ts +2 -0
  88. package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js +91 -0
  89. package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js.map +1 -0
  90. package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.d.ts +2 -0
  91. package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js +84 -0
  92. package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js.map +1 -0
  93. package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.d.ts +2 -0
  94. package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.js +20 -0
  95. package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.js.map +1 -0
  96. package/dist/nodes/Chatwoot/resources/helpCenter/index.d.ts +3 -0
  97. package/dist/nodes/Chatwoot/resources/helpCenter/index.js +60 -0
  98. package/dist/nodes/Chatwoot/resources/helpCenter/index.js.map +1 -0
  99. package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.d.ts +2 -0
  100. package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js +77 -0
  101. package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js.map +1 -0
  102. package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.d.ts +2 -0
  103. package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js +34 -0
  104. package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js.map +1 -0
  105. package/dist/nodes/Chatwoot/resources/inbox/create.operation.d.ts +2 -0
  106. package/dist/nodes/Chatwoot/resources/inbox/create.operation.js +110 -0
  107. package/dist/nodes/Chatwoot/resources/inbox/create.operation.js.map +1 -0
  108. package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.d.ts +2 -0
  109. package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js +34 -0
  110. package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js.map +1 -0
  111. package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.d.ts +2 -0
  112. package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.js +20 -0
  113. package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.js.map +1 -0
  114. package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.d.ts +2 -0
  115. package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.js +20 -0
  116. package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.js.map +1 -0
  117. package/dist/nodes/Chatwoot/resources/inbox/index.js +48 -0
  118. package/dist/nodes/Chatwoot/resources/inbox/index.js.map +1 -1
  119. package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.d.ts +2 -0
  120. package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.js +36 -0
  121. package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.js.map +1 -0
  122. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.d.ts +2 -0
  123. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js +47 -0
  124. package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js.map +1 -0
  125. package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.d.ts +2 -0
  126. package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js +34 -0
  127. package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js.map +1 -0
  128. package/dist/nodes/Chatwoot/resources/integration/getAll.operation.d.ts +2 -0
  129. package/dist/nodes/Chatwoot/resources/integration/getAll.operation.js +5 -0
  130. package/dist/nodes/Chatwoot/resources/integration/getAll.operation.js.map +1 -0
  131. package/dist/nodes/Chatwoot/resources/integration/index.d.ts +3 -0
  132. package/dist/nodes/Chatwoot/resources/integration/index.js +52 -0
  133. package/dist/nodes/Chatwoot/resources/integration/index.js.map +1 -0
  134. package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.d.ts +2 -0
  135. package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js +47 -0
  136. package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js.map +1 -0
  137. package/dist/nodes/Chatwoot/resources/message/index.js +13 -1
  138. package/dist/nodes/Chatwoot/resources/message/index.js.map +1 -1
  139. package/dist/nodes/Chatwoot/resources/message/update.operation.d.ts +2 -0
  140. package/dist/nodes/Chatwoot/resources/message/update.operation.js +51 -0
  141. package/dist/nodes/Chatwoot/resources/message/update.operation.js.map +1 -0
  142. package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.d.ts +2 -0
  143. package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js +56 -0
  144. package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js.map +1 -0
  145. package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.d.ts +2 -0
  146. package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.js +20 -0
  147. package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.js.map +1 -0
  148. package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.d.ts +2 -0
  149. package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.js +20 -0
  150. package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.js.map +1 -0
  151. package/dist/nodes/Chatwoot/resources/platformAccount/index.d.ts +3 -0
  152. package/dist/nodes/Chatwoot/resources/platformAccount/index.js +52 -0
  153. package/dist/nodes/Chatwoot/resources/platformAccount/index.js.map +1 -0
  154. package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.d.ts +2 -0
  155. package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js +63 -0
  156. package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js.map +1 -0
  157. package/dist/nodes/Chatwoot/resources/platformUser/create.operation.d.ts +2 -0
  158. package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js +67 -0
  159. package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js.map +1 -0
  160. package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.d.ts +2 -0
  161. package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.js +20 -0
  162. package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.js.map +1 -0
  163. package/dist/nodes/Chatwoot/resources/platformUser/get.operation.d.ts +2 -0
  164. package/dist/nodes/Chatwoot/resources/platformUser/get.operation.js +20 -0
  165. package/dist/nodes/Chatwoot/resources/platformUser/get.operation.js.map +1 -0
  166. package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.d.ts +2 -0
  167. package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.js +20 -0
  168. package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.js.map +1 -0
  169. package/dist/nodes/Chatwoot/resources/platformUser/index.d.ts +3 -0
  170. package/dist/nodes/Chatwoot/resources/platformUser/index.js +60 -0
  171. package/dist/nodes/Chatwoot/resources/platformUser/index.js.map +1 -0
  172. package/dist/nodes/Chatwoot/resources/platformUser/update.operation.d.ts +2 -0
  173. package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js +66 -0
  174. package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js.map +1 -0
  175. package/dist/nodes/Chatwoot/resources/profile/fetch.operation.d.ts +2 -0
  176. package/dist/nodes/Chatwoot/resources/profile/fetch.operation.js +5 -0
  177. package/dist/nodes/Chatwoot/resources/profile/fetch.operation.js.map +1 -0
  178. package/dist/nodes/Chatwoot/resources/profile/index.d.ts +3 -0
  179. package/dist/nodes/Chatwoot/resources/profile/index.js +26 -0
  180. package/dist/nodes/Chatwoot/resources/profile/index.js.map +1 -0
  181. package/dist/nodes/Chatwoot/resources/publicContact/create.operation.d.ts +2 -0
  182. package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js +63 -0
  183. package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js.map +1 -0
  184. package/dist/nodes/Chatwoot/resources/publicContact/get.operation.d.ts +2 -0
  185. package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js +20 -0
  186. package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js.map +1 -0
  187. package/dist/nodes/Chatwoot/resources/publicContact/index.d.ts +3 -0
  188. package/dist/nodes/Chatwoot/resources/publicContact/index.js +44 -0
  189. package/dist/nodes/Chatwoot/resources/publicContact/index.js.map +1 -0
  190. package/dist/nodes/Chatwoot/resources/publicContact/update.operation.d.ts +2 -0
  191. package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js +70 -0
  192. package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js.map +1 -0
  193. package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.d.ts +2 -0
  194. package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js +42 -0
  195. package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js.map +1 -0
  196. package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.d.ts +2 -0
  197. package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js +34 -0
  198. package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js.map +1 -0
  199. package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.d.ts +2 -0
  200. package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js +20 -0
  201. package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js.map +1 -0
  202. package/dist/nodes/Chatwoot/resources/publicConversation/index.d.ts +3 -0
  203. package/dist/nodes/Chatwoot/resources/publicConversation/index.js +68 -0
  204. package/dist/nodes/Chatwoot/resources/publicConversation/index.js.map +1 -0
  205. package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.d.ts +2 -0
  206. package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js +34 -0
  207. package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js.map +1 -0
  208. package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.d.ts +2 -0
  209. package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js +52 -0
  210. package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js.map +1 -0
  211. package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.d.ts +2 -0
  212. package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js +34 -0
  213. package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js.map +1 -0
  214. package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.d.ts +2 -0
  215. package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js +73 -0
  216. package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js.map +1 -0
  217. package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.d.ts +2 -0
  218. package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js +34 -0
  219. package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js.map +1 -0
  220. package/dist/nodes/Chatwoot/resources/publicMessage/index.d.ts +3 -0
  221. package/dist/nodes/Chatwoot/resources/publicMessage/index.js +44 -0
  222. package/dist/nodes/Chatwoot/resources/publicMessage/index.js.map +1 -0
  223. package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.d.ts +2 -0
  224. package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js +65 -0
  225. package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js.map +1 -0
  226. package/dist/nodes/Chatwoot/resources/team/addAgent.operation.d.ts +2 -0
  227. package/dist/nodes/Chatwoot/resources/team/addAgent.operation.js +34 -0
  228. package/dist/nodes/Chatwoot/resources/team/addAgent.operation.js.map +1 -0
  229. package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.d.ts +2 -0
  230. package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.js +34 -0
  231. package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.js.map +1 -0
  232. package/dist/nodes/Chatwoot/resources/team/getMembers.operation.d.ts +2 -0
  233. package/dist/nodes/Chatwoot/resources/team/getMembers.operation.js +20 -0
  234. package/dist/nodes/Chatwoot/resources/team/getMembers.operation.js.map +1 -0
  235. package/dist/nodes/Chatwoot/resources/team/index.js +32 -0
  236. package/dist/nodes/Chatwoot/resources/team/index.js.map +1 -1
  237. package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.d.ts +2 -0
  238. package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.js +34 -0
  239. package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.js.map +1 -0
  240. package/dist/tsconfig.tsbuildinfo +1 -1
  241. package/package.json +4 -2
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getOperation: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOperation = void 0;
4
+ exports.getOperation = [
5
+ {
6
+ displayName: 'Account ID',
7
+ name: 'accountId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['accountAgentBot'],
14
+ operation: ['get'],
15
+ },
16
+ },
17
+ description: 'ID of the account',
18
+ },
19
+ {
20
+ displayName: 'Agent Bot ID',
21
+ name: 'agentBotId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['accountAgentBot'],
28
+ operation: ['get'],
29
+ },
30
+ },
31
+ description: 'ID of the agent bot',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/accountAgentBot/get.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC7C;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,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,mBAAmB;KACjC;IACD;QACE,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,qBAAqB;KACnC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAllOperation: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllOperation = void 0;
4
+ exports.getAllOperation = [
5
+ {
6
+ displayName: 'Account ID',
7
+ name: 'accountId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['accountAgentBot'],
14
+ operation: ['getAll'],
15
+ },
16
+ },
17
+ description: 'ID of the account',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/accountAgentBot/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;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,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,mBAAmB;KACjC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const accountAgentBotOperations: INodeProperties;
3
+ export declare const accountAgentBotFields: INodeProperties[];
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.accountAgentBotFields = exports.accountAgentBotOperations = void 0;
4
+ const getAll_operation_1 = require("./getAll.operation");
5
+ const get_operation_1 = require("./get.operation");
6
+ const create_operation_1 = require("./create.operation");
7
+ const update_operation_1 = require("./update.operation");
8
+ const delete_operation_1 = require("./delete.operation");
9
+ exports.accountAgentBotOperations = {
10
+ displayName: 'Operation',
11
+ name: 'operation',
12
+ type: 'options',
13
+ noDataExpression: true,
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['accountAgentBot'],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Create',
22
+ value: 'create',
23
+ description: 'Create an agent bot for an account',
24
+ action: 'Create account agent bot',
25
+ },
26
+ {
27
+ name: 'Delete',
28
+ value: 'delete',
29
+ description: 'Delete an agent bot from an account',
30
+ action: 'Delete account agent bot',
31
+ },
32
+ {
33
+ name: 'Get',
34
+ value: 'get',
35
+ description: 'Get an agent bot by ID',
36
+ action: 'Get account agent bot',
37
+ },
38
+ {
39
+ name: 'Get Many',
40
+ value: 'getAll',
41
+ description: 'List all agent bots for an account',
42
+ action: 'Get account agent bots',
43
+ },
44
+ {
45
+ name: 'Update',
46
+ value: 'update',
47
+ description: 'Update an agent bot',
48
+ action: 'Update account agent bot',
49
+ },
50
+ ],
51
+ default: 'getAll',
52
+ };
53
+ exports.accountAgentBotFields = [
54
+ ...getAll_operation_1.getAllOperation,
55
+ ...get_operation_1.getOperation,
56
+ ...create_operation_1.createOperation,
57
+ ...update_operation_1.updateOperation,
58
+ ...delete_operation_1.deleteOperation,
59
+ ];
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/accountAgentBot/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,mDAA+C;AAC/C,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,yBAAyB,GAAoB;IACxD,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,iBAAiB,CAAC;SAC9B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,oCAAoC;YACjD,MAAM,EAAE,0BAA0B;SACnC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,qCAAqC;YAClD,MAAM,EAAE,0BAA0B;SACnC;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,wBAAwB;YACrC,MAAM,EAAE,uBAAuB;SAChC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,oCAAoC;YACjD,MAAM,EAAE,wBAAwB;SACjC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,qBAAqB;YAClC,MAAM,EAAE,0BAA0B;SACnC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACtD,GAAG,kCAAe;IAClB,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;CACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const updateOperation: INodeProperties[];
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateOperation = void 0;
4
+ exports.updateOperation = [
5
+ {
6
+ displayName: 'Account ID',
7
+ name: 'accountId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['accountAgentBot'],
14
+ operation: ['update'],
15
+ },
16
+ },
17
+ description: 'ID of the account',
18
+ },
19
+ {
20
+ displayName: 'Agent Bot ID',
21
+ name: 'agentBotId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['accountAgentBot'],
28
+ operation: ['update'],
29
+ },
30
+ },
31
+ description: 'ID of the agent bot to update',
32
+ },
33
+ {
34
+ displayName: 'Update Fields',
35
+ name: 'updateFields',
36
+ type: 'collection',
37
+ placeholder: 'Add Field',
38
+ default: {},
39
+ displayOptions: {
40
+ show: {
41
+ resource: ['accountAgentBot'],
42
+ operation: ['update'],
43
+ },
44
+ },
45
+ options: [
46
+ {
47
+ displayName: 'Description',
48
+ name: 'description',
49
+ type: 'string',
50
+ default: '',
51
+ description: 'Description of the agent bot',
52
+ },
53
+ {
54
+ displayName: 'Name',
55
+ name: 'name',
56
+ type: 'string',
57
+ default: '',
58
+ description: 'Name of the agent bot',
59
+ },
60
+ {
61
+ displayName: 'Outgoing URL',
62
+ name: 'outgoing_url',
63
+ type: 'string',
64
+ default: '',
65
+ description: 'Webhook URL for the agent bot',
66
+ },
67
+ ],
68
+ },
69
+ ];
70
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/accountAgentBot/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;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,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,mBAAmB;KACjC;IACD;QACE,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,+BAA+B;KAC7C;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,8BAA8B;aAC5C;YACD;gBACE,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uBAAuB;aACrC;YACD;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+BAA+B;aAC7C;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createOperation: INodeProperties[];
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createOperation = void 0;
4
+ exports.createOperation = [
5
+ {
6
+ displayName: 'Account ID',
7
+ name: 'accountId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['accountUser'],
14
+ operation: ['create'],
15
+ },
16
+ },
17
+ description: 'ID of the account',
18
+ },
19
+ {
20
+ displayName: 'User ID',
21
+ name: 'userId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['accountUser'],
28
+ operation: ['create'],
29
+ },
30
+ },
31
+ description: 'ID of the user to add to the account',
32
+ },
33
+ {
34
+ displayName: 'Role',
35
+ name: 'role',
36
+ type: 'options',
37
+ required: true,
38
+ options: [
39
+ { name: 'Administrator', value: 'administrator' },
40
+ { name: 'Agent', value: 'agent' },
41
+ ],
42
+ default: 'agent',
43
+ displayOptions: {
44
+ show: {
45
+ resource: ['accountUser'],
46
+ operation: ['create'],
47
+ },
48
+ },
49
+ description: 'Role of the user in the account',
50
+ },
51
+ ];
52
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/accountUser/create.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;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,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,mBAAmB;KACjC;IACD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,sCAAsC;KACpD;IACD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;YACjD,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;SAClC;QACD,OAAO,EAAE,OAAO;QAChB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,iCAAiC;KAC/C;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const deleteOperation: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteOperation = void 0;
4
+ exports.deleteOperation = [
5
+ {
6
+ displayName: 'Account ID',
7
+ name: 'accountId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['accountUser'],
14
+ operation: ['delete'],
15
+ },
16
+ },
17
+ description: 'ID of the account',
18
+ },
19
+ {
20
+ displayName: 'User ID',
21
+ name: 'userId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['accountUser'],
28
+ operation: ['delete'],
29
+ },
30
+ },
31
+ description: 'ID of the user to remove from the account',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/accountUser/delete.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;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,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,mBAAmB;KACjC;IACD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,2CAA2C;KACzD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAllOperation: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllOperation = void 0;
4
+ exports.getAllOperation = [
5
+ {
6
+ displayName: 'Account ID',
7
+ name: 'accountId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['accountUser'],
14
+ operation: ['getAll'],
15
+ },
16
+ },
17
+ description: 'ID of the account',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/accountUser/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;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,aAAa,CAAC;gBACzB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,mBAAmB;KACjC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const accountUserOperations: INodeProperties;
3
+ export declare const accountUserFields: INodeProperties[];
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.accountUserFields = exports.accountUserOperations = void 0;
4
+ const getAll_operation_1 = require("./getAll.operation");
5
+ const create_operation_1 = require("./create.operation");
6
+ const delete_operation_1 = require("./delete.operation");
7
+ exports.accountUserOperations = {
8
+ displayName: 'Operation',
9
+ name: 'operation',
10
+ type: 'options',
11
+ noDataExpression: true,
12
+ displayOptions: {
13
+ show: {
14
+ resource: ['accountUser'],
15
+ },
16
+ },
17
+ options: [
18
+ {
19
+ name: 'Create',
20
+ value: 'create',
21
+ description: 'Add a user to an account',
22
+ action: 'Create account user',
23
+ },
24
+ {
25
+ name: 'Delete',
26
+ value: 'delete',
27
+ description: 'Remove a user from an account',
28
+ action: 'Delete account user',
29
+ },
30
+ {
31
+ name: 'Get Many',
32
+ value: 'getAll',
33
+ description: 'List all users in an account',
34
+ action: 'Get account users',
35
+ },
36
+ ],
37
+ default: 'getAll',
38
+ };
39
+ exports.accountUserFields = [
40
+ ...getAll_operation_1.getAllOperation,
41
+ ...create_operation_1.createOperation,
42
+ ...delete_operation_1.deleteOperation,
43
+ ];
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/accountUser/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,qBAAqB,GAAoB;IACpD,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,aAAa,CAAC;SAC1B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,qBAAqB;SAC9B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,+BAA+B;YAC5C,MAAM,EAAE,qBAAqB;SAC9B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8BAA8B;YAC3C,MAAM,EAAE,mBAAmB;SAC5B;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,iBAAiB,GAAsB;IAClD,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;CACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAllOperation: INodeProperties[];
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllOperation = void 0;
4
+ exports.getAllOperation = [
5
+ {
6
+ displayName: 'Return All',
7
+ name: 'returnAll',
8
+ type: 'boolean',
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['auditLog'],
12
+ operation: ['getAll'],
13
+ },
14
+ },
15
+ default: false,
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
+ displayOptions: {
23
+ show: {
24
+ resource: ['auditLog'],
25
+ operation: ['getAll'],
26
+ returnAll: [false],
27
+ },
28
+ },
29
+ typeOptions: {
30
+ minValue: 1,
31
+ maxValue: 100,
32
+ },
33
+ default: 25,
34
+ description: 'Max number of results to return',
35
+ },
36
+ {
37
+ displayName: 'Filters',
38
+ name: 'filters',
39
+ type: 'collection',
40
+ placeholder: 'Add Filter',
41
+ default: {},
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['auditLog'],
45
+ operation: ['getAll'],
46
+ },
47
+ },
48
+ options: [
49
+ {
50
+ displayName: 'Auditable Type',
51
+ name: 'auditable_type',
52
+ type: 'options',
53
+ options: [
54
+ { name: 'Account', value: 'Account' },
55
+ { name: 'Agent Bot', value: 'AgentBot' },
56
+ { name: 'Automation Rule', value: 'AutomationRule' },
57
+ { name: 'Contact', value: 'Contact' },
58
+ { name: 'Inbox', value: 'Inbox' },
59
+ { name: 'Team', value: 'Team' },
60
+ { name: 'User', value: 'User' },
61
+ { name: 'Webhook', value: 'Webhook' },
62
+ ],
63
+ default: '',
64
+ description: 'Filter by auditable type',
65
+ },
66
+ {
67
+ displayName: 'User ID',
68
+ name: 'user_id',
69
+ type: 'number',
70
+ default: 0,
71
+ description: 'Filter by user who performed the action',
72
+ },
73
+ ],
74
+ },
75
+ ];
76
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/auditLog/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACzE;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE;YACX,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACd;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC/C;IACD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE;oBACxC,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;oBACpD,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;oBACjC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC/B,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACtC;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACxC;YACD;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,yCAAyC;aACvD;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const auditLogOperations: INodeProperties;
3
+ export declare const auditLogFields: INodeProperties[];
@@ -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,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"}