@limetech/n8n-nodes-lime 0.4.0 → 2.3.1-dev.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 (330) hide show
  1. package/.github/workflows/lint.yml +3 -1
  2. package/.github/workflows/release.yml +2 -49
  3. package/.github/workflows/test-and-build.yml +1 -1
  4. package/.prettierignore +3 -1
  5. package/.releaserc.json +2 -1
  6. package/CHANGELOG.md +215 -0
  7. package/README.md +2 -9
  8. package/credentials/LimeCrmApi.credentials.ts +44 -7
  9. package/credentials/index.ts +2 -0
  10. package/eslint.config.mjs +2 -1
  11. package/knip.json +9 -0
  12. package/nodes/fortnox/Fortnox.node.ts +3 -3
  13. package/nodes/fortnox/FortnoxTrigger.node.ts +2 -2
  14. package/nodes/fortnox/index.ts +6 -0
  15. package/nodes/fortnox/resources/customers/index.ts +18 -22
  16. package/nodes/fortnox/resources/customers/operations/create.operation.ts +12 -8
  17. package/nodes/fortnox/resources/customers/operations/delete.operation.ts +10 -15
  18. package/nodes/fortnox/resources/customers/operations/get.operation.ts +10 -15
  19. package/nodes/fortnox/resources/customers/operations/getAll.operation.ts +1 -2
  20. package/nodes/fortnox/resources/customers/operations/index.ts +5 -0
  21. package/nodes/fortnox/resources/customers/operations/update.operation.ts +30 -30
  22. package/nodes/fortnox/resources/invoice/index.ts +16 -18
  23. package/nodes/fortnox/resources/invoice/model.ts +0 -4
  24. package/nodes/fortnox/resources/invoice/operations/create.operation.ts +1 -2
  25. package/nodes/fortnox/resources/invoice/operations/get.operation.ts +10 -15
  26. package/nodes/fortnox/resources/invoice/operations/getAll.operation.ts +1 -2
  27. package/nodes/fortnox/resources/invoice/operations/index.ts +4 -0
  28. package/nodes/fortnox/resources/invoice/operations/update.operation.ts +11 -16
  29. package/nodes/fortnox/transport/index.ts +14 -11
  30. package/nodes/index.ts +4 -0
  31. package/nodes/lime-crm/LimeCrmNode.node.ts +126 -69
  32. package/nodes/lime-crm/LimeCrmTrigger.node.ts +86 -53
  33. package/nodes/lime-crm/index.ts +9 -0
  34. package/nodes/lime-crm/methods/getLimetypeProperties.ts +110 -0
  35. package/nodes/lime-crm/methods/getLimetypes.ts +26 -0
  36. package/nodes/lime-crm/methods/index.ts +7 -3
  37. package/nodes/lime-crm/models/constants.ts +73 -0
  38. package/nodes/lime-crm/models/index.ts +21 -0
  39. package/nodes/lime-crm/models/limeobject.ts +13 -0
  40. package/nodes/lime-crm/models/limetype.ts +47 -0
  41. package/nodes/lime-crm/models/propertyTypes.ts +13 -0
  42. package/nodes/lime-crm/models/users.ts +46 -0
  43. package/nodes/lime-crm/models/webhook.ts +61 -0
  44. package/nodes/lime-crm/resources/admin/index.ts +89 -0
  45. package/nodes/lime-crm/resources/admin/operations/getManyUsers.operation.ts +166 -0
  46. package/nodes/lime-crm/resources/admin/operations/getSingleUser.operation.ts +113 -0
  47. package/nodes/lime-crm/resources/admin/operations/index.ts +8 -0
  48. package/nodes/lime-crm/resources/data/index.ts +117 -0
  49. package/nodes/lime-crm/resources/data/operations/createSingleObject.operation.ts +231 -0
  50. package/nodes/lime-crm/resources/data/operations/deleteSingleObject.operation.ts +83 -0
  51. package/nodes/lime-crm/resources/data/operations/getManyObjects.operation.ts +499 -0
  52. package/nodes/lime-crm/resources/data/operations/getSingleFile.operation.ts +162 -0
  53. package/nodes/lime-crm/resources/data/operations/getSingleObject.operation.ts +116 -0
  54. package/nodes/lime-crm/resources/data/operations/index.ts +24 -0
  55. package/nodes/lime-crm/resources/{limeObject/operations/update.operation.ts → data/operations/updateSingleObject.operation.ts} +91 -25
  56. package/nodes/lime-crm/resources/metadata/index.ts +97 -0
  57. package/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.ts +28 -0
  58. package/nodes/lime-crm/resources/metadata/operations/getSingleFileMetadata.operation.ts +147 -0
  59. package/nodes/lime-crm/resources/metadata/operations/getSingleLimetype.operation.ts +58 -0
  60. package/nodes/lime-crm/resources/metadata/operations/index.ts +12 -0
  61. package/nodes/lime-crm/transport/commons.ts +97 -27
  62. package/nodes/lime-crm/transport/files.ts +220 -0
  63. package/nodes/lime-crm/transport/index.ts +38 -13
  64. package/nodes/lime-crm/transport/limeQuery.ts +44 -10
  65. package/nodes/lime-crm/transport/limeobjects.ts +126 -168
  66. package/nodes/lime-crm/transport/limetypes.ts +169 -57
  67. package/nodes/lime-crm/transport/users.ts +264 -0
  68. package/nodes/lime-crm/transport/webhooks.ts +96 -37
  69. package/nodes/lime-crm/utils/files.ts +198 -0
  70. package/nodes/lime-crm/utils/hmac.ts +35 -0
  71. package/nodes/lime-crm/utils/index.ts +10 -0
  72. package/nodes/lime-crm/utils/propertyAdapters.ts +75 -0
  73. package/nodes/lime-crm/utils/webhook.ts +81 -0
  74. package/nodes/modules.ts +44 -0
  75. package/nodes/response.ts +16 -0
  76. package/package.json +21 -29
  77. package/restore_script/README +42 -0
  78. package/restore_script/api_key_download.txt +0 -0
  79. package/restore_script/api_key_upload.txt +0 -0
  80. package/restore_script/cli.py +73 -0
  81. package/restore_script/download.py +73 -0
  82. package/restore_script/main.py +19 -0
  83. package/restore_script/poetry.lock +162 -0
  84. package/restore_script/pyproject.toml +15 -0
  85. package/restore_script/transfer.py +41 -0
  86. package/restore_script/upload.py +66 -0
  87. package/restore_script/utils.py +42 -0
  88. package/tests/nodes/lime-crm/utils.spec.ts +238 -0
  89. package/typedoc.css +9 -0
  90. package/typedoc.json +19 -0
  91. package/.dockerignore +0 -1
  92. package/Dockerfile +0 -21
  93. package/dist/credentials/FortnoxApi.credentials.d.ts +0 -9
  94. package/dist/credentials/FortnoxApi.credentials.js +0 -57
  95. package/dist/credentials/FortnoxApi.credentials.js.map +0 -1
  96. package/dist/credentials/LimeCrmApi.credentials.d.ts +0 -9
  97. package/dist/credentials/LimeCrmApi.credentials.js +0 -66
  98. package/dist/credentials/LimeCrmApi.credentials.js.map +0 -1
  99. package/dist/nodes/fortnox/Fortnox.node.d.ts +0 -5
  100. package/dist/nodes/fortnox/Fortnox.node.js +0 -95
  101. package/dist/nodes/fortnox/Fortnox.node.js.map +0 -1
  102. package/dist/nodes/fortnox/Fortnox.node.json +0 -18
  103. package/dist/nodes/fortnox/FortnoxTrigger.node.d.ts +0 -5
  104. package/dist/nodes/fortnox/FortnoxTrigger.node.js +0 -155
  105. package/dist/nodes/fortnox/FortnoxTrigger.node.js.map +0 -1
  106. package/dist/nodes/fortnox/FortnoxTrigger.node.json +0 -18
  107. package/dist/nodes/fortnox/commons.d.ts +0 -25
  108. package/dist/nodes/fortnox/commons.js +0 -44
  109. package/dist/nodes/fortnox/commons.js.map +0 -1
  110. package/dist/nodes/fortnox/fortnoxLogo.svg +0 -15
  111. package/dist/nodes/fortnox/model.d.ts +0 -20
  112. package/dist/nodes/fortnox/model.js +0 -3
  113. package/dist/nodes/fortnox/model.js.map +0 -1
  114. package/dist/nodes/fortnox/resources/customers/filterParameters.d.ts +0 -2
  115. package/dist/nodes/fortnox/resources/customers/filterParameters.js +0 -31
  116. package/dist/nodes/fortnox/resources/customers/filterParameters.js.map +0 -1
  117. package/dist/nodes/fortnox/resources/customers/index.d.ts +0 -20
  118. package/dist/nodes/fortnox/resources/customers/index.js +0 -87
  119. package/dist/nodes/fortnox/resources/customers/index.js.map +0 -1
  120. package/dist/nodes/fortnox/resources/customers/model.d.ts +0 -99
  121. package/dist/nodes/fortnox/resources/customers/model.js +0 -3
  122. package/dist/nodes/fortnox/resources/customers/model.js.map +0 -1
  123. package/dist/nodes/fortnox/resources/customers/operations/create.operation.d.ts +0 -12
  124. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js +0 -283
  125. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js.map +0 -1
  126. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.d.ts +0 -10
  127. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js +0 -45
  128. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js.map +0 -1
  129. package/dist/nodes/fortnox/resources/customers/operations/get.operation.d.ts +0 -11
  130. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js +0 -45
  131. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js.map +0 -1
  132. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.d.ts +0 -11
  133. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js +0 -68
  134. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js.map +0 -1
  135. package/dist/nodes/fortnox/resources/customers/operations/update.operation.d.ts +0 -12
  136. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js +0 -276
  137. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js.map +0 -1
  138. package/dist/nodes/fortnox/resources/customers/sortParameters.d.ts +0 -2
  139. package/dist/nodes/fortnox/resources/customers/sortParameters.js +0 -30
  140. package/dist/nodes/fortnox/resources/customers/sortParameters.js.map +0 -1
  141. package/dist/nodes/fortnox/resources/invoice/filterParameters.d.ts +0 -2
  142. package/dist/nodes/fortnox/resources/invoice/filterParameters.js +0 -72
  143. package/dist/nodes/fortnox/resources/invoice/filterParameters.js.map +0 -1
  144. package/dist/nodes/fortnox/resources/invoice/index.d.ts +0 -20
  145. package/dist/nodes/fortnox/resources/invoice/index.js +0 -81
  146. package/dist/nodes/fortnox/resources/invoice/index.js.map +0 -1
  147. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.d.ts +0 -2
  148. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js +0 -193
  149. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js.map +0 -1
  150. package/dist/nodes/fortnox/resources/invoice/model.d.ts +0 -150
  151. package/dist/nodes/fortnox/resources/invoice/model.js +0 -3
  152. package/dist/nodes/fortnox/resources/invoice/model.js.map +0 -1
  153. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.d.ts +0 -11
  154. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js +0 -64
  155. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js.map +0 -1
  156. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.d.ts +0 -11
  157. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js +0 -44
  158. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js.map +0 -1
  159. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.d.ts +0 -11
  160. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js +0 -92
  161. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js.map +0 -1
  162. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.d.ts +0 -11
  163. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js +0 -71
  164. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js.map +0 -1
  165. package/dist/nodes/fortnox/transport/errorCodes.d.ts +0 -1
  166. package/dist/nodes/fortnox/transport/errorCodes.js +0 -50
  167. package/dist/nodes/fortnox/transport/errorCodes.js.map +0 -1
  168. package/dist/nodes/fortnox/transport/index.d.ts +0 -4
  169. package/dist/nodes/fortnox/transport/index.js +0 -77
  170. package/dist/nodes/fortnox/transport/index.js.map +0 -1
  171. package/dist/nodes/lime-crm/LimeCrm.node.json +0 -18
  172. package/dist/nodes/lime-crm/LimeCrmNode.node.d.ts +0 -14
  173. package/dist/nodes/lime-crm/LimeCrmNode.node.js +0 -126
  174. package/dist/nodes/lime-crm/LimeCrmNode.node.js.map +0 -1
  175. package/dist/nodes/lime-crm/LimeCrmTrigger.node.d.ts +0 -18
  176. package/dist/nodes/lime-crm/LimeCrmTrigger.node.js +0 -215
  177. package/dist/nodes/lime-crm/LimeCrmTrigger.node.js.map +0 -1
  178. package/dist/nodes/lime-crm/assets/lime-crm.svg +0 -1
  179. package/dist/nodes/lime-crm/commons/constants.d.ts +0 -5
  180. package/dist/nodes/lime-crm/commons/constants.js +0 -9
  181. package/dist/nodes/lime-crm/commons/constants.js.map +0 -1
  182. package/dist/nodes/lime-crm/commons/hmac.d.ts +0 -1
  183. package/dist/nodes/lime-crm/commons/hmac.js +0 -11
  184. package/dist/nodes/lime-crm/commons/hmac.js.map +0 -1
  185. package/dist/nodes/lime-crm/commons/index.d.ts +0 -3
  186. package/dist/nodes/lime-crm/commons/index.js +0 -12
  187. package/dist/nodes/lime-crm/commons/index.js.map +0 -1
  188. package/dist/nodes/lime-crm/commons/limetype.d.ts +0 -10
  189. package/dist/nodes/lime-crm/commons/limetype.js +0 -3
  190. package/dist/nodes/lime-crm/commons/limetype.js.map +0 -1
  191. package/dist/nodes/lime-crm/commons/task.d.ts +0 -14
  192. package/dist/nodes/lime-crm/commons/task.js +0 -48
  193. package/dist/nodes/lime-crm/commons/task.js.map +0 -1
  194. package/dist/nodes/lime-crm/commons/webhook.d.ts +0 -20
  195. package/dist/nodes/lime-crm/commons/webhook.js +0 -30
  196. package/dist/nodes/lime-crm/commons/webhook.js.map +0 -1
  197. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.d.ts +0 -5
  198. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js +0 -11
  199. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js.map +0 -1
  200. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.d.ts +0 -2
  201. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js +0 -20
  202. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js.map +0 -1
  203. package/dist/nodes/lime-crm/methods/getLimeTypes.d.ts +0 -2
  204. package/dist/nodes/lime-crm/methods/getLimeTypes.js +0 -20
  205. package/dist/nodes/lime-crm/methods/getLimeTypes.js.map +0 -1
  206. package/dist/nodes/lime-crm/methods/index.d.ts +0 -3
  207. package/dist/nodes/lime-crm/methods/index.js +0 -10
  208. package/dist/nodes/lime-crm/methods/index.js.map +0 -1
  209. package/dist/nodes/lime-crm/resources/erpConnector/index.d.ts +0 -23
  210. package/dist/nodes/lime-crm/resources/erpConnector/index.js +0 -67
  211. package/dist/nodes/lime-crm/resources/erpConnector/index.js.map +0 -1
  212. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.d.ts +0 -26
  213. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js +0 -65
  214. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js.map +0 -1
  215. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.d.ts +0 -9
  216. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js +0 -220
  217. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js.map +0 -1
  218. package/dist/nodes/lime-crm/resources/erpConnector/transform.d.ts +0 -15
  219. package/dist/nodes/lime-crm/resources/erpConnector/transform.js +0 -11
  220. package/dist/nodes/lime-crm/resources/erpConnector/transform.js.map +0 -1
  221. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.d.ts +0 -4
  222. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.js +0 -7
  223. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.js.map +0 -1
  224. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.d.ts +0 -37
  225. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.js +0 -124
  226. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.js.map +0 -1
  227. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.d.ts +0 -1
  228. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.js +0 -6
  229. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.js.map +0 -1
  230. package/dist/nodes/lime-crm/resources/limeObject/index.d.ts +0 -14
  231. package/dist/nodes/lime-crm/resources/limeObject/index.js +0 -88
  232. package/dist/nodes/lime-crm/resources/limeObject/index.js.map +0 -1
  233. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.d.ts +0 -9
  234. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js +0 -139
  235. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js.map +0 -1
  236. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.d.ts +0 -9
  237. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js +0 -51
  238. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js.map +0 -1
  239. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.d.ts +0 -9
  240. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.js +0 -103
  241. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.js.map +0 -1
  242. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.d.ts +0 -9
  243. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js +0 -51
  244. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js.map +0 -1
  245. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.d.ts +0 -9
  246. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js +0 -103
  247. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js.map +0 -1
  248. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.d.ts +0 -9
  249. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js +0 -149
  250. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js.map +0 -1
  251. package/dist/nodes/lime-crm/resources/limeQuery/index.d.ts +0 -6
  252. package/dist/nodes/lime-crm/resources/limeQuery/index.js +0 -66
  253. package/dist/nodes/lime-crm/resources/limeQuery/index.js.map +0 -1
  254. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.d.ts +0 -9
  255. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.js +0 -191
  256. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.js.map +0 -1
  257. package/dist/nodes/lime-crm/resources/limeType/index.d.ts +0 -20
  258. package/dist/nodes/lime-crm/resources/limeType/index.js +0 -81
  259. package/dist/nodes/lime-crm/resources/limeType/index.js.map +0 -1
  260. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.d.ts +0 -11
  261. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js +0 -36
  262. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js.map +0 -1
  263. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.d.ts +0 -9
  264. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js +0 -36
  265. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js.map +0 -1
  266. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.d.ts +0 -10
  267. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js +0 -15
  268. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js.map +0 -1
  269. package/dist/nodes/lime-crm/transport/commons.d.ts +0 -5
  270. package/dist/nodes/lime-crm/transport/commons.js +0 -33
  271. package/dist/nodes/lime-crm/transport/commons.js.map +0 -1
  272. package/dist/nodes/lime-crm/transport/erpConnector.d.ts +0 -9
  273. package/dist/nodes/lime-crm/transport/erpConnector.js +0 -11
  274. package/dist/nodes/lime-crm/transport/erpConnector.js.map +0 -1
  275. package/dist/nodes/lime-crm/transport/index.d.ts +0 -6
  276. package/dist/nodes/lime-crm/transport/index.js +0 -24
  277. package/dist/nodes/lime-crm/transport/index.js.map +0 -1
  278. package/dist/nodes/lime-crm/transport/limeQuery.d.ts +0 -10
  279. package/dist/nodes/lime-crm/transport/limeQuery.js +0 -15
  280. package/dist/nodes/lime-crm/transport/limeQuery.js.map +0 -1
  281. package/dist/nodes/lime-crm/transport/limeobjects.d.ts +0 -7
  282. package/dist/nodes/lime-crm/transport/limeobjects.js +0 -134
  283. package/dist/nodes/lime-crm/transport/limeobjects.js.map +0 -1
  284. package/dist/nodes/lime-crm/transport/limetypes.d.ts +0 -6
  285. package/dist/nodes/lime-crm/transport/limetypes.js +0 -54
  286. package/dist/nodes/lime-crm/transport/limetypes.js.map +0 -1
  287. package/dist/nodes/lime-crm/transport/task.d.ts +0 -13
  288. package/dist/nodes/lime-crm/transport/task.js +0 -13
  289. package/dist/nodes/lime-crm/transport/task.js.map +0 -1
  290. package/dist/nodes/lime-crm/transport/webhooks.d.ts +0 -16
  291. package/dist/nodes/lime-crm/transport/webhooks.js +0 -43
  292. package/dist/nodes/lime-crm/transport/webhooks.js.map +0 -1
  293. package/dist/nodes/nodeResponse.d.ts +0 -12
  294. package/dist/nodes/nodeResponse.js +0 -3
  295. package/dist/nodes/nodeResponse.js.map +0 -1
  296. package/dist/package.json +0 -75
  297. package/dist/tsconfig.tsbuildinfo +0 -1
  298. package/docker-compose.yml +0 -46
  299. package/nodes/lime-crm/commons/constants.ts +0 -10
  300. package/nodes/lime-crm/commons/hmac.ts +0 -13
  301. package/nodes/lime-crm/commons/index.ts +0 -10
  302. package/nodes/lime-crm/commons/limetype.ts +0 -11
  303. package/nodes/lime-crm/commons/task.ts +0 -55
  304. package/nodes/lime-crm/commons/webhook.ts +0 -56
  305. package/nodes/lime-crm/methods/getEntitiesForErpSystem.ts +0 -11
  306. package/nodes/lime-crm/methods/getLimeTypeProperties.ts +0 -27
  307. package/nodes/lime-crm/methods/getLimeTypes.ts +0 -23
  308. package/nodes/lime-crm/resources/erpConnector/index.ts +0 -43
  309. package/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.ts +0 -69
  310. package/nodes/lime-crm/resources/erpConnector/operations/transform.operation.ts +0 -274
  311. package/nodes/lime-crm/resources/erpConnector/transform.ts +0 -49
  312. package/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.ts +0 -18
  313. package/nodes/lime-crm/resources/erpConnector/transformers/fortnox.ts +0 -201
  314. package/nodes/lime-crm/resources/erpConnector/transformers/index.ts +0 -1
  315. package/nodes/lime-crm/resources/limeObject/index.ts +0 -64
  316. package/nodes/lime-crm/resources/limeObject/operations/create.operation.ts +0 -152
  317. package/nodes/lime-crm/resources/limeObject/operations/delete.operation.ts +0 -55
  318. package/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.ts +0 -112
  319. package/nodes/lime-crm/resources/limeObject/operations/get.operation.ts +0 -54
  320. package/nodes/lime-crm/resources/limeQuery/index.ts +0 -40
  321. package/nodes/lime-crm/resources/limeQuery/operations/query.operation.ts +0 -222
  322. package/nodes/lime-crm/resources/limeType/index.ts +0 -58
  323. package/nodes/lime-crm/resources/limeType/operations/getProperties.operation.ts +0 -42
  324. package/nodes/lime-crm/resources/limeType/operations/getType.operation.ts +0 -36
  325. package/nodes/lime-crm/resources/limeType/operations/listTypes.operation.ts +0 -18
  326. package/nodes/lime-crm/transport/erpConnector.ts +0 -21
  327. package/nodes/lime-crm/transport/task.ts +0 -32
  328. package/nodes/nodeResponse.ts +0 -13
  329. package/tests/fixtures/fortnox.ts +0 -182
  330. package/tests/transform.spec.ts +0 -187
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FortnoxApi = void 0;
4
- const commons_1 = require("../nodes/fortnox/commons");
5
- const transport_1 = require("../nodes/fortnox/transport");
6
- class FortnoxApi {
7
- constructor() {
8
- this.name = commons_1.FORTNOX_API_CREDENTIAL_KEY;
9
- this.displayName = 'Fortnox API';
10
- this.documentationUrl = 'https://www.fortnox.se/developer';
11
- this.properties = [
12
- {
13
- displayName: 'Token',
14
- name: 'token',
15
- type: 'string',
16
- typeOptions: {
17
- password: true,
18
- },
19
- default: '',
20
- required: true,
21
- description: 'Token for authentication with the Fortnox API',
22
- },
23
- {
24
- displayName: 'Client Secret',
25
- name: 'clientSecret',
26
- type: 'string',
27
- typeOptions: {
28
- password: true,
29
- },
30
- default: '',
31
- description: 'Unique key provided when you register your Fortnox integration',
32
- },
33
- ];
34
- this.authenticate = {
35
- type: 'generic',
36
- properties: {
37
- headers: {
38
- Authorization: '=Bearer {{$credentials.token}}',
39
- Accept: 'application/json',
40
- 'Content-Type': 'application/json',
41
- },
42
- },
43
- };
44
- this.test = {
45
- request: {
46
- baseURL: transport_1.FORTNOX_BASE_URL,
47
- url: 'invoices',
48
- method: 'GET',
49
- headers: {
50
- Authorization: '=Bearer {{$credentials.token}}',
51
- },
52
- },
53
- };
54
- }
55
- }
56
- exports.FortnoxApi = FortnoxApi;
57
- //# sourceMappingURL=FortnoxApi.credentials.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FortnoxApi.credentials.js","sourceRoot":"","sources":["../../credentials/FortnoxApi.credentials.ts"],"names":[],"mappings":";;;AAOA,sDAAsE;AACtE,0DAA8D;AAE9D,MAAa,UAAU;IAAvB;QACI,SAAI,GAAG,oCAA0B,CAAC;QAClC,gBAAW,GAAG,aAAa,CAAC;QAC5B,qBAAgB,GAAG,kCAAkC,CAAC;QACtD,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,+CAA+C;aAC/D;YACD;gBACI,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EACP,gEAAgE;aACvE;SACJ,CAAC;QAEF,iBAAY,GAAkB;YAC1B,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,aAAa,EAAE,gCAAgC;oBAC/C,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBACrC;aACJ;SACJ,CAAC;QAEF,SAAI,GAA2B;YAC3B,OAAO,EAAE;gBACL,OAAO,EAAE,4BAAgB;gBACzB,GAAG,EAAE,UAAU;gBACf,MAAM,EAAE,KAA4B;gBACpC,OAAO,EAAE;oBACL,aAAa,EAAE,gCAAgC;iBAClD;aACJ;SACJ,CAAC;IACN,CAAC;CAAA;AAlDD,gCAkDC"}
@@ -1,9 +0,0 @@
1
- import { ICredentialType, INodeProperties, IAuthenticate, ICredentialTestRequest } from 'n8n-workflow';
2
- export declare class LimeCrmApi implements ICredentialType {
3
- name: string;
4
- displayName: string;
5
- documentationUrl: string;
6
- properties: INodeProperties[];
7
- authenticate: IAuthenticate;
8
- test: ICredentialTestRequest;
9
- }
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LimeCrmApi = void 0;
4
- const commons_1 = require("../nodes/lime-crm/commons");
5
- class LimeCrmApi {
6
- constructor() {
7
- this.name = commons_1.LIME_CRM_API_CREDENTIAL_KEY;
8
- this.displayName = 'Lime CRM API';
9
- this.documentationUrl = 'https://lime-crm.com/api-docs/';
10
- this.properties = [
11
- {
12
- displayName: 'Server URL',
13
- name: 'url',
14
- type: 'string',
15
- default: '',
16
- placeholder: 'https://instance.lime-crm.com',
17
- required: true,
18
- description: 'The URL of your Lime CRM instance (without trailing slash)',
19
- },
20
- {
21
- displayName: 'API Key',
22
- name: 'apiKey',
23
- type: 'string',
24
- typeOptions: {
25
- password: true,
26
- },
27
- default: '',
28
- required: true,
29
- description: 'The API key obtained from Lime CRM',
30
- },
31
- {
32
- displayName: 'Webhook secret',
33
- name: 'webhookSecret',
34
- type: 'string',
35
- typeOptions: {
36
- password: true,
37
- },
38
- default: '',
39
- required: false,
40
- description: 'A secret to authenticate webhook used in communication' +
41
- 'with Lime CRM',
42
- },
43
- ];
44
- this.authenticate = {
45
- type: 'generic',
46
- properties: {
47
- headers: {
48
- 'X-API-Key': '={{$credentials.apiKey}}',
49
- },
50
- },
51
- };
52
- this.test = {
53
- request: {
54
- baseURL: '={{$credentials.url}}',
55
- url: '/api/v1/',
56
- method: 'GET',
57
- headers: {
58
- 'X-API-Key': '={{$credentials.apiKey}}',
59
- Accept: 'application/json',
60
- },
61
- },
62
- };
63
- }
64
- }
65
- exports.LimeCrmApi = LimeCrmApi;
66
- //# sourceMappingURL=LimeCrmApi.credentials.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LimeCrmApi.credentials.js","sourceRoot":"","sources":["../../credentials/LimeCrmApi.credentials.ts"],"names":[],"mappings":";;;AAQA,uDAAwE;AAExE,MAAa,UAAU;IAAvB;QACI,SAAI,GAAG,qCAA2B,CAAC;QACnC,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,gCAAgC,CAAC;QACpD,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+BAA+B;gBAC5C,QAAQ,EAAE,IAAI;gBACd,WAAW,EACP,4DAA4D;aACnE;YACD;gBACI,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,oCAAoC;aACpD;YACD;gBACI,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,KAAK;gBACf,WAAW,EACP,wDAAwD;oBACxD,eAAe;aACtB;SACJ,CAAC;QAEF,iBAAY,GAAkB;YAC1B,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACR,OAAO,EAAE;oBAEL,WAAW,EAAE,0BAA0B;iBAC1C;aACJ;SACJ,CAAC;QAEF,SAAI,GAA2B;YAC3B,OAAO,EAAE;gBACL,OAAO,EAAE,uBAAuB;gBAChC,GAAG,EAAE,UAAU;gBACf,MAAM,EAAE,KAA4B;gBACpC,OAAO,EAAE;oBACL,WAAW,EAAE,0BAA0B;oBACvC,MAAM,EAAE,kBAAkB;iBAC7B;aACJ;SACJ,CAAC;IACN,CAAC;CAAA;AA9DD,gCA8DC"}
@@ -1,5 +0,0 @@
1
- import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
- export declare class Fortnox implements INodeType {
3
- description: INodeTypeDescription;
4
- execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
- }
@@ -1,95 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Fortnox = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- const invoice_1 = require("./resources/invoice");
6
- const commons_1 = require("./commons");
7
- const customers_1 = require("./resources/customers");
8
- class Fortnox {
9
- constructor() {
10
- this.description = {
11
- displayName: 'Fortnox',
12
- name: 'fortnox',
13
- icon: 'file:fortnoxLogo.svg',
14
- group: ['transform'],
15
- version: 1,
16
- subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
17
- description: 'Consume the Fortnox API',
18
- defaults: {
19
- name: 'Fortnox',
20
- },
21
- inputs: ["main"],
22
- outputs: ["main"],
23
- credentials: [
24
- {
25
- name: commons_1.FORTNOX_API_CREDENTIAL_KEY,
26
- required: true,
27
- },
28
- ],
29
- properties: [
30
- {
31
- displayName: 'Resource',
32
- name: 'resource',
33
- type: 'options',
34
- noDataExpression: true,
35
- options: [
36
- {
37
- name: 'Customer',
38
- value: 'customer',
39
- description: 'Work with customers',
40
- },
41
- {
42
- name: 'Invoice',
43
- value: 'invoice',
44
- description: 'Work with invoices',
45
- },
46
- ],
47
- default: 'customer',
48
- },
49
- ...customers_1.customerProperties,
50
- ...invoice_1.invoiceProperties,
51
- ],
52
- };
53
- }
54
- async execute() {
55
- const items = this.getInputData();
56
- const returnData = [];
57
- let responseData;
58
- const resource = this.getNodeParameter('resource', 0);
59
- const operation = this.getNodeParameter('operation', 0);
60
- for (let i = 0; i < items.length; i++) {
61
- if (resource === 'customer') {
62
- responseData = await customers_1.customerOperations.call(this, {
63
- operation,
64
- i,
65
- });
66
- }
67
- else if (resource === 'invoice') {
68
- responseData = await invoice_1.invoiceOperations.call(this, {
69
- operation,
70
- i,
71
- });
72
- }
73
- else {
74
- const errorLog = `The resource "${resource}" is not supported!`;
75
- if (this.continueOnFail()) {
76
- returnData.push({
77
- error: errorLog,
78
- json: { error: errorLog },
79
- });
80
- continue;
81
- }
82
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), errorLog);
83
- }
84
- if (Array.isArray(responseData)) {
85
- returnData.push(...responseData);
86
- }
87
- else if (responseData !== undefined && responseData !== null) {
88
- returnData.push(responseData);
89
- }
90
- }
91
- return [this.helpers.returnJsonArray(returnData)];
92
- }
93
- }
94
- exports.Fortnox = Fortnox;
95
- //# sourceMappingURL=Fortnox.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Fortnox.node.js","sourceRoot":"","sources":["../../../nodes/fortnox/Fortnox.node.ts"],"names":[],"mappings":";;;AAAA,+CAUsB;AAEtB,iDAA2E;AAC3E,uCAAuD;AACvD,qDAA+E;AAE/E,MAAa,OAAO;IAApB;QACI,gBAAW,GAAyB;YAChC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,sBAAsB;YAC5B,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EACJ,8DAA8D;YAClE,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE;gBACN,IAAI,EAAE,SAAS;aAClB;YACD,MAAM,EAAE,QAAyB;YACjC,OAAO,EAAE,QAAyB;YAClC,WAAW,EAAE;gBACT;oBACI,IAAI,EAAE,oCAA0B;oBAChC,QAAQ,EAAE,IAAI;iBACjB;aACJ;YACD,UAAU,EAAE;gBACR;oBACI,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAA8B;oBACpC,gBAAgB,EAAE,IAAI;oBACtB,O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,EAAE,KAAK,EAAE,QAAQ,EAAE;qBAC5B,CAAC,CAAC;oBACH,SAAS;gBACb,CAAC;gBACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,CAAC;YAC3D,CAAC;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC;gBAC9B,UAAU,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC;YACrC,CAAC;iBAAM,IAAI,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;gBAC7D,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAClC,CAAC;QACL,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAA2B,CAAC,CAAC,CAAC;IACvE,CAAC;CACJ;AArFD,0BAqFC"}
@@ -1,18 +0,0 @@
1
- {
2
- "node": "n8n-nodes-base.fortnox",
3
- "nodeVersion": "1.0",
4
- "codexVersion": "1.0",
5
- "categories": ["Finance & Accounting"],
6
- "resources": {
7
- "credentialDocumentation": [
8
- {
9
- "url": "https://api.fortnox.se/developer/authorization"
10
- }
11
- ],
12
- "primaryDocumentation": [
13
- {
14
- "url": "https://api.fortnox.se/apidocs"
15
- }
16
- ]
17
- }
18
- }
@@ -1,5 +0,0 @@
1
- import { INodeType, INodeTypeDescription, ITriggerFunctions, ITriggerResponse } from 'n8n-workflow';
2
- export declare class FortnoxTrigger implements INodeType {
3
- description: INodeTypeDescription;
4
- trigger(this: ITriggerFunctions): Promise<ITriggerResponse>;
5
- }
@@ -1,155 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FortnoxTrigger = void 0;
7
- const n8n_workflow_1 = require("n8n-workflow");
8
- const ws_1 = __importDefault(require("ws"));
9
- const commons_1 = require("./commons");
10
- class FortnoxTrigger {
11
- constructor() {
12
- this.description = {
13
- displayName: 'Fortnox Trigger',
14
- name: 'fortnoxTrigger',
15
- icon: 'file:fortnoxLogo.svg',
16
- group: ['trigger'],
17
- version: 1,
18
- description: "Triggers workflows in real time by subscribing to Fortnox's WebSocket API for updates " +
19
- 'on selected topics like invoices or customers.',
20
- defaults: {
21
- name: 'Fortnox Trigger',
22
- },
23
- inputs: [],
24
- outputs: ["main"],
25
- credentials: [
26
- {
27
- name: commons_1.FORTNOX_API_CREDENTIAL_KEY,
28
- required: true,
29
- },
30
- ],
31
- properties: [
32
- {
33
- displayName: 'Include Child Tenants',
34
- name: 'includeChildTenants',
35
- type: 'boolean',
36
- required: true,
37
- default: false,
38
- },
39
- {
40
- displayName: 'Topics',
41
- name: 'topicCollection',
42
- required: true,
43
- type: 'fixedCollection',
44
- typeOptions: {
45
- multipleValues: true,
46
- },
47
- default: {},
48
- placeholder: 'Add Topics',
49
- description: 'Topics to subscribe to',
50
- options: [
51
- {
52
- name: 'topics',
53
- displayName: 'Topics',
54
- values: [
55
- {
56
- displayName: 'Topic',
57
- name: 'topic',
58
- type: 'options',
59
- required: true,
60
- default: 'customers',
61
- options: [
62
- {
63
- name: 'Customers',
64
- value: 'customers',
65
- },
66
- {
67
- name: 'Invoices',
68
- value: 'invoices',
69
- },
70
- {
71
- name: 'Orders',
72
- value: 'orders',
73
- },
74
- ],
75
- description: 'Topic to subscribe to',
76
- },
77
- {
78
- displayName: 'Offset',
79
- name: 'offset',
80
- type: 'string',
81
- default: '',
82
- description: 'Offset to supply in order to get events replayed up to 14 days back',
83
- },
84
- ],
85
- },
86
- ],
87
- },
88
- ],
89
- };
90
- }
91
- async trigger() {
92
- const includeChildTenants = this.getNodeParameter('includeChildTenants');
93
- const topicCollection = this.getNodeParameter('topicCollection', {});
94
- const credentials = await this.getCredentials('fortnoxApi');
95
- if (!credentials.clientSecret) {
96
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), "Credential 'Client Secret' must be provided for the node to work properly");
97
- }
98
- const socket = new ws_1.default('wss://ws.fortnox.se/topics-v1');
99
- const startSocket = async () => {
100
- const commands = {
101
- 'Add Tenants': 'add-tenants-v1',
102
- 'Add Topics': 'add-topics-v1',
103
- Subscribe: 'subscribe-v1',
104
- };
105
- socket.on('open', () => {
106
- socket.send(JSON.stringify({
107
- command: commands['Add Tenants'],
108
- includeChildTenants: includeChildTenants,
109
- clientSecret: credentials.clientSecret,
110
- accessTokens: [`Bearer ${credentials.token}`],
111
- }));
112
- const data = JSON.stringify({
113
- command: commands['Add Topics'],
114
- topics: topicCollection.topics,
115
- });
116
- socket.send(data);
117
- socket.send(JSON.stringify({
118
- command: commands['Subscribe'],
119
- }));
120
- });
121
- socket.on('message', (data) => {
122
- const message = JSON.parse(data);
123
- if (Object.values(commands).includes(message.response)) {
124
- if (message.result != 'ok') {
125
- this.emitError(new n8n_workflow_1.NodeOperationError(this.getNode(), `Unexpected response from Fortnox: ${JSON.stringify(message)}`));
126
- }
127
- }
128
- else {
129
- this.emit([this.helpers.returnJsonArray(message)]);
130
- }
131
- });
132
- socket.on('error', (error) => {
133
- this.emitError(new n8n_workflow_1.NodeOperationError(this.getNode(), 'Websocket Error: ' + error.message));
134
- });
135
- };
136
- const closeFunction = async () => {
137
- socket.close();
138
- };
139
- if (this.getMode() === 'manual') {
140
- async function manualTriggerFunction() {
141
- await startSocket();
142
- }
143
- return {
144
- closeFunction,
145
- manualTriggerFunction,
146
- };
147
- }
148
- else {
149
- await startSocket();
150
- return { closeFunction };
151
- }
152
- }
153
- }
154
- exports.FortnoxTrigger = FortnoxTrigger;
155
- //# sourceMappingURL=FortnoxTrigger.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FortnoxTrigger.node.js","sourceRoot":"","sources":["../../../nodes/fortnox/FortnoxTrigger.node.ts"],"names":[],"mappings":";;;;;;AAAA,+CAOsB;AACtB,4CAA2B;AAC3B,uCAAuD;AAWvD,MAAa,cAAc;I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F,IAAI,IAAI,CAAC,OAAO,EAAE,KAAK,QAAQ,EAAE,CAAC;YAC9B,KAAK,UAAU,qBAAqB;gBAChC,MAAM,WAAW,EAAE,CAAC;YACxB,CAAC;YACD,OAAO;gBACH,aAAa;gBACb,qBAAqB;aACxB,CAAC;QACN,CAAC;aAAM,CAAC;YACJ,MAAM,WAAW,EAAE,CAAC;YACpB,OAAO,EAAE,aAAa,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;CACJ;AA/KD,wCA+KC"}
@@ -1,18 +0,0 @@
1
- {
2
- "node": "n8n-nodes-base.fortnoxTrigger",
3
- "nodeVersion": "1.0",
4
- "codexVersion": "1.0",
5
- "categories": ["Finance & Accounting"],
6
- "resources": {
7
- "credentialDocumentation": [
8
- {
9
- "url": "https://api.fortnox.se/developer/authorization"
10
- }
11
- ],
12
- "primaryDocumentation": [
13
- {
14
- "url": "https://www.fortnox.se/developer/guides-and-good-to-know/websockets"
15
- }
16
- ]
17
- }
18
- }
@@ -1,25 +0,0 @@
1
- import { INodeProperties, INodePropertyTypeOptions } from 'n8n-workflow';
2
- export declare const FORTNOX_API_CREDENTIAL_KEY = "fortnoxApi";
3
- export type ParameterTypes = 'string' | 'boolean' | 'number';
4
- export type ParameterDefaultValueTypes = string | boolean | number;
5
- export type ParameterDefinition = [
6
- displayName: string,
7
- name: string,
8
- parameterType: ParameterTypes,
9
- defaultValue: ParameterDefaultValueTypes,
10
- typeOptions: INodePropertyTypeOptions
11
- ];
12
- export type OptionParameterDefinition = {
13
- displayName: string;
14
- name: string;
15
- parameters: Array<[string, string]>;
16
- };
17
- export type CollectionParameterDefinition = {
18
- displayName: string;
19
- name: string;
20
- parameters: ParameterDefinition[];
21
- multipleValues: boolean;
22
- };
23
- export declare const createParameter: (displayName: string, name: string, parameterType: ParameterTypes, defaultValue: ParameterDefaultValueTypes, typeOptions: INodePropertyTypeOptions) => INodeProperties;
24
- export declare function createOptionParameter(option: OptionParameterDefinition): INodeProperties;
25
- export declare function createCollectionParameter(collection: CollectionParameterDefinition): INodeProperties;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createParameter = exports.FORTNOX_API_CREDENTIAL_KEY = void 0;
4
- exports.createOptionParameter = createOptionParameter;
5
- exports.createCollectionParameter = createCollectionParameter;
6
- exports.FORTNOX_API_CREDENTIAL_KEY = 'fortnoxApi';
7
- const createParameter = (displayName, name, parameterType, defaultValue, typeOptions) => ({
8
- displayName: displayName,
9
- name: name,
10
- type: parameterType,
11
- default: defaultValue,
12
- typeOptions: typeOptions,
13
- });
14
- exports.createParameter = createParameter;
15
- function createOptionParameter(option) {
16
- const parameters = option.parameters.map(([parameterName, parameterValue]) => {
17
- return {
18
- name: parameterName,
19
- value: parameterValue,
20
- };
21
- });
22
- return {
23
- displayName: option.displayName,
24
- name: option.name,
25
- type: 'options',
26
- noDataExpression: true,
27
- options: parameters,
28
- default: parameters[0].value,
29
- };
30
- }
31
- function createCollectionParameter(collection) {
32
- const parameters = collection.parameters.map(([displayName, name, parameterType, defaultValue, typeOptions]) => (0, exports.createParameter)(displayName, name, parameterType, defaultValue, typeOptions));
33
- return {
34
- displayName: collection.displayName,
35
- typeOptions: {
36
- multipleValues: collection.multipleValues,
37
- },
38
- name: collection.name,
39
- default: {},
40
- type: 'collection',
41
- options: parameters,
42
- };
43
- }
44
- //# sourceMappingURL=commons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commons.js","sourceRoot":"","sources":["../../../nodes/fortnox/commons.ts"],"names":[],"mappings":";;;AA+CA,sDAoBC;AAED,8DAwBC;AAvFY,QAAA,0BAA0B,GAAG,YAAY,CAAC;AA2BhD,MAAM,eAAe,GAAG,CAC3B,WAAmB,EACnB,IAAY,EACZ,aAA6B,EAC7B,YAAwC,EACxC,WAAqC,EACtB,EAAE,CAAC,CAAC;IACnB,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,YAAY;IACrB,WAAW,EAAE,WAAW;CAC3B,CAAC,CAAC;AAZU,QAAA,eAAe,mBAYzB;AAEH,SAAgB,qBAAqB,CACjC,MAAiC;IAEjC,MAAM,UAAU,GAA2B,MAAM,CAAC,UAAU,CAAC,GAAG,CAC5D,CAAC,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,EAAE;QAChC,OAAO;YACH,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,cAAc;SACxB,CAAC;IACN,CAAC,CACJ,CAAC;IAEF,OAAO;QACH,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CACrC,UAAyC;IAEzC,MAAM,UAAU,GAAsB,UAAU,CAAC,UAAU,CAAC,GAAG,CAC3D,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,EAAE,CAC9D,IAAA,uBAAe,EACX,WAAW,EACX,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,WAAW,CACd,CACR,CAAC;IAEF,OAAO;QACH,WAAW,EAAE,UAAU,CAAC,WAAW;QACnC,WAAW,EAAE;YACT,cAAc,EAAE,UAAU,CAAC,cAAc;SAC5C;QACD,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,UAAU;KACtB,CAAC;AACN,CAAC"}
@@ -1,15 +0,0 @@
1
- <svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1550 1550" width="1550" height="1550">
2
- <title>fortnox-brand-symbol-svg</title>
3
- <style>
4
- .s0 { fill: #003824 }
5
- .s1 { fill: #007533 }
6
- .s2 { fill: #ffc200 }
7
- .s3 { fill: #00db33 }
8
- </style>
9
- <path class="s0" d="m774.4 302.8h243.3c17.6 0 27.1 9.5 27.1 27.1v129.8c0 17.5-9.4 26.9-27.1 26.9h-243.3c-56.7 0-94.5 37.9-94.5 94.6v177h337.8c17.6 0 27.1 9.5 27.1 27v129.8c0 17.6-9.4 27.1-27.1 27.1h-337.8v252.6c0 17.6-9.5 27.1-27.1 27.1h-135.1c-17.6 0-27.1-9.4-27.1-27.1v-608.1c0-168.9 114.9-283.9 283.8-283.9"/>
10
- <g>
11
- <path class="s1" d="m774.8 1549.9c-148.3 0-294.9-42.5-421.6-124.7-157-101.7-271.7-256.7-323.1-436.3-51-177.8-36.9-367.9 39.6-535.2 12.3-26.8 44-38.6 70.8-26.3 26.7 12.2 38.6 43.9 26.2 70.7-65.9 144.2-78 308.2-34.1 461.5 44.3 154.8 143.3 288.5 278.6 376.2 160.5 104.1 358.5 134.3 543.2 82.8 28.4-7.8 57.8 8.8 65.7 37.1 7.8 28.4-8.8 57.8-37.1 65.6-68.5 19.2-138.5 28.5-208.3 28.5z"/>
12
- <path class="s2" d="m1162.9 1436.8c-17.6 0-34.9-8.8-45-24.8-15.8-24.8-8.5-57.8 16.3-73.6 81.1-51.7 148.9-118.8 201.3-199.7 200.5-309.2 112.1-723.8-197-924.3-10.1-6.6-21.2-13.2-34.7-20.9-25.6-14.5-34.7-47-20.1-72.7 14.5-25.6 47-34.7 72.7-20.1 15.5 8.7 28.3 16.4 40.2 24.1 358.5 232.5 460.9 713.4 228.4 1071.9-60.8 93.8-139.4 171.7-233.5 231.6-8.9 5.7-18.8 8.4-28.6 8.4z"/>
13
- <path class="s3" d="m234 350.8c-12.5 0-25.2-4.3-35.2-13.2-22.2-19.5-24.3-53.2-4.8-75.3 186.3-211.8 473.6-305.2 749.4-243.7 28.8 6.4 46.9 34.9 40.5 63.7-6.4 28.7-34.9 46.8-63.7 40.4-237.9-53-485.5 27.6-646.3 210-10.5 11.9-25.2 18.1-39.9 18.1z"/>
14
- </g>
15
- </svg>
@@ -1,20 +0,0 @@
1
- import { IDataObject } from 'n8n-workflow';
2
- export interface ErrorInformationModel {
3
- code?: number;
4
- Code?: number;
5
- error?: number;
6
- Error?: number;
7
- message?: string;
8
- Message?: string;
9
- }
10
- export interface ErrorResponseModel extends IDataObject {
11
- ErrorInformation: ErrorInformationModel;
12
- }
13
- export interface MetaInformationModel {
14
- '@TotalResources': number;
15
- '@TotalPages': number;
16
- '@CurrentPage': number;
17
- }
18
- export interface ResponseModel extends IDataObject {
19
- MetaInformation: MetaInformationModel;
20
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../nodes/fortnox/model.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { INodeProperties } from 'n8n-workflow';
2
- export declare const filterParameters: INodeProperties[];
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterParameters = void 0;
4
- const commons_1 = require("../../commons");
5
- const optionParametersDefinitions = [
6
- {
7
- displayName: 'Activity',
8
- name: 'filter',
9
- parameters: [
10
- ['Active', 'active'],
11
- ['Inactive', 'inactive'],
12
- ],
13
- },
14
- ];
15
- const parametersDefinitions = [
16
- ['Customer Number', 'customernumber', 'string', '', {}],
17
- ['Name', 'name', 'string', '', {}],
18
- ['ZIP Code', 'zipcode', 'string', '', {}],
19
- ['City', 'city', 'string', '', {}],
20
- ['Email', 'email', 'string', '', {}],
21
- ['Phone', 'phone', 'string', '', {}],
22
- ['Organisation Number', 'organisationnumber', 'string', '', {}],
23
- ['GLN', 'gln', 'string', '', {}],
24
- ['GLN Delivery', 'glndelivery', 'string', '', {}],
25
- ['Last Modified', 'lastmodified', 'string', '', {}],
26
- ];
27
- exports.filterParameters = [
28
- ...optionParametersDefinitions.map((option) => (0, commons_1.createOptionParameter)(option)),
29
- ...parametersDefinitions.map(([displayName, name, filterType, defaultValue, typeOptions]) => (0, commons_1.createParameter)(displayName, name, filterType, defaultValue, typeOptions)),
30
- ];
31
- //# sourceMappingURL=filterParameters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterParameters.js","sourceRoot":"","sources":["../../../../../nodes/fortnox/resources/customers/filterParameters.ts"],"names":[],"mappings":";;;AACA,2CAKuB;AAEvB,MAAM,2BAA2B,GAAgC;IAC7D;QACI,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,CAAC,QAAQ,EAAE,QAAQ,CAAC;YACpB,CAAC,UAAU,EAAE,UAAU,CAAC;SAC3B;KACJ;CACJ,CAAC;AAEF,MAAM,qBAAqB,GAA0B;IACjD,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACvD,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IAClC,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACzC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IAClC,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACpC,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACpC,CAAC,qBAAqB,EAAE,oBAAoB,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IAC/D,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IAChC,CAAC,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;IACjD,CAAC,eAAe,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC;CACtD,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAC/C,GAAG,2BAA2B,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,IAAA,+BAAqB,EAAC,MAAM,CAAC,CAChC;IACD,GAAG,qBAAqB,CAAC,GAAG,CACxB,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,EAAE,CAC3D,IAAA,yBAAe,EACX,WAAW,EACX,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,WAAW,CACd,CACR;CACJ,CAAC"}
@@ -1,20 +0,0 @@
1
- import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- export declare const customerProperties: INodeProperties[];
3
- export declare function customerOperations(this: IExecuteFunctions, { operation, i }: {
4
- operation: string;
5
- i: number;
6
- }): Promise<{
7
- success: false;
8
- error: string;
9
- status?: number;
10
- metadata?: Record<string, unknown>;
11
- } | {
12
- success: true;
13
- data: import("./model").CustomerResponse;
14
- } | {
15
- success: true;
16
- data: import("./model").CustomersResponse;
17
- } | {
18
- success: true;
19
- data: null;
20
- } | null>;