n8n-nodes-hudu 1.1.0 → 1.2.1

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 (266) hide show
  1. package/README.md +199 -173
  2. package/dist/index.js.map +1 -1
  3. package/dist/nodes/Hudu/Hudu.node.js +68 -75
  4. package/dist/nodes/Hudu/Hudu.node.js.map +1 -1
  5. package/dist/nodes/Hudu/Hudu.node.ts +78 -102
  6. package/dist/nodes/Hudu/descriptions/activity_logs.description.js +5 -5
  7. package/dist/nodes/Hudu/descriptions/activity_logs.description.js.map +1 -1
  8. package/dist/nodes/Hudu/descriptions/activity_logs.description.ts +5 -5
  9. package/dist/nodes/Hudu/descriptions/api_info.description.ts +1 -1
  10. package/dist/nodes/Hudu/descriptions/articles.description.js +364 -109
  11. package/dist/nodes/Hudu/descriptions/articles.description.js.map +1 -1
  12. package/dist/nodes/Hudu/descriptions/articles.description.ts +367 -111
  13. package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.js +318 -0
  14. package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.js.map +1 -0
  15. package/dist/nodes/Hudu/descriptions/asset_layout_fields.description.ts +326 -0
  16. package/dist/nodes/Hudu/descriptions/asset_layouts.description.js +119 -131
  17. package/dist/nodes/Hudu/descriptions/asset_layouts.description.js.map +1 -1
  18. package/dist/nodes/Hudu/descriptions/asset_layouts.description.ts +457 -467
  19. package/dist/nodes/Hudu/descriptions/asset_passwords.description.js +131 -77
  20. package/dist/nodes/Hudu/descriptions/asset_passwords.description.js.map +1 -1
  21. package/dist/nodes/Hudu/descriptions/asset_passwords.description.ts +544 -488
  22. package/dist/nodes/Hudu/descriptions/assets.description.js +268 -83
  23. package/dist/nodes/Hudu/descriptions/assets.description.js.map +1 -1
  24. package/dist/nodes/Hudu/descriptions/assets.description.ts +522 -320
  25. package/dist/nodes/Hudu/descriptions/cards.description.js +3 -3
  26. package/dist/nodes/Hudu/descriptions/cards.description.js.map +1 -1
  27. package/dist/nodes/Hudu/descriptions/cards.description.ts +3 -3
  28. package/dist/nodes/Hudu/descriptions/companies.description.js +102 -212
  29. package/dist/nodes/Hudu/descriptions/companies.description.js.map +1 -1
  30. package/dist/nodes/Hudu/descriptions/companies.description.ts +685 -803
  31. package/dist/nodes/Hudu/descriptions/expirations.description.js +19 -16
  32. package/dist/nodes/Hudu/descriptions/expirations.description.js.map +1 -1
  33. package/dist/nodes/Hudu/descriptions/expirations.description.ts +19 -16
  34. package/dist/nodes/Hudu/descriptions/folders.description.js +62 -25
  35. package/dist/nodes/Hudu/descriptions/folders.description.js.map +1 -1
  36. package/dist/nodes/Hudu/descriptions/folders.description.ts +62 -25
  37. package/dist/nodes/Hudu/descriptions/index.js +1 -0
  38. package/dist/nodes/Hudu/descriptions/index.js.map +1 -1
  39. package/dist/nodes/Hudu/descriptions/index.ts +25 -24
  40. package/dist/nodes/Hudu/descriptions/ip_addresses.description.js +298 -194
  41. package/dist/nodes/Hudu/descriptions/ip_addresses.description.js.map +1 -1
  42. package/dist/nodes/Hudu/descriptions/ip_addresses.description.ts +771 -668
  43. package/dist/nodes/Hudu/descriptions/magic_dash.description.js +38 -30
  44. package/dist/nodes/Hudu/descriptions/magic_dash.description.js.map +1 -1
  45. package/dist/nodes/Hudu/descriptions/magic_dash.description.ts +39 -32
  46. package/dist/nodes/Hudu/descriptions/matchers.description.js +30 -15
  47. package/dist/nodes/Hudu/descriptions/matchers.description.js.map +1 -1
  48. package/dist/nodes/Hudu/descriptions/matchers.description.ts +30 -15
  49. package/dist/nodes/Hudu/descriptions/networks.description.js +187 -141
  50. package/dist/nodes/Hudu/descriptions/networks.description.js.map +1 -1
  51. package/dist/nodes/Hudu/descriptions/networks.description.ts +611 -565
  52. package/dist/nodes/Hudu/descriptions/passwordFolders.descriptions.js +9 -6
  53. package/dist/nodes/Hudu/descriptions/passwordFolders.descriptions.js.map +1 -1
  54. package/dist/nodes/Hudu/descriptions/passwordFolders.descriptions.ts +9 -6
  55. package/dist/nodes/Hudu/descriptions/procedure_tasks.description.js +85 -86
  56. package/dist/nodes/Hudu/descriptions/procedure_tasks.description.js.map +1 -1
  57. package/dist/nodes/Hudu/descriptions/procedure_tasks.description.ts +85 -86
  58. package/dist/nodes/Hudu/descriptions/procedures.description.js +110 -69
  59. package/dist/nodes/Hudu/descriptions/procedures.description.js.map +1 -1
  60. package/dist/nodes/Hudu/descriptions/procedures.description.ts +117 -69
  61. package/dist/nodes/Hudu/descriptions/public_photos.description.js +4 -6
  62. package/dist/nodes/Hudu/descriptions/public_photos.description.js.map +1 -1
  63. package/dist/nodes/Hudu/descriptions/public_photos.description.ts +4 -6
  64. package/dist/nodes/Hudu/descriptions/rack_storage_items.description.js +21 -335
  65. package/dist/nodes/Hudu/descriptions/rack_storage_items.description.js.map +1 -1
  66. package/dist/nodes/Hudu/descriptions/rack_storage_items.description.ts +351 -663
  67. package/dist/nodes/Hudu/descriptions/rack_storages.description.js +209 -240
  68. package/dist/nodes/Hudu/descriptions/rack_storages.description.js.map +1 -1
  69. package/dist/nodes/Hudu/descriptions/rack_storages.description.ts +625 -656
  70. package/dist/nodes/Hudu/descriptions/relations.description.js +64 -57
  71. package/dist/nodes/Hudu/descriptions/relations.description.js.map +1 -1
  72. package/dist/nodes/Hudu/descriptions/relations.description.ts +66 -58
  73. package/dist/nodes/Hudu/descriptions/uploads.description.js +3 -3
  74. package/dist/nodes/Hudu/descriptions/uploads.description.js.map +1 -1
  75. package/dist/nodes/Hudu/descriptions/uploads.description.ts +3 -3
  76. package/dist/nodes/Hudu/descriptions/users.description.js +21 -17
  77. package/dist/nodes/Hudu/descriptions/users.description.js.map +1 -1
  78. package/dist/nodes/Hudu/descriptions/users.description.ts +21 -17
  79. package/dist/nodes/Hudu/descriptions/websites.description.js +219 -229
  80. package/dist/nodes/Hudu/descriptions/websites.description.js.map +1 -1
  81. package/dist/nodes/Hudu/descriptions/websites.description.ts +613 -623
  82. package/dist/nodes/Hudu/docs/FILTERS.md +38 -0
  83. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFieldValues.js +67 -0
  84. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFieldValues.js.map +1 -0
  85. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFieldValues.ts +71 -0
  86. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.js +55 -0
  87. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.js.map +1 -0
  88. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayoutFields.ts +74 -0
  89. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayouts.js +42 -0
  90. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayouts.js.map +1 -0
  91. package/dist/nodes/Hudu/optionLoaders/asset_layouts/getAssetLayouts.ts +66 -0
  92. package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.js +20 -0
  93. package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.js.map +1 -0
  94. package/dist/nodes/Hudu/optionLoaders/asset_layouts/index.ts +3 -0
  95. package/dist/nodes/Hudu/optionLoaders/companies/getCompanies.js +5 -4
  96. package/dist/nodes/Hudu/optionLoaders/companies/getCompanies.js.map +1 -1
  97. package/dist/nodes/Hudu/optionLoaders/companies/getCompanies.ts +5 -3
  98. package/dist/nodes/Hudu/optionLoaders/index.js +2 -0
  99. package/dist/nodes/Hudu/optionLoaders/index.js.map +1 -1
  100. package/dist/nodes/Hudu/optionLoaders/index.ts +3 -1
  101. package/dist/nodes/Hudu/optionLoaders/users/getUsers.js +5 -4
  102. package/dist/nodes/Hudu/optionLoaders/users/getUsers.js.map +1 -1
  103. package/dist/nodes/Hudu/optionLoaders/users/getUsers.ts +5 -3
  104. package/dist/nodes/Hudu/resources/activity_logs/activity_logs.handler.js +10 -24
  105. package/dist/nodes/Hudu/resources/activity_logs/activity_logs.handler.js.map +1 -1
  106. package/dist/nodes/Hudu/resources/activity_logs/activity_logs.handler.ts +18 -42
  107. package/dist/nodes/Hudu/resources/activity_logs/activity_logs.types.ts +86 -27
  108. package/dist/nodes/Hudu/resources/api_info/api_info.handler.js +2 -2
  109. package/dist/nodes/Hudu/resources/api_info/api_info.handler.js.map +1 -1
  110. package/dist/nodes/Hudu/resources/api_info/api_info.handler.ts +3 -4
  111. package/dist/nodes/Hudu/resources/articles/articles.handler.js +84 -33
  112. package/dist/nodes/Hudu/resources/articles/articles.handler.js.map +1 -1
  113. package/dist/nodes/Hudu/resources/articles/articles.handler.ts +202 -131
  114. package/dist/nodes/Hudu/resources/articles/articles.types.js +6 -0
  115. package/dist/nodes/Hudu/resources/articles/articles.types.js.map +1 -1
  116. package/dist/nodes/Hudu/resources/articles/articles.types.ts +18 -5
  117. package/dist/nodes/Hudu/resources/asset_layout_fields/asset_layout_fields.handler.js +115 -0
  118. package/dist/nodes/Hudu/resources/asset_layout_fields/asset_layout_fields.handler.js.map +1 -0
  119. package/dist/nodes/Hudu/resources/asset_layout_fields/asset_layout_fields.handler.ts +182 -0
  120. package/dist/nodes/Hudu/resources/asset_layout_fields/asset_layout_fields.types.js +3 -0
  121. package/dist/nodes/Hudu/resources/asset_layout_fields/asset_layout_fields.types.js.map +1 -0
  122. package/dist/nodes/Hudu/resources/asset_layout_fields/asset_layout_fields.types.ts +23 -0
  123. package/dist/nodes/Hudu/resources/asset_layouts/asset_layouts.handler.js +34 -16
  124. package/dist/nodes/Hudu/resources/asset_layouts/asset_layouts.handler.js.map +1 -1
  125. package/dist/nodes/Hudu/resources/asset_layouts/asset_layouts.handler.ts +107 -79
  126. package/dist/nodes/Hudu/resources/asset_passwords/asset_passwords.handler.js +19 -22
  127. package/dist/nodes/Hudu/resources/asset_passwords/asset_passwords.handler.js.map +1 -1
  128. package/dist/nodes/Hudu/resources/asset_passwords/asset_passwords.handler.ts +151 -149
  129. package/dist/nodes/Hudu/resources/assets/assets.handler.js +85 -6
  130. package/dist/nodes/Hudu/resources/assets/assets.handler.js.map +1 -1
  131. package/dist/nodes/Hudu/resources/assets/assets.handler.ts +181 -56
  132. package/dist/nodes/Hudu/resources/assets/assets.types.ts +1 -1
  133. package/dist/nodes/Hudu/resources/cards/cards.handler.js +5 -16
  134. package/dist/nodes/Hudu/resources/cards/cards.handler.js.map +1 -1
  135. package/dist/nodes/Hudu/resources/cards/cards.handler.ts +8 -37
  136. package/dist/nodes/Hudu/resources/companies/companies.handler.js +15 -50
  137. package/dist/nodes/Hudu/resources/companies/companies.handler.js.map +1 -1
  138. package/dist/nodes/Hudu/resources/companies/companies.handler.ts +120 -200
  139. package/dist/nodes/Hudu/resources/companies/companies.types.ts +1 -3
  140. package/dist/nodes/Hudu/resources/expirations/expirations.handler.js +3 -2
  141. package/dist/nodes/Hudu/resources/expirations/expirations.handler.js.map +1 -1
  142. package/dist/nodes/Hudu/resources/expirations/expirations.handler.ts +5 -6
  143. package/dist/nodes/Hudu/resources/folders/folders.handler.js +39 -12
  144. package/dist/nodes/Hudu/resources/folders/folders.handler.js.map +1 -1
  145. package/dist/nodes/Hudu/resources/folders/folders.handler.ts +66 -22
  146. package/dist/nodes/Hudu/resources/folders/folders.types.js +11 -0
  147. package/dist/nodes/Hudu/resources/folders/folders.types.js.map +1 -1
  148. package/dist/nodes/Hudu/resources/folders/folders.types.ts +19 -2
  149. package/dist/nodes/Hudu/resources/index.js +2 -0
  150. package/dist/nodes/Hudu/resources/index.js.map +1 -1
  151. package/dist/nodes/Hudu/resources/index.ts +51 -49
  152. package/dist/nodes/Hudu/resources/ip_addresses/ip_addresses.handler.js +21 -22
  153. package/dist/nodes/Hudu/resources/ip_addresses/ip_addresses.handler.js.map +1 -1
  154. package/dist/nodes/Hudu/resources/ip_addresses/ip_addresses.handler.ts +118 -114
  155. package/dist/nodes/Hudu/resources/ip_addresses/ip_addresses.types.ts +1 -1
  156. package/dist/nodes/Hudu/resources/magic_dash/magic_dash.handler.js +16 -42
  157. package/dist/nodes/Hudu/resources/magic_dash/magic_dash.handler.js.map +1 -1
  158. package/dist/nodes/Hudu/resources/magic_dash/magic_dash.handler.ts +23 -74
  159. package/dist/nodes/Hudu/resources/matchers/matchers.handler.js +8 -30
  160. package/dist/nodes/Hudu/resources/matchers/matchers.handler.js.map +1 -1
  161. package/dist/nodes/Hudu/resources/matchers/matchers.handler.ts +16 -53
  162. package/dist/nodes/Hudu/resources/matchers/matchers.types.ts +1 -1
  163. package/dist/nodes/Hudu/resources/networks/networks.handler.js +44 -32
  164. package/dist/nodes/Hudu/resources/networks/networks.handler.js.map +1 -1
  165. package/dist/nodes/Hudu/resources/networks/networks.handler.ts +137 -124
  166. package/dist/nodes/Hudu/resources/password_folders/password_folders.handler.js +4 -3
  167. package/dist/nodes/Hudu/resources/password_folders/password_folders.handler.js.map +1 -1
  168. package/dist/nodes/Hudu/resources/password_folders/password_folders.handler.ts +6 -11
  169. package/dist/nodes/Hudu/resources/password_folders/password_folders.types.ts +1 -1
  170. package/dist/nodes/Hudu/resources/procedure_tasks/procedure_tasks.handler.js +10 -13
  171. package/dist/nodes/Hudu/resources/procedure_tasks/procedure_tasks.handler.js.map +1 -1
  172. package/dist/nodes/Hudu/resources/procedure_tasks/procedure_tasks.handler.ts +22 -37
  173. package/dist/nodes/Hudu/resources/procedures/procedures.handler.js +21 -30
  174. package/dist/nodes/Hudu/resources/procedures/procedures.handler.js.map +1 -1
  175. package/dist/nodes/Hudu/resources/procedures/procedures.handler.ts +37 -70
  176. package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.js +4 -4
  177. package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.js.map +1 -1
  178. package/dist/nodes/Hudu/resources/public_photos/public_photos.handler.ts +65 -65
  179. package/dist/nodes/Hudu/resources/rack_storage_items/rack_storage_items.handler.js +10 -22
  180. package/dist/nodes/Hudu/resources/rack_storage_items/rack_storage_items.handler.js.map +1 -1
  181. package/dist/nodes/Hudu/resources/rack_storage_items/rack_storage_items.handler.ts +73 -121
  182. package/dist/nodes/Hudu/resources/rack_storages/rack_storages.handler.js +51 -16
  183. package/dist/nodes/Hudu/resources/rack_storages/rack_storages.handler.js.map +1 -1
  184. package/dist/nodes/Hudu/resources/rack_storages/rack_storages.handler.ts +122 -117
  185. package/dist/nodes/Hudu/resources/relations/relations.handler.js +8 -9
  186. package/dist/nodes/Hudu/resources/relations/relations.handler.js.map +1 -1
  187. package/dist/nodes/Hudu/resources/relations/relations.handler.ts +17 -22
  188. package/dist/nodes/Hudu/resources/relations/relations.types.js +22 -0
  189. package/dist/nodes/Hudu/resources/relations/relations.types.js.map +1 -1
  190. package/dist/nodes/Hudu/resources/relations/relations.types.ts +37 -1
  191. package/dist/nodes/Hudu/resources/uploads/uploads.handler.js +4 -4
  192. package/dist/nodes/Hudu/resources/uploads/uploads.handler.js.map +1 -1
  193. package/dist/nodes/Hudu/resources/uploads/uploads.handler.ts +1 -1
  194. package/dist/nodes/Hudu/resources/uploads/uploads.types.ts +1 -1
  195. package/dist/nodes/Hudu/resources/users/users.handler.js +5 -7
  196. package/dist/nodes/Hudu/resources/users/users.handler.js.map +1 -1
  197. package/dist/nodes/Hudu/resources/users/users.handler.ts +8 -11
  198. package/dist/nodes/Hudu/resources/users/users.types.ts +1 -1
  199. package/dist/nodes/Hudu/resources/websites/websites.handler.js +46 -18
  200. package/dist/nodes/Hudu/resources/websites/websites.handler.js.map +1 -1
  201. package/dist/nodes/Hudu/resources/websites/websites.handler.ts +112 -116
  202. package/dist/nodes/Hudu/resources/websites/websites.types.ts +1 -1
  203. package/dist/nodes/Hudu/utils/constants.js +33 -1
  204. package/dist/nodes/Hudu/utils/constants.js.map +1 -1
  205. package/dist/nodes/Hudu/utils/constants.ts +192 -152
  206. package/dist/nodes/Hudu/utils/dateUtils.js +138 -0
  207. package/dist/nodes/Hudu/utils/dateUtils.js.map +1 -0
  208. package/dist/nodes/Hudu/utils/dateUtils.ts +203 -0
  209. package/dist/nodes/Hudu/utils/debugConfig.js +79 -0
  210. package/dist/nodes/Hudu/utils/debugConfig.js.map +1 -0
  211. package/dist/nodes/Hudu/utils/debugConfig.ts +117 -0
  212. package/dist/nodes/Hudu/utils/filterUtils.js +53 -0
  213. package/dist/nodes/Hudu/utils/filterUtils.js.map +1 -0
  214. package/dist/nodes/Hudu/utils/filterUtils.ts +85 -0
  215. package/dist/nodes/Hudu/utils/index.js +21 -0
  216. package/dist/nodes/Hudu/utils/index.js.map +1 -0
  217. package/dist/nodes/Hudu/utils/index.ts +17 -0
  218. package/dist/nodes/Hudu/utils/operations/archive.js +25 -0
  219. package/dist/nodes/Hudu/utils/operations/archive.js.map +1 -0
  220. package/dist/nodes/Hudu/utils/operations/archive.ts +36 -0
  221. package/dist/nodes/Hudu/utils/operations/cards.js +23 -0
  222. package/dist/nodes/Hudu/utils/operations/cards.js.map +1 -0
  223. package/dist/nodes/Hudu/utils/operations/cards.ts +44 -0
  224. package/dist/nodes/Hudu/utils/operations/companies.js +18 -0
  225. package/dist/nodes/Hudu/utils/operations/companies.js.map +1 -0
  226. package/dist/nodes/Hudu/utils/operations/companies.ts +28 -0
  227. package/dist/nodes/Hudu/utils/operations/create.js +20 -0
  228. package/dist/nodes/Hudu/utils/operations/create.js.map +1 -0
  229. package/dist/nodes/Hudu/utils/operations/create.ts +29 -0
  230. package/dist/nodes/Hudu/utils/operations/delete.js +24 -0
  231. package/dist/nodes/Hudu/utils/operations/delete.js.map +1 -0
  232. package/dist/nodes/Hudu/utils/operations/delete.ts +34 -0
  233. package/dist/nodes/Hudu/utils/operations/get.js +20 -0
  234. package/dist/nodes/Hudu/utils/operations/get.js.map +1 -0
  235. package/dist/nodes/Hudu/utils/operations/get.ts +28 -0
  236. package/dist/nodes/Hudu/utils/operations/getAll.js +28 -0
  237. package/dist/nodes/Hudu/utils/operations/getAll.js.map +1 -0
  238. package/dist/nodes/Hudu/utils/operations/getAll.ts +49 -0
  239. package/dist/nodes/Hudu/utils/operations/index.js +24 -0
  240. package/dist/nodes/Hudu/utils/operations/index.js.map +1 -0
  241. package/dist/nodes/Hudu/utils/operations/index.ts +7 -0
  242. package/dist/nodes/Hudu/utils/operations/magic_dash.js +56 -0
  243. package/dist/nodes/Hudu/utils/operations/magic_dash.js.map +1 -0
  244. package/dist/nodes/Hudu/utils/operations/magic_dash.ts +86 -0
  245. package/dist/nodes/Hudu/utils/operations/matchers.js +34 -0
  246. package/dist/nodes/Hudu/utils/operations/matchers.js.map +1 -0
  247. package/dist/nodes/Hudu/utils/operations/matchers.ts +50 -0
  248. package/dist/nodes/Hudu/utils/operations/procedures.js +21 -0
  249. package/dist/nodes/Hudu/utils/operations/procedures.js.map +1 -0
  250. package/dist/nodes/Hudu/utils/operations/procedures.ts +47 -0
  251. package/dist/nodes/Hudu/utils/operations/systemInfo.js +9 -0
  252. package/dist/nodes/Hudu/utils/operations/systemInfo.js.map +1 -0
  253. package/dist/nodes/Hudu/utils/operations/systemInfo.ts +13 -0
  254. package/dist/nodes/Hudu/utils/operations/update.js +21 -0
  255. package/dist/nodes/Hudu/utils/operations/update.js.map +1 -0
  256. package/dist/nodes/Hudu/utils/operations/update.ts +31 -0
  257. package/dist/nodes/Hudu/utils/requestUtils.js +175 -0
  258. package/dist/nodes/Hudu/utils/requestUtils.js.map +1 -0
  259. package/dist/nodes/Hudu/utils/requestUtils.ts +286 -0
  260. package/dist/nodes/Hudu/utils/types.js +3 -0
  261. package/dist/nodes/Hudu/utils/types.js.map +1 -0
  262. package/dist/nodes/Hudu/utils/types.ts +7 -0
  263. package/package.json +86 -76
  264. package/dist/nodes/Hudu/utils/GenericFunctions.js +0 -252
  265. package/dist/nodes/Hudu/utils/GenericFunctions.js.map +0 -1
  266. package/dist/nodes/Hudu/utils/GenericFunctions.ts +0 -377
package/README.md CHANGED
@@ -1,173 +1,199 @@
1
- # n8n-nodes-hudu
2
-
3
- This is an n8n community node that lets you use Hudu in your n8n workflows.
4
-
5
- [Hudu](https://www.hudu.com/) is a modern documentation platform for IT.
6
-
7
- [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
8
-
9
- This node was built against Hudu v2.34.4. Future versions of Hudu may not be 100% compatible without node updates.
10
-
11
- ## Installation
12
-
13
- Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
14
-
15
- ## Supported Resources & Operations
16
-
17
- ### Activity Logs
18
-
19
- - Get all activity logs
20
-
21
- ### API Info
22
-
23
- - Get API information
24
-
25
- ### Articles
26
-
27
- - Create, read, update, and delete articles
28
- - List all articles with pagination support
29
-
30
- ### Asset Layouts
31
-
32
- - Manage asset layout templates
33
-
34
- ### Asset Passwords
35
-
36
- - Manage asset-related passwords
37
-
38
- ### Assets
39
-
40
- - Create and manage assets
41
- - Link assets to companies
42
-
43
- ### Cards
44
-
45
- - Manage cards in the system
46
-
47
- ### Companies
48
-
49
- - Create a company
50
- - Delete a company
51
- - Get a company
52
- - Get all companies
53
- - Update a company
54
-
55
- ### Expirations
56
-
57
- - Get all expirations with filtering support for:
58
- - Company ID
59
- - Expiration type
60
- - Resource ID
61
- - Resource type
62
-
63
- ### Folders
64
-
65
- - Manage document folders
66
-
67
- ### IP Addresses
68
-
69
- - Track and manage IP addresses
70
-
71
- ### Magic Dash
72
-
73
- - Access Magic Dash functionality
74
-
75
- ### Matchers
76
-
77
- - Configure and manage matchers
78
-
79
- ### Networks
80
-
81
- - Manage network information
82
-
83
- ### Password Folders
84
-
85
- - Organise and manage password folders
86
-
87
- ### Procedures
88
-
89
- - Create and manage procedures
90
- - Handle procedure tasks
91
-
92
- ### Public Photos
93
-
94
- - Manage public photos
95
-
96
- ### Rack Storage
97
-
98
- - Manage rack storage
99
- - Handle rack storage items
100
-
101
- ### Relations
102
-
103
- - Manage relationships between resources
104
-
105
- ### Uploads
106
-
107
- - Handle file uploads
108
- - Get upload information
109
- - Delete uploads
110
-
111
- ### Users
112
-
113
- - Get user information
114
- - List all users
115
-
116
- ### Websites
117
-
118
- - Manage website records
119
-
120
- ## Credentials
121
-
122
- To use this node, you need to:
123
-
124
- 1. Have a Hudu instance
125
- 2. Generate an API key in your Hudu settings
126
- 3. Configure the node with:
127
- - Base URL (e.g., https://your-hudu-instance.com)
128
- - API Key
129
-
130
- ## Features
131
-
132
- - Comprehensive date range filtering across resources:
133
- - Articles: Filter by `created_at` and `updated_at`
134
- - Asset Layouts: Filter by `created_at` and `updated_at`
135
- - Asset Passwords: Filter by `created_at` and `updated_at`
136
- - Assets: Filter by `created_at` and `updated_at`
137
- - Companies: Filter by `created_at` and `updated_at`
138
- - IP Addresses: Filter by `created_at` and `updated_at`
139
- - Networks: Filter by `created_at` and `updated_at`
140
- - Rack Storages: Filter by `created_at` and `updated_at`
141
- - Rack Storage Items: Filter by `created_at` and `updated_at`
142
- - Websites: Filter by `created_at` and `updated_at`
143
- - Pagination support for applicable resources
144
- - Comprehensive error handling
145
- - Advanced filtering capabilities for all resources
146
- - Supports both single and bulk operations
147
- - Automatic rate limiting and request optimisation
148
- - Standardised date range filter structure across all resources
149
-
150
- ## Resources
151
-
152
- - [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
153
- - [Hudu API Documentation](https://your-hudu-instance.com/api-docs)
154
- - [GitHub Repository](https://github.com/msoukhomlinov/n8n-nodes-hudu)
155
-
156
- ## Contributing
157
-
158
- Contributions are welcome! If you'd like to contribute to this project:
159
-
160
- 1. Fork the repository
161
- 2. Create a feature branch (`git checkout -b feature/AmazingFeature`)
162
- 3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
163
- 4. Push to the branch (`git push origin feature/AmazingFeature`)
164
- 5. Open a Pull Request
165
-
166
- Please ensure your PR:
167
-
168
- - Clearly describes the changes
169
- - Includes any relevant documentation updates
170
- - Follows the existing code style
171
- - Includes tests if applicable
172
-
173
- For bug reports or feature requests, please use the GitHub issues section.
1
+ # n8n-nodes-hudu
2
+
3
+ This n8n community node enables the integration of Hudu within your n8n workflows.
4
+
5
+ [Hudu](https://www.hudu.com/) is a modern documentation platform for IT.
6
+
7
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
8
+
9
+ This node was built against Hudu v2.34.4. Future versions of Hudu may not be 100% compatible without node updates.
10
+
11
+ ## Installation
12
+
13
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
14
+
15
+ ## Supported Resources & Operations
16
+
17
+ ### Activity Logs
18
+
19
+ - Get all activity logs with filtering support
20
+ - Filter by user, action, and date range
21
+
22
+ ### API Info
23
+
24
+ - Get API information and version details
25
+
26
+ ### Articles
27
+
28
+ - Create articles (name required, with optional content, company, folder, and sharing settings)
29
+ - Update articles with flexible field updates
30
+ - Archive and unarchive articles
31
+ - Delete articles
32
+ - Get single article details
33
+ - List all articles with comprehensive filtering:
34
+ - Company ID
35
+ - Draft status
36
+ - Sharing status
37
+ - Folder ID
38
+ - Name exact match
39
+ - Fuzzy search
40
+ - Updated date range
41
+ - Get article version history
42
+
43
+ ### Asset Layouts
44
+
45
+ - Create and manage asset layout templates
46
+ - Get layout fields and configurations
47
+ - List all layouts with filtering support
48
+
49
+ ### Asset Passwords
50
+
51
+ - Create and manage asset-related passwords
52
+ - Link passwords to assets and companies
53
+ - Filter by company and resource types
54
+
55
+ ### Assets
56
+
57
+ - Create assets with custom fields
58
+ - Link assets to companies
59
+ - Update asset details
60
+ - Archive/unarchive assets
61
+ - Delete assets
62
+ - Get single asset details
63
+ - List all assets with filtering support:
64
+ - Company association
65
+ - Updated date range
66
+ - Custom field values
67
+
68
+ ### Cards
69
+
70
+ - Lookup cards by integration
71
+ - Jump to card functionality
72
+ - Filter by integration type and slug
73
+
74
+ ### Companies
75
+
76
+ - Create companies with detailed information
77
+ - Update company details
78
+ - Delete companies
79
+ - Get single company information
80
+ - List all companies with filtering support
81
+ - Jump to company by integration
82
+
83
+ ### Expirations
84
+
85
+ - Get all expirations with comprehensive filtering:
86
+ - Company ID
87
+ - Expiration type
88
+ - Resource ID
89
+ - Resource type
90
+ - Date ranges
91
+
92
+ ### Folders
93
+
94
+ - Create and manage document folders
95
+ - Support for nested folder structures
96
+ - Filter by parent folder
97
+ - Track child folder status
98
+
99
+ ### IP Addresses
100
+
101
+ - Track and manage IP addresses
102
+ - Link to companies and networks
103
+ - Filter by company and network
104
+
105
+ ### Magic Dash
106
+
107
+ - Access Magic Dash functionality
108
+ - Filter by company and title
109
+ - Delete by title and company name
110
+
111
+ ### Matchers
112
+
113
+ - Configure and manage integration matchers
114
+ - Filter by match status and company
115
+ - Support for sync identifiers
116
+
117
+ ### Networks
118
+
119
+ - Create and manage network information
120
+ - Link to companies
121
+ - Filter by company and attributes
122
+
123
+ ### Password Folders
124
+
125
+ - Create and organize password folders
126
+ - Support for folder hierarchy
127
+ - Filter by parent folder
128
+
129
+ ### Procedures
130
+
131
+ - Create and manage procedures
132
+ - Create from templates
133
+ - Duplicate existing procedures
134
+ - Manage procedure tasks
135
+ - Track task completion
136
+
137
+ ### Relations
138
+
139
+ - Create and manage resource relationships
140
+ - Support for various resource types
141
+ - Filter by relationship types and directions
142
+
143
+ ### Users
144
+
145
+ - Get user information
146
+ - List all users
147
+ - Filter by role and status
148
+
149
+ ### Websites
150
+
151
+ - Manage website records
152
+ - Link to companies
153
+ - Filter by company and status
154
+
155
+ ## Credentials
156
+
157
+ To use this node, you need to:
158
+
159
+ 1. Have a Hudu instance
160
+ 2. Generate an API key in your Hudu settings
161
+ 3. Configure the node with:
162
+ - Base URL (e.g., https://your-hudu-instance.com)
163
+ - API Key
164
+
165
+ ## Features
166
+
167
+ - Comprehensive pagination support for all applicable resources
168
+ - Robust error handling and debugging capabilities
169
+ - Advanced filtering options with both API-side and client-side filtering
170
+ - Support for both single and bulk operations
171
+ - Dynamic loading of related resources (companies, layouts, etc.)
172
+ - Date range filtering with preset options
173
+ - Automatic type conversion and validation
174
+ - Debug logging for troubleshooting
175
+
176
+ ## Resources
177
+
178
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
179
+ - [Hudu API Documentation](https://your-hudu-instance.com/api-docs)
180
+ - [GitHub Repository](https://github.com/msoukhomlinov/n8n-nodes-hudu)
181
+
182
+ ## Contributing
183
+
184
+ Contributions are welcome! If you'd like to contribute to this project:
185
+
186
+ 1. Fork the repository
187
+ 2. Create a feature branch (`git checkout -b feature/AmazingFeature`)
188
+ 3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
189
+ 4. Push to the branch (`git push origin feature/AmazingFeature`)
190
+ 5. Open a Pull Request
191
+
192
+ Please ensure your PR:
193
+
194
+ - Clearly describes the changes
195
+ - Includes any relevant documentation updates
196
+ - Follows the existing code style
197
+ - Includes tests if applicable
198
+
199
+ For bug reports or feature requests, please use the GitHub issues section.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AACA,0DAAkD;AAGlD,MAAM,QAAQ,GAAG,IAAI,gBAAI,EAAE,CAAC;AACP,wBAAI;AAEZ,QAAA,KAAK,GAAgB,CAAC,QAAQ,CAAC,CAAC;AAEhC,QAAA,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,UAAU;KACxB;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AACA,0DAAkD;AAGlD,MAAM,QAAQ,GAAG,IAAI,gBAAI,EAAE,CAAC;AACP,wBAAI;AAEZ,QAAA,KAAK,GAAgB,CAAC,QAAQ,CAAC,CAAC;AAEhC,QAAA,WAAW,GAAG;IAC1B;QACC,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,UAAU;KACvB;CACD,CAAC"}
@@ -24,10 +24,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Hudu = void 0;
27
+ const n8n_workflow_1 = require("n8n-workflow");
28
+ const debugConfig_1 = require("./utils/debugConfig");
27
29
  const descriptions = __importStar(require("./descriptions"));
28
30
  const resources = __importStar(require("./resources"));
29
31
  const users_1 = require("./optionLoaders/users");
30
32
  const companies_1 = require("./optionLoaders/companies");
33
+ const asset_layouts_1 = require("./optionLoaders/asset_layouts");
31
34
  class Hudu {
32
35
  constructor() {
33
36
  this.description = {
@@ -49,6 +52,12 @@ class Hudu {
49
52
  required: true,
50
53
  },
51
54
  ],
55
+ codex: {
56
+ categories: ['Communication'],
57
+ subcategories: {
58
+ Communication: ['Documentation']
59
+ },
60
+ },
52
61
  requestDefaults: {
53
62
  baseURL: '={{$credentials.baseUrl}}/api/v1',
54
63
  headers: {
@@ -63,7 +72,7 @@ class Hudu {
63
72
  noDataExpression: true,
64
73
  options: [
65
74
  {
66
- name: 'Activity Logs',
75
+ name: 'Activity Log',
67
76
  value: 'activity_logs',
68
77
  },
69
78
  {
@@ -71,85 +80,37 @@ class Hudu {
71
80
  value: 'api_info',
72
81
  },
73
82
  {
74
- name: 'Articles',
83
+ name: 'Article',
75
84
  value: 'articles',
76
85
  },
77
86
  {
78
- name: 'Asset Layout',
79
- value: 'asset_layouts',
87
+ name: 'Asset',
88
+ value: 'assets',
80
89
  },
81
90
  {
82
- name: 'Asset Password',
83
- value: 'asset_passwords',
91
+ name: 'Asset Layout',
92
+ value: 'asset_layouts',
84
93
  },
85
94
  {
86
- name: 'Asset',
87
- value: 'assets',
95
+ name: 'Asset Layout Field',
96
+ value: 'asset_layout_fields',
88
97
  },
89
98
  {
90
- name: 'Card',
91
- value: 'cards',
99
+ name: 'Asset Password',
100
+ value: 'asset_passwords',
92
101
  },
93
102
  {
94
103
  name: 'Company',
95
104
  value: 'companies',
96
105
  },
97
- {
98
- name: 'Expiration',
99
- value: 'expirations',
100
- },
101
106
  {
102
107
  name: 'Folder',
103
108
  value: 'folders',
104
109
  },
105
- {
106
- name: 'IP Address',
107
- value: 'ipAddresses',
108
- },
109
- {
110
- name: 'Magic Dash',
111
- value: 'magic_dash',
112
- },
113
- {
114
- name: 'Matcher',
115
- value: 'matchers',
116
- },
117
- {
118
- name: 'Network',
119
- value: 'networks',
120
- },
121
- {
122
- name: 'Password Folder',
123
- value: 'password_folders',
124
- },
125
- {
126
- name: 'Procedure',
127
- value: 'procedures',
128
- },
129
- {
130
- name: 'Procedure Task',
131
- value: 'procedure_tasks',
132
- },
133
- {
134
- name: 'Public Photo',
135
- value: 'public_photos',
136
- },
137
- {
138
- name: 'Rack Storage',
139
- value: 'rack_storages',
140
- },
141
- {
142
- name: 'Rack Storage Item',
143
- value: 'rack_storage_items',
144
- },
145
110
  {
146
111
  name: 'Relation',
147
112
  value: 'relations',
148
113
  },
149
- {
150
- name: 'Upload',
151
- value: 'uploads',
152
- },
153
114
  {
154
115
  name: 'User',
155
116
  value: 'users',
@@ -165,6 +126,7 @@ class Hudu {
165
126
  ...descriptions.apiInfoOperations,
166
127
  ...descriptions.articlesOperations,
167
128
  ...descriptions.assetLayoutOperations,
129
+ ...descriptions.assetLayoutFieldOperations,
168
130
  ...descriptions.assetPasswordOperations,
169
131
  ...descriptions.assetsOperations,
170
132
  ...descriptions.cardsOperations,
@@ -189,6 +151,7 @@ class Hudu {
189
151
  ...descriptions.apiInfoFields,
190
152
  ...descriptions.articlesFields,
191
153
  ...descriptions.assetLayoutFields,
154
+ ...descriptions.assetLayoutFieldFields,
192
155
  ...descriptions.assetPasswordFields,
193
156
  ...descriptions.assetsFields,
194
157
  ...descriptions.cardsFields,
@@ -215,18 +178,33 @@ class Hudu {
215
178
  loadOptions: {
216
179
  getUsers: users_1.getUsers,
217
180
  getCompanies: companies_1.getCompanies,
181
+ getAssetLayouts: asset_layouts_1.getAssetLayouts,
182
+ getAssetLayoutFields: asset_layouts_1.getAssetLayoutFields,
183
+ getAssetLayoutFieldValues: asset_layouts_1.getAssetLayoutFieldValues,
218
184
  },
219
185
  };
220
186
  }
221
187
  async execute() {
222
188
  const items = this.getInputData();
223
189
  const returnData = [];
224
- let operation;
190
+ if (debugConfig_1.DEBUG_CONFIG.NODE_INPUT) {
191
+ (0, debugConfig_1.debugLog)('Node Execution - Input Items', {
192
+ itemCount: items.length,
193
+ items,
194
+ });
195
+ }
225
196
  for (let i = 0; i < items.length; i++) {
226
197
  try {
227
- let responseData;
228
198
  const resource = this.getNodeParameter('resource', i);
229
- operation = this.getNodeParameter('operation', i);
199
+ const operation = this.getNodeParameter('operation', i);
200
+ if (debugConfig_1.DEBUG_CONFIG.NODE_INPUT) {
201
+ (0, debugConfig_1.debugLog)(`Node Execution - Item ${i}`, {
202
+ resource,
203
+ operation,
204
+ itemData: items[i],
205
+ });
206
+ }
207
+ let responseData = {};
230
208
  switch (resource) {
231
209
  case 'activity_logs':
232
210
  responseData = await resources.handleActivityLogsOperation.call(this, operation, i);
@@ -240,6 +218,9 @@ class Hudu {
240
218
  case 'asset_layouts':
241
219
  responseData = await resources.handleAssetLayoutOperation.call(this, operation, i);
242
220
  break;
221
+ case 'asset_layout_fields':
222
+ responseData = await resources.handleAssetLayoutFieldOperation.call(this, operation, i);
223
+ break;
243
224
  case 'asset_passwords':
244
225
  responseData = await resources.handleAssetPasswordOperation.call(this, operation, i);
245
226
  break;
@@ -301,32 +282,44 @@ class Hudu {
301
282
  responseData = await resources.handleWebsitesOperation.call(this, operation, i);
302
283
  break;
303
284
  default:
304
- throw new Error(`The resource "${resource}" is not known!`);
285
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The resource "${resource}" is not known!`);
305
286
  }
306
- if (Array.isArray(responseData)) {
307
- returnData.push(...responseData.map((item) => ({
308
- json: item,
309
- pairedItem: { item: i },
310
- })));
311
- }
312
- else {
313
- returnData.push({
314
- json: responseData,
315
- pairedItem: { item: i },
287
+ const executionData = this.helpers.returnJsonArray(responseData).map((item) => ({
288
+ ...item,
289
+ pairedItem: { item: i },
290
+ }));
291
+ if (debugConfig_1.DEBUG_CONFIG.NODE_OUTPUT) {
292
+ (0, debugConfig_1.debugLog)(`Node Execution - Item ${i} Output`, {
293
+ executionData,
316
294
  });
317
295
  }
296
+ returnData.push(...executionData);
318
297
  }
319
298
  catch (error) {
299
+ if (debugConfig_1.DEBUG_CONFIG.NODE_OUTPUT) {
300
+ (0, debugConfig_1.debugLog)(`Node Execution - Item ${i} Error`, {
301
+ error,
302
+ message: error instanceof Error ? error.message : String(error),
303
+ stack: error instanceof Error ? error.stack : undefined,
304
+ }, 'error');
305
+ }
320
306
  if (this.continueOnFail()) {
321
- returnData.push({
322
- json: { error: error.message },
307
+ const executionErrorData = this.helpers.returnJsonArray({ error: error.message }).map((item) => ({
308
+ ...item,
323
309
  pairedItem: { item: i },
324
- });
310
+ }));
311
+ returnData.push(...executionErrorData);
325
312
  continue;
326
313
  }
327
314
  throw error;
328
315
  }
329
316
  }
317
+ if (debugConfig_1.DEBUG_CONFIG.NODE_OUTPUT) {
318
+ (0, debugConfig_1.debugLog)('Node Execution - Final Output', {
319
+ returnDataCount: returnData.length,
320
+ returnData,
321
+ });
322
+ }
330
323
  return [returnData];
331
324
  }
332
325
  }