@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,220 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.properties = exports.description = void 0;
4
- exports.execute = execute;
5
- const transform_1 = require("../transform");
6
- const commons_1 = require("../../../commons");
7
- exports.description = {
8
- name: 'Transform ERP Data',
9
- value: 'transformErpData',
10
- description: 'Transform and map ERP data into the structure required by Lime CRM',
11
- action: 'Transform',
12
- };
13
- const defaults = {
14
- invoice: [
15
- 'invoice_number',
16
- 'company',
17
- 'customerid',
18
- 'customer_reference',
19
- 'coworker',
20
- 'invoice_type',
21
- 'invoice_date',
22
- 'invoice_expires',
23
- 'currency',
24
- 'conversionrate',
25
- 'invoice_sum',
26
- 'invoice_vat',
27
- 'invoice_total_sum',
28
- 'invoice_balance',
29
- 'paid',
30
- 'paid_date',
31
- 'invoice_shredded',
32
- ],
33
- invoicerow: [
34
- 'company',
35
- 'invoice',
36
- 'item',
37
- 'description',
38
- 'units',
39
- 'row_margin',
40
- 'row_value',
41
- 'rowid',
42
- ],
43
- company: ['erp_id'],
44
- coworker: ['name'],
45
- };
46
- function getLimeTypesPropertiesMapping() {
47
- return Object.keys(defaults).map((key) => ({
48
- displayName: key,
49
- name: key,
50
- type: 'fixedCollection',
51
- typeOptions: {
52
- multipleValues: true,
53
- },
54
- default: {},
55
- options: getPropertiesMapping(key),
56
- }));
57
- }
58
- function getPropertiesMapping(limeType) {
59
- var _a;
60
- return [
61
- {
62
- displayName: 'Properties',
63
- name: 'properties',
64
- values: [
65
- {
66
- displayName: 'Property',
67
- name: 'defaultPropertyName',
68
- type: 'options',
69
- default: '',
70
- description: 'Name of the property',
71
- options: (_a = defaults[limeType]) === null || _a === void 0 ? void 0 : _a.map((property) => ({
72
- name: property,
73
- value: property,
74
- })),
75
- },
76
- {
77
- displayName: 'Custom Property Name',
78
- name: 'customPropertyName',
79
- type: 'string',
80
- default: '',
81
- description: 'Custom name of the property in your Lime CRM',
82
- },
83
- ],
84
- },
85
- ];
86
- }
87
- exports.properties = [
88
- {
89
- displayName: 'ERP System',
90
- name: 'erpSystem',
91
- type: 'options',
92
- options: [
93
- {
94
- name: 'Fortnox',
95
- value: 'fortnox',
96
- },
97
- ],
98
- required: true,
99
- default: '',
100
- description: '',
101
- displayOptions: {
102
- show: {
103
- resource: [commons_1.ERP_CONNECTOR_RESOURCE],
104
- operation: ['transformErpData'],
105
- },
106
- },
107
- },
108
- {
109
- displayName: 'Entity',
110
- name: 'entity',
111
- type: 'options',
112
- typeOptions: {
113
- loadOptionsMethod: 'getEntitiesForErpSystem',
114
- loadOptionsDependsOn: ['erpSystem'],
115
- },
116
- required: true,
117
- default: '',
118
- description: 'Type of entity to sync',
119
- displayOptions: {
120
- show: {
121
- resource: [commons_1.ERP_CONNECTOR_RESOURCE],
122
- operation: ['transformErpData'],
123
- },
124
- },
125
- },
126
- {
127
- displayName: 'Search Parameters',
128
- name: 'searchParameters',
129
- type: 'collection',
130
- placeholder: 'Add search criteria',
131
- default: {},
132
- options: [
133
- {
134
- displayName: 'Search Property',
135
- name: 'property',
136
- type: 'string',
137
- default: '',
138
- description: 'Property to search the object by',
139
- },
140
- {
141
- displayName: 'Search Value',
142
- name: 'value',
143
- type: 'string',
144
- default: '',
145
- description: 'Value of the search property',
146
- },
147
- {
148
- displayName: 'Create',
149
- name: 'create',
150
- type: 'boolean',
151
- default: true,
152
- description: 'Whether to create a new object',
153
- },
154
- ],
155
- displayOptions: {
156
- show: {
157
- resource: [commons_1.ERP_CONNECTOR_RESOURCE],
158
- operation: ['transformErpData'],
159
- },
160
- },
161
- },
162
- {
163
- displayName: 'Custom Lime Type Name',
164
- name: 'customLimeTypeNames',
165
- type: 'collection',
166
- default: {},
167
- description: 'Optional custom name for the Lime CRM types.',
168
- displayOptions: {
169
- show: {
170
- resource: [commons_1.ERP_CONNECTOR_RESOURCE],
171
- operation: ['transformErpData'],
172
- },
173
- },
174
- options: [
175
- {
176
- displayName: 'Invoice',
177
- name: 'invoice',
178
- type: 'string',
179
- default: 'invoice',
180
- },
181
- {
182
- displayName: 'Invoice Row',
183
- name: 'invoicerow',
184
- type: 'string',
185
- default: 'invoicerow',
186
- },
187
- ],
188
- },
189
- {
190
- displayName: 'Custom Properties Mapping',
191
- name: 'customPropertiesMapping',
192
- type: 'collection',
193
- default: {},
194
- displayOptions: {
195
- show: {
196
- resource: [commons_1.ERP_CONNECTOR_RESOURCE],
197
- operation: ['transformErpData'],
198
- },
199
- },
200
- description: 'Select Lime Type',
201
- options: getLimeTypesPropertiesMapping(),
202
- },
203
- ];
204
- async function execute(i) {
205
- const data = this.getInputData(i);
206
- const erpSystem = this.getNodeParameter('erpSystem', i);
207
- const entity = this.getNodeParameter('entity', i);
208
- const searchParameters = this.getNodeParameter('searchParameters', i);
209
- const customLimeTypeNames = this.getNodeParameter('customLimeTypeNames', i);
210
- const customPropertiesMapping = this.getNodeParameter('customPropertiesMapping', i);
211
- const customPropertiesNames = Object.fromEntries(Object.entries(customPropertiesMapping).map(([limeType, { properties }]) => [
212
- limeType,
213
- Object.fromEntries(properties.map(({ defaultPropertyName, customPropertyName }) => [
214
- defaultPropertyName,
215
- customPropertyName,
216
- ])),
217
- ]));
218
- return (0, transform_1.transform)(erpSystem, entity, data[0].json, searchParameters, customLimeTypeNames, customPropertiesNames);
219
- }
220
- //# sourceMappingURL=transform.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/erpConnector/operations/transform.operation.ts"],"names":[],"mappings":";;;AAuOA,0BA0CC;AA3QD,4CAOsB;AACtB,8CAA0D;AAE7C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,oBAAoB;IAC1B,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACP,oEAAoE;IACxE,MAAM,EAAE,WAAW;CACtB,CAAC;AAeF,MAAM,QAAQ,GAAkC;IAC5C,OAAO,EAAE;QACL,gBAAgB;QAChB,SAAS;QACT,YAAY;QACZ,oBAAoB;QACpB,UAAU;QACV,cAAc;QACd,cAAc;QACd,iBAAiB;QACjB,UAAU;QACV,gBAAgB;QAChB,aAAa;QACb,aAAa;QACb,mBAAmB;QACnB,iBAAiB;QACjB,MAAM;QACN,WAAW;QACX,kBAAkB;KACrB;IACD,UAAU,EAAE;QACR,SAAS;QACT,SAAS;QACT,MAAM;QACN,aAAa;QACb,OAAO;QACP,YAAY;QACZ,WAAW;QACX,OAAO;KACV;IACD,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,QAAQ,EAAE,CAAC,MAAM,CAAC;CACrB,CAAC;AAEF,SAAS,6BAA6B;IAClC,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACvC,WAAW,EAAE,GAAG;QAChB,IAAI,EAAE,GAAG;QACT,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACT,cAAc,EAAE,IAAI;SACvB;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,oBAAoB,CAAC,GAAa,CAAC;KAC/C,CAAC,CAAC,CAAC;AACR,CAAC;AAED,SAAS,oBAAoB,CAAC,QAAgB;;IAC1C,OAAO;QACH;YACI,WAAW,EAAE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rB,CACJ,CACJ;KACJ,CACJ,CACJ,CAAC;IAEF,OAAO,IAAA,qBAAS,EACZ,SAAS,EACT,MAAM,EACN,IAAI,CAAC,CAAC,CAAC,CAAC,IAAe,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,CACxB,CAAC;AACN,CAAC"}
@@ -1,15 +0,0 @@
1
- export type Entity = 'invoice' | 'invoicerow' | 'company' | 'coworker';
2
- export type ErpSystem = 'fortnox';
3
- export type ErpData = Record<string, unknown>;
4
- export type CustomLimeTypeNames = Partial<Record<Entity, string>>;
5
- export type CustomPropertiesNames = Partial<Record<Entity, Record<string, string>>>;
6
- export type SearchParameters = {
7
- property?: string;
8
- value?: string | number | boolean;
9
- create?: boolean;
10
- };
11
- export type LimeCrmObjectData = {
12
- [key: string]: LimeCrmData | SearchParameters | string | number | boolean | null;
13
- };
14
- export type LimeCrmData = LimeCrmObjectData[];
15
- export declare function transform(erpSystem: ErpSystem, entity: Entity, data: ErpData, searchParameters: SearchParameters, customLimeTypeNames?: CustomLimeTypeNames, customPropertiesNames?: CustomPropertiesNames): LimeCrmData;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.transform = transform;
4
- const transformers_1 = require("./transformers");
5
- function transform(erpSystem, entity, data, searchParameters, customLimeTypeNames, customPropertiesNames) {
6
- if (erpSystem === 'fortnox') {
7
- return new transformers_1.FortnoxTransformer().transform(entity, data, searchParameters, customLimeTypeNames, customPropertiesNames);
8
- }
9
- throw new Error(`Unsupported ERP system: ${erpSystem}`);
10
- }
11
- //# sourceMappingURL=transform.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../../../nodes/lime-crm/resources/erpConnector/transform.ts"],"names":[],"mappings":";;AA8BA,8BAkBC;AAhDD,iDAAoD;AA8BpD,SAAgB,SAAS,CACrB,SAAoB,EACpB,MAAc,EACd,IAAa,EACb,gBAAkC,EAClC,mBAAyC,EACzC,qBAA6C;IAE7C,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,IAAI,iCAAkB,EAAE,CAAC,SAAS,CACrC,MAAM,EACN,IAAI,EACJ,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,CACxB,CAAC;IACN,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,2BAA2B,SAAS,EAAE,CAAC,CAAC;AAC5D,CAAC"}
@@ -1,4 +0,0 @@
1
- import { CustomLimeTypeNames, CustomPropertiesNames, Entity, ErpData, LimeCrmData, SearchParameters } from '../transform';
2
- export declare abstract class BaseTransformer {
3
- abstract transform(entity: Entity, data: ErpData, searchParameters: SearchParameters, customLimeTypeNames?: CustomLimeTypeNames, customPropertiesNames?: CustomPropertiesNames): LimeCrmData;
4
- }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseTransformer = void 0;
4
- class BaseTransformer {
5
- }
6
- exports.BaseTransformer = BaseTransformer;
7
- //# sourceMappingURL=baseTransformer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseTransformer.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.ts"],"names":[],"mappings":";;;AASA,MAAsB,eAAe;CAQpC;AARD,0CAQC"}
@@ -1,37 +0,0 @@
1
- import { BaseTransformer } from './baseTransformer';
2
- import { CustomLimeTypeNames, CustomPropertiesNames, Entity, ErpData, LimeCrmData, SearchParameters } from '../transform';
3
- export interface FortnoxInvoiceRowData extends ErpData {
4
- ArticleNumber: string;
5
- Description: string;
6
- DeliveredQuantity: string;
7
- ContributionPercent: string;
8
- Total: number;
9
- RowId: number;
10
- }
11
- export interface FortnoxInvoiceData extends ErpData {
12
- DocumentNumber: string;
13
- InvoiceType: string;
14
- InvoiceDate: string;
15
- DueDate: string;
16
- Currency: string;
17
- Net: number;
18
- TotalVAT: number;
19
- Total: number;
20
- Balance: number;
21
- FinalPayDate: string | null;
22
- CustomerNumber: string;
23
- YourReference: string;
24
- OurReference: string;
25
- InvoiceRows: FortnoxInvoiceRowData[];
26
- }
27
- export declare class FortnoxTransformer extends BaseTransformer {
28
- readonly INVOICE_MAPPING: {
29
- [key: string]: (_data: FortnoxInvoiceData, _customPropertiesNames?: CustomPropertiesNames) => string | number | boolean | object | null;
30
- };
31
- readonly INVOICE_ROW_MAPPING: {
32
- [key: string]: (_data: FortnoxInvoiceRowData, _customPropertiesNames?: CustomPropertiesNames) => string | number | boolean | object;
33
- };
34
- transform(entity: Entity, data: ErpData, searchParameters: SearchParameters, customLimeTypeNames?: CustomLimeTypeNames, customPropertiesNames?: CustomPropertiesNames): LimeCrmData;
35
- protected _transformInvoice(data: FortnoxInvoiceData, searchParameters: SearchParameters, customLimeTypeNames?: CustomLimeTypeNames, customPropertiesNames?: CustomPropertiesNames): LimeCrmData;
36
- protected _transformInvoiceRow(data: FortnoxInvoiceRowData, searchParameters: SearchParameters, customLimeTypeNames?: CustomLimeTypeNames, customPropertiesNames?: CustomPropertiesNames): LimeCrmData;
37
- }
@@ -1,124 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FortnoxTransformer = void 0;
4
- const baseTransformer_1 = require("./baseTransformer");
5
- class FortnoxTransformer extends baseTransformer_1.BaseTransformer {
6
- constructor() {
7
- super(...arguments);
8
- this.INVOICE_MAPPING = {
9
- invoice_number: (_data, _customPropertiesNames) => _data['DocumentNumber'],
10
- invoice_type: (_data, _customPropertiesNames) => _data['InvoiceType'],
11
- invoice_date: (_data, _customPropertiesNames) => _data['InvoiceDate'],
12
- invoice_expires: (_data, _customPropertiesNames) => _data['DueDate'],
13
- currency: (_data, _customPropertiesNames) => _data['Currency'],
14
- invoice_sum: (_data, _customPropertiesNames) => _data['Net'],
15
- invoice_vat: (_data, _customPropertiesNames) => _data['TotalVAT'],
16
- invoice_total_sum: (_data, _customPropertiesNames) => _data['Total'],
17
- invoice_balance: (_data, _customPropertiesNames) => _data['Balance'],
18
- paid: (_data, _customPropertiesNames) => _data['Balance'] === 0,
19
- paid_date: (_data, _customPropertiesNames) => _data['FinalPayDate'],
20
- invoice_shredded: (_data, _customPropertiesNames) => false,
21
- customerid: (_data, _customPropertiesNames) => _data['CustomerNumber'],
22
- customer_reference: (_data, _customPropertiesNames) => _data['YourReference'],
23
- company: (_data, _customPropertiesNames) => {
24
- var _a;
25
- return ({
26
- _search: {
27
- property: ((_a = _customPropertiesNames === null || _customPropertiesNames === void 0 ? void 0 : _customPropertiesNames.company) === null || _a === void 0 ? void 0 : _a['erp_id']) || 'erp_id',
28
- value: _data['CustomerNumber'],
29
- create: false,
30
- },
31
- });
32
- },
33
- coworker: (_data, _customPropertiesNames) => {
34
- var _a;
35
- return ({
36
- _search: {
37
- property: ((_a = _customPropertiesNames === null || _customPropertiesNames === void 0 ? void 0 : _customPropertiesNames.coworker) === null || _a === void 0 ? void 0 : _a['name']) || 'name',
38
- value: _data['OurReference'],
39
- create: false,
40
- },
41
- });
42
- },
43
- };
44
- this.INVOICE_ROW_MAPPING = {
45
- company: (_data, _customPropertiesNames) => {
46
- var _a;
47
- return ({
48
- _search: {
49
- property: ((_a = _customPropertiesNames === null || _customPropertiesNames === void 0 ? void 0 : _customPropertiesNames.company) === null || _a === void 0 ? void 0 : _a['erp_id']) || 'erp_id',
50
- value: _data['CustomerNumber'],
51
- create: false,
52
- },
53
- });
54
- },
55
- invoice: (_data, _customPropertiesNames) => {
56
- var _a;
57
- return ({
58
- _search: {
59
- property: ((_a = _customPropertiesNames === null || _customPropertiesNames === void 0 ? void 0 : _customPropertiesNames.invoice) === null || _a === void 0 ? void 0 : _a['invoice_number']) ||
60
- 'invoice_number',
61
- value: _data['DocumentNumber'],
62
- create: false,
63
- },
64
- });
65
- },
66
- item: (_data, _customPropertiesNames) => _data['ArticleNumber'],
67
- description: (_data, _customPropertiesNames) => _data['Description'],
68
- units: (_data, _customPropertiesNames) => +_data['DeliveredQuantity'],
69
- row_margin: (_data, _customPropertiesNames) => +_data['ContributionPercent'],
70
- row_value: (_data, _customPropertiesNames) => +_data['Total'],
71
- rowid: (_data, _customPropertiesNames) => _data['RowId'],
72
- };
73
- }
74
- transform(entity, data, searchParameters, customLimeTypeNames, customPropertiesNames) {
75
- if (entity === 'invoice') {
76
- {
77
- return this._transformInvoice(data, searchParameters, customLimeTypeNames, customPropertiesNames);
78
- }
79
- }
80
- else {
81
- {
82
- throw new Error(`Unsupported entity type: ${entity}`);
83
- }
84
- }
85
- }
86
- _transformInvoice(data, searchParameters, customLimeTypeNames, customPropertiesNames) {
87
- var _a, _b;
88
- const limeCrmData = [];
89
- const invoice = {
90
- _limetype: (customLimeTypeNames === null || customLimeTypeNames === void 0 ? void 0 : customLimeTypeNames.invoice) || 'invoice',
91
- _search: searchParameters,
92
- };
93
- for (const [limeCrmKey, getLimeCrmValue] of Object.entries(this.INVOICE_MAPPING)) {
94
- invoice[((_a = customPropertiesNames === null || customPropertiesNames === void 0 ? void 0 : customPropertiesNames.invoice) === null || _a === void 0 ? void 0 : _a[limeCrmKey]) || limeCrmKey] = getLimeCrmValue(data, customPropertiesNames);
95
- }
96
- limeCrmData.push(invoice);
97
- for (const invoiceRow of data['InvoiceRows']) {
98
- invoiceRow['DocumentNumber'] = data['DocumentNumber'];
99
- invoiceRow['CustomerNumber'] = data['CustomerNumber'];
100
- limeCrmData.push(...this._transformInvoiceRow(invoiceRow, {
101
- property: ((_b = customPropertiesNames === null || customPropertiesNames === void 0 ? void 0 : customPropertiesNames.invoicerow) === null || _b === void 0 ? void 0 : _b['rowid']) ||
102
- 'rowid',
103
- value: invoiceRow['RowId'],
104
- create: true,
105
- }, customLimeTypeNames, customPropertiesNames));
106
- }
107
- return limeCrmData;
108
- }
109
- _transformInvoiceRow(data, searchParameters, customLimeTypeNames, customPropertiesNames) {
110
- var _a;
111
- const limeCrmData = [];
112
- const invoiceRow = {
113
- _limetype: (customLimeTypeNames === null || customLimeTypeNames === void 0 ? void 0 : customLimeTypeNames.invoicerow) || 'invoicerow',
114
- _search: searchParameters,
115
- };
116
- for (const [limeCrmKey, getLimeCrmValue] of Object.entries(this.INVOICE_ROW_MAPPING)) {
117
- invoiceRow[((_a = customPropertiesNames === null || customPropertiesNames === void 0 ? void 0 : customPropertiesNames.invoicerow) === null || _a === void 0 ? void 0 : _a[limeCrmKey]) || limeCrmKey] = getLimeCrmValue(data, customPropertiesNames);
118
- }
119
- limeCrmData.push(invoiceRow);
120
- return limeCrmData;
121
- }
122
- }
123
- exports.FortnoxTransformer = FortnoxTransformer;
124
- //# sourceMappingURL=fortnox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fortnox.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/erpConnector/transformers/fortnox.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAqCpD,MAAa,kBAAmB,SAAQ,iCAAe;IAAvD;;QACa,oBAAe,GAKpB;YACA,cAAc,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAC9C,KAAK,CAAC,gBAAgB,CAAC;YAC3B,YAAY,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;YACrE,YAAY,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;YACrE,eAAe,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;YACpE,QAAQ,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC9D,WAAW,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YAC5D,WAAW,EAAE,CAAC,KAAK,EAAE,sBAAsB,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YACjE,iBAAiB,EAAE,CAAC,KAAK,EAAE,sBAAs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AAoB,CACxB,UAAU,EACV;gBACI,QAAQ,EACJ,CAAA,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,UAAU,0CAAG,OAAO,CAAC;oBAC5C,OAAO;gBACX,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;gBAC1B,MAAM,EAAE,IAAI;aACf,EACD,mBAAmB,EACnB,qBAAqB,CACxB,CACJ,CAAC;QACN,CAAC;QAED,OAAO,WAAW,CAAC;IACvB,CAAC;IAES,oBAAoB,CAC1B,IAA2B,EAC3B,gBAAkC,EAClC,mBAAyC,EACzC,qBAA6C;;QAE7C,MAAM,WAAW,GAAgB,EAAE,CAAC;QAEpC,MAAM,UAAU,GAAsB;YAClC,SAAS,EAAE,CAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,UAAU,KAAI,YAAY;YAC1D,OAAO,EAAE,gBAAgB;SAC5B,CAAC;QAEF,KAAK,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,IAAI,MAAM,CAAC,OAAO,CACtD,IAAI,CAAC,mBAAmB,CAC3B,EAAE,CAAC;YACA,UAAU,CACN,CAAA,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,UAAU,0CAAG,UAAU,CAAC,KAAI,UAAU,CAChE,GAAG,eAAe,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;QACrD,CAAC;QACD,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAE7B,OAAO,WAAW,CAAC;IACvB,CAAC;CACJ;AAnKD,gDAmKC"}
@@ -1 +0,0 @@
1
- export { FortnoxTransformer } from './fortnox';
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FortnoxTransformer = void 0;
4
- var fortnox_1 = require("./fortnox");
5
- Object.defineProperty(exports, "FortnoxTransformer", { enumerable: true, get: function () { return fortnox_1.FortnoxTransformer; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/erpConnector/transformers/index.ts"],"names":[],"mappings":";;;AAAA,qCAA+C;AAAtC,6GAAA,kBAAkB,OAAA"}
@@ -1,14 +0,0 @@
1
- import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- export declare const limeObjectFields: INodeProperties[];
3
- export declare function limeObjectOperations(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: unknown;
14
- } | null>;
@@ -1,88 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.limeObjectFields = void 0;
37
- exports.limeObjectOperations = limeObjectOperations;
38
- const create = __importStar(require("./operations/create.operation"));
39
- const get = __importStar(require("./operations/get.operation"));
40
- const update = __importStar(require("./operations/update.operation"));
41
- const delete_ = __importStar(require("./operations/delete.operation"));
42
- const fetchMany = __importStar(require("./operations/fetchMany.operation"));
43
- const commons_1 = require("../../commons");
44
- exports.limeObjectFields = [
45
- {
46
- displayName: 'Operation',
47
- name: 'operation',
48
- type: 'options',
49
- noDataExpression: true,
50
- displayOptions: {
51
- show: {
52
- resource: [commons_1.LIMEOBJECT_RESOURCE],
53
- },
54
- },
55
- options: [
56
- create.description,
57
- get.description,
58
- update.description,
59
- delete_.description,
60
- fetchMany.description,
61
- ],
62
- default: 'fetchMany',
63
- },
64
- ...create.properties,
65
- ...get.properties,
66
- ...update.properties,
67
- ...delete_.properties,
68
- ...fetchMany.properties,
69
- ];
70
- async function limeObjectOperations({ operation, i }) {
71
- if (operation === 'create') {
72
- return await create.execute.call(this, i);
73
- }
74
- if (operation === 'get') {
75
- return await get.execute.call(this, i);
76
- }
77
- if (operation === 'update') {
78
- return await update.execute.call(this, i);
79
- }
80
- if (operation === 'delete') {
81
- return await delete_.execute.call(this, i);
82
- }
83
- if (operation === 'fetchMany') {
84
- return await fetchMany.execute.call(this, i);
85
- }
86
- return null;
87
- }
88
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/lime-crm/resources/limeObject/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,oDAqBC;AAzDD,sEAAwD;AACxD,gEAAkD;AAClD,sEAAwD;AACxD,uEAAyD;AACzD,4EAA8D;AAE9D,2CAAoD;AAEvC,QAAA,gBAAgB,GAAsB;IAC/C;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,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IAAI,CAAC;AAChB,CAAC"}
@@ -1,9 +0,0 @@
1
- import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- export declare const description: {
3
- name: string;
4
- value: string;
5
- description: string;
6
- action: string;
7
- };
8
- export declare const properties: INodeProperties[];
9
- export declare function execute(this: IExecuteFunctions, i: number): Promise<import("../../../../nodeResponse").NodeResponse<unknown>>;