@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,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateOperation = void 0;
4
+ exports.updateOperation = [
5
+ {
6
+ displayName: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicContact'],
14
+ operation: ['update'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ {
20
+ displayName: 'Update Fields',
21
+ name: 'updateFields',
22
+ type: 'collection',
23
+ placeholder: 'Add Field',
24
+ default: {},
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['publicContact'],
28
+ operation: ['update'],
29
+ },
30
+ },
31
+ options: [
32
+ {
33
+ displayName: 'Custom Attributes',
34
+ name: 'custom_attributes',
35
+ type: 'json',
36
+ default: '{}',
37
+ description: 'Custom attributes as JSON object',
38
+ },
39
+ {
40
+ displayName: 'Email',
41
+ name: 'email',
42
+ type: 'string',
43
+ default: '',
44
+ description: 'Email address of the contact',
45
+ },
46
+ {
47
+ displayName: 'Identifier',
48
+ name: 'identifier',
49
+ type: 'string',
50
+ default: '',
51
+ description: 'Unique identifier for the contact',
52
+ },
53
+ {
54
+ displayName: 'Name',
55
+ name: 'name',
56
+ type: 'string',
57
+ default: '',
58
+ description: 'Name of the contact',
59
+ },
60
+ {
61
+ displayName: 'Phone Number',
62
+ name: 'phone_number',
63
+ type: 'string',
64
+ default: '',
65
+ description: 'Phone number of the contact',
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/publicContact/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;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,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,kCAAkC;aAChD;YACD;gBACE,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,8BAA8B;aAC5C;YACD;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,mCAAmC;aACjD;YACD;gBACE,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qBAAqB;aACnC;YACD;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6BAA6B;aAC3C;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createOperation: INodeProperties[];
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createOperation = void 0;
4
+ exports.createOperation = [
5
+ {
6
+ displayName: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicConversation'],
14
+ operation: ['create'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ {
20
+ displayName: 'Additional Fields',
21
+ name: 'additionalFields',
22
+ type: 'collection',
23
+ placeholder: 'Add Field',
24
+ default: {},
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['publicConversation'],
28
+ operation: ['create'],
29
+ },
30
+ },
31
+ options: [
32
+ {
33
+ displayName: 'Custom Attributes',
34
+ name: 'custom_attributes',
35
+ type: 'json',
36
+ default: '{}',
37
+ description: 'Custom attributes for the conversation',
38
+ },
39
+ ],
40
+ },
41
+ ];
42
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicConversation/create.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,wCAAwC;aACtD;SACF;KACF;CACF,CAAC"}
@@ -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: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicConversation'],
14
+ operation: ['get'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ {
20
+ displayName: 'Conversation ID',
21
+ name: 'conversationId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['publicConversation'],
28
+ operation: ['get'],
29
+ },
30
+ },
31
+ description: 'ID of the conversation',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicConversation/get.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC7C;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,wBAAwB;KACtC;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: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicConversation'],
14
+ operation: ['getAll'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicConversation/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const publicConversationOperations: INodeProperties;
3
+ export declare const publicConversationFields: INodeProperties[];
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.publicConversationFields = exports.publicConversationOperations = void 0;
4
+ const create_operation_1 = require("./create.operation");
5
+ const get_operation_1 = require("./get.operation");
6
+ const getAll_operation_1 = require("./getAll.operation");
7
+ const resolve_operation_1 = require("./resolve.operation");
8
+ const toggleTyping_operation_1 = require("./toggleTyping.operation");
9
+ const updateLastSeen_operation_1 = require("./updateLastSeen.operation");
10
+ exports.publicConversationOperations = {
11
+ displayName: 'Operation',
12
+ name: 'operation',
13
+ type: 'options',
14
+ noDataExpression: true,
15
+ displayOptions: {
16
+ show: {
17
+ resource: ['publicConversation'],
18
+ },
19
+ },
20
+ options: [
21
+ {
22
+ name: 'Create',
23
+ value: 'create',
24
+ description: 'Create a new conversation via public API',
25
+ action: 'Create public conversation',
26
+ },
27
+ {
28
+ name: 'Get',
29
+ value: 'get',
30
+ description: 'Get a conversation',
31
+ action: 'Get public conversation',
32
+ },
33
+ {
34
+ name: 'Get Many',
35
+ value: 'getAll',
36
+ description: 'List conversations for a contact',
37
+ action: 'Get public conversations',
38
+ },
39
+ {
40
+ name: 'Resolve',
41
+ value: 'resolve',
42
+ description: 'Toggle conversation resolved status',
43
+ action: 'Resolve public conversation',
44
+ },
45
+ {
46
+ name: 'Toggle Typing',
47
+ value: 'toggleTyping',
48
+ description: 'Toggle typing indicator',
49
+ action: 'Toggle typing indicator',
50
+ },
51
+ {
52
+ name: 'Update Last Seen',
53
+ value: 'updateLastSeen',
54
+ description: 'Update last seen timestamp',
55
+ action: 'Update last seen',
56
+ },
57
+ ],
58
+ default: 'getAll',
59
+ };
60
+ exports.publicConversationFields = [
61
+ ...create_operation_1.createOperation,
62
+ ...get_operation_1.getOperation,
63
+ ...getAll_operation_1.getAllOperation,
64
+ ...resolve_operation_1.resolveOperation,
65
+ ...toggleTyping_operation_1.toggleTypingOperation,
66
+ ...updateLastSeen_operation_1.updateLastSeenOperation,
67
+ ];
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicConversation/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,mDAA+C;AAC/C,yDAAqD;AACrD,2DAAuD;AACvD,qEAAiE;AACjE,yEAAqE;AAExD,QAAA,4BAA4B,GAAoB;IAC3D,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,oBAAoB,CAAC;SACjC;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,0CAA0C;YACvD,MAAM,EAAE,4BAA4B;SACrC;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,oBAAoB;YACjC,MAAM,EAAE,yBAAyB;SAClC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kCAAkC;YAC/C,MAAM,EAAE,0BAA0B;SACnC;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,qCAAqC;YAClD,MAAM,EAAE,6BAA6B;SACtC;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,yBAAyB;YACtC,MAAM,EAAE,yBAAyB;SAClC;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,4BAA4B;YACzC,MAAM,EAAE,kBAAkB;SAC3B;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IACzD,GAAG,kCAAe;IAClB,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,oCAAgB;IACnB,GAAG,8CAAqB;IACxB,GAAG,kDAAuB;CAC3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const resolveOperation: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveOperation = void 0;
4
+ exports.resolveOperation = [
5
+ {
6
+ displayName: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicConversation'],
14
+ operation: ['resolve'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ {
20
+ displayName: 'Conversation ID',
21
+ name: 'conversationId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['publicConversation'],
28
+ operation: ['resolve'],
29
+ },
30
+ },
31
+ description: 'ID of the conversation to toggle resolved status',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=resolve.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicConversation/resolve.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IACjD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,SAAS,CAAC;aACvB;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,SAAS,CAAC;aACvB;SACF;QACD,WAAW,EAAE,kDAAkD;KAChE;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const toggleTypingOperation: INodeProperties[];
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toggleTypingOperation = void 0;
4
+ exports.toggleTypingOperation = [
5
+ {
6
+ displayName: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicConversation'],
14
+ operation: ['toggleTyping'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ {
20
+ displayName: 'Conversation ID',
21
+ name: 'conversationId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['publicConversation'],
28
+ operation: ['toggleTyping'],
29
+ },
30
+ },
31
+ description: 'ID of the conversation',
32
+ },
33
+ {
34
+ displayName: 'Typing Status',
35
+ name: 'typingStatus',
36
+ type: 'options',
37
+ required: true,
38
+ options: [
39
+ { name: 'Typing On', value: 'on' },
40
+ { name: 'Typing Off', value: 'off' },
41
+ ],
42
+ default: 'on',
43
+ displayOptions: {
44
+ show: {
45
+ resource: ['publicConversation'],
46
+ operation: ['toggleTyping'],
47
+ },
48
+ },
49
+ description: 'Whether to show typing indicator',
50
+ },
51
+ ];
52
+ //# sourceMappingURL=toggleTyping.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleTyping.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsB;IACtD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,WAAW,EAAE,wBAAwB;KACtC;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;YAClC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE;SACrC;QACD,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,WAAW,EAAE,kCAAkC;KAChD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const updateLastSeenOperation: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateLastSeenOperation = void 0;
4
+ exports.updateLastSeenOperation = [
5
+ {
6
+ displayName: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicConversation'],
14
+ operation: ['updateLastSeen'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ {
20
+ displayName: 'Conversation ID',
21
+ name: 'conversationId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['publicConversation'],
28
+ operation: ['updateLastSeen'],
29
+ },
30
+ },
31
+ description: 'ID of the conversation',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=updateLastSeen.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateLastSeen.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACxD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,oBAAoB,CAAC;gBAChC,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,WAAW,EAAE,wBAAwB;KACtC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createOperation: INodeProperties[];
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createOperation = void 0;
4
+ exports.createOperation = [
5
+ {
6
+ displayName: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicMessage'],
14
+ operation: ['create'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ {
20
+ displayName: 'Conversation ID',
21
+ name: 'conversationId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['publicMessage'],
28
+ operation: ['create'],
29
+ },
30
+ },
31
+ description: 'ID of the conversation',
32
+ },
33
+ {
34
+ displayName: 'Content',
35
+ name: 'content',
36
+ type: 'string',
37
+ typeOptions: {
38
+ rows: 4,
39
+ },
40
+ required: true,
41
+ default: '',
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['publicMessage'],
45
+ operation: ['create'],
46
+ },
47
+ },
48
+ description: 'Content of the message',
49
+ },
50
+ {
51
+ displayName: 'Additional Fields',
52
+ name: 'additionalFields',
53
+ type: 'collection',
54
+ placeholder: 'Add Field',
55
+ default: {},
56
+ displayOptions: {
57
+ show: {
58
+ resource: ['publicMessage'],
59
+ operation: ['create'],
60
+ },
61
+ },
62
+ options: [
63
+ {
64
+ displayName: 'Echo ID',
65
+ name: 'echo_id',
66
+ type: 'string',
67
+ default: '',
68
+ description: 'Temporary ID for deduplication',
69
+ },
70
+ ],
71
+ },
72
+ ];
73
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicMessage/create.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,wBAAwB;KACtC;IACD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACX,IAAI,EAAE,CAAC;SACR;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,wBAAwB;KACtC;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,gCAAgC;aAC9C;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAllOperation: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllOperation = void 0;
4
+ exports.getAllOperation = [
5
+ {
6
+ displayName: 'Contact Identifier',
7
+ name: 'contactIdentifier',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['publicMessage'],
14
+ operation: ['getAll'],
15
+ },
16
+ },
17
+ description: 'The source_id of the contact',
18
+ },
19
+ {
20
+ displayName: 'Conversation ID',
21
+ name: 'conversationId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['publicMessage'],
28
+ operation: ['getAll'],
29
+ },
30
+ },
31
+ description: 'ID of the conversation',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicMessage/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,wBAAwB;KACtC;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const publicMessageOperations: INodeProperties;
3
+ export declare const publicMessageFields: INodeProperties[];
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.publicMessageFields = exports.publicMessageOperations = void 0;
4
+ const create_operation_1 = require("./create.operation");
5
+ const getAll_operation_1 = require("./getAll.operation");
6
+ const update_operation_1 = require("./update.operation");
7
+ exports.publicMessageOperations = {
8
+ displayName: 'Operation',
9
+ name: 'operation',
10
+ type: 'options',
11
+ noDataExpression: true,
12
+ displayOptions: {
13
+ show: {
14
+ resource: ['publicMessage'],
15
+ },
16
+ },
17
+ options: [
18
+ {
19
+ name: 'Create',
20
+ value: 'create',
21
+ description: 'Send a message via public API',
22
+ action: 'Create public message',
23
+ },
24
+ {
25
+ name: 'Get Many',
26
+ value: 'getAll',
27
+ description: 'Get messages from a conversation',
28
+ action: 'Get public messages',
29
+ },
30
+ {
31
+ name: 'Update',
32
+ value: 'update',
33
+ description: 'Update a message',
34
+ action: 'Update public message',
35
+ },
36
+ ],
37
+ default: 'create',
38
+ };
39
+ exports.publicMessageFields = [
40
+ ...create_operation_1.createOperation,
41
+ ...getAll_operation_1.getAllOperation,
42
+ ...update_operation_1.updateOperation,
43
+ ];
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/publicMessage/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,uBAAuB,GAAoB;IACtD,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,eAAe,CAAC;SAC5B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,+BAA+B;YAC5C,MAAM,EAAE,uBAAuB;SAChC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kCAAkC;YAC/C,MAAM,EAAE,qBAAqB;SAC9B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,uBAAuB;SAChC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACpD,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[];