@limetech/n8n-nodes-lime 0.5.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 (303) 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/.releaserc.json +2 -1
  5. package/CHANGELOG.md +122 -0
  6. package/README.md +1 -1
  7. package/credentials/LimeCrmApi.credentials.ts +38 -1
  8. package/credentials/index.ts +2 -0
  9. package/eslint.config.mjs +2 -1
  10. package/knip.json +9 -0
  11. package/nodes/fortnox/index.ts +6 -0
  12. package/nodes/fortnox/resources/customers/index.ts +18 -22
  13. package/nodes/fortnox/resources/customers/operations/create.operation.ts +12 -8
  14. package/nodes/fortnox/resources/customers/operations/delete.operation.ts +10 -15
  15. package/nodes/fortnox/resources/customers/operations/get.operation.ts +10 -15
  16. package/nodes/fortnox/resources/customers/operations/getAll.operation.ts +1 -2
  17. package/nodes/fortnox/resources/customers/operations/index.ts +5 -0
  18. package/nodes/fortnox/resources/customers/operations/update.operation.ts +30 -30
  19. package/nodes/fortnox/resources/invoice/index.ts +16 -18
  20. package/nodes/fortnox/resources/invoice/model.ts +0 -4
  21. package/nodes/fortnox/resources/invoice/operations/create.operation.ts +1 -2
  22. package/nodes/fortnox/resources/invoice/operations/get.operation.ts +10 -15
  23. package/nodes/fortnox/resources/invoice/operations/getAll.operation.ts +1 -2
  24. package/nodes/fortnox/resources/invoice/operations/index.ts +4 -0
  25. package/nodes/fortnox/resources/invoice/operations/update.operation.ts +11 -16
  26. package/nodes/fortnox/transport/index.ts +14 -11
  27. package/nodes/index.ts +4 -0
  28. package/nodes/lime-crm/LimeCrmNode.node.ts +81 -11
  29. package/nodes/lime-crm/LimeCrmTrigger.node.ts +70 -30
  30. package/nodes/lime-crm/index.ts +9 -0
  31. package/nodes/lime-crm/methods/getLimetypeProperties.ts +51 -8
  32. package/nodes/lime-crm/methods/getLimetypes.ts +14 -9
  33. package/nodes/lime-crm/methods/index.ts +1 -1
  34. package/nodes/lime-crm/models/constants.ts +73 -0
  35. package/nodes/lime-crm/models/index.ts +21 -0
  36. package/nodes/lime-crm/models/limeobject.ts +13 -0
  37. package/nodes/lime-crm/models/limetype.ts +47 -0
  38. package/nodes/lime-crm/models/propertyTypes.ts +13 -0
  39. package/nodes/lime-crm/models/users.ts +46 -0
  40. package/nodes/lime-crm/models/webhook.ts +61 -0
  41. package/nodes/lime-crm/resources/admin/index.ts +89 -0
  42. package/nodes/lime-crm/resources/admin/operations/getManyUsers.operation.ts +166 -0
  43. package/nodes/lime-crm/resources/admin/operations/getSingleUser.operation.ts +113 -0
  44. package/nodes/lime-crm/resources/admin/operations/index.ts +8 -0
  45. package/nodes/lime-crm/resources/data/index.ts +68 -31
  46. package/nodes/lime-crm/resources/data/operations/{createSingleObject.ts → createSingleObject.operation.ts} +82 -26
  47. package/nodes/lime-crm/resources/data/operations/{deleteSingleObject.ts → deleteSingleObject.operation.ts} +32 -4
  48. package/nodes/lime-crm/resources/data/operations/{getManyObjects.ts → getManyObjects.operation.ts} +191 -48
  49. package/nodes/lime-crm/resources/data/operations/{getSingleFile.ts → getSingleFile.operation.ts} +36 -12
  50. package/nodes/lime-crm/resources/data/operations/{getSingleObject.ts → getSingleObject.operation.ts} +39 -6
  51. package/nodes/lime-crm/resources/data/operations/index.ts +24 -0
  52. package/nodes/lime-crm/resources/data/operations/updateSingleObject.operation.ts +55 -17
  53. package/nodes/lime-crm/resources/metadata/index.ts +56 -16
  54. package/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.ts +15 -5
  55. package/nodes/lime-crm/resources/metadata/operations/{getSingleFileMetadata.ts → getSingleFileMetadata.operation.ts} +31 -14
  56. package/nodes/lime-crm/resources/metadata/operations/{getSingleLimetype.ts → getSingleLimetype.operation.ts} +23 -1
  57. package/nodes/lime-crm/resources/metadata/operations/index.ts +12 -0
  58. package/nodes/lime-crm/transport/commons.ts +86 -28
  59. package/nodes/lime-crm/transport/files.ts +149 -84
  60. package/nodes/lime-crm/transport/index.ts +35 -17
  61. package/nodes/lime-crm/transport/limeQuery.ts +42 -6
  62. package/nodes/lime-crm/transport/limeobjects.ts +102 -179
  63. package/nodes/lime-crm/transport/limetypes.ts +126 -70
  64. package/nodes/lime-crm/transport/users.ts +264 -0
  65. package/nodes/lime-crm/transport/webhooks.ts +96 -37
  66. package/nodes/lime-crm/{commons → utils}/files.ts +75 -39
  67. package/nodes/lime-crm/utils/hmac.ts +35 -0
  68. package/nodes/lime-crm/utils/index.ts +10 -0
  69. package/nodes/lime-crm/utils/propertyAdapters.ts +75 -0
  70. package/nodes/lime-crm/utils/webhook.ts +81 -0
  71. package/nodes/modules.ts +44 -0
  72. package/nodes/response.ts +16 -0
  73. package/package.json +18 -27
  74. package/tests/nodes/lime-crm/utils.spec.ts +238 -0
  75. package/typedoc.css +9 -0
  76. package/typedoc.json +19 -0
  77. package/.dockerignore +0 -1
  78. package/Dockerfile +0 -21
  79. package/dist/credentials/FortnoxApi.credentials.d.ts +0 -9
  80. package/dist/credentials/FortnoxApi.credentials.js +0 -57
  81. package/dist/credentials/FortnoxApi.credentials.js.map +0 -1
  82. package/dist/credentials/LimeCrmApi.credentials.d.ts +0 -9
  83. package/dist/credentials/LimeCrmApi.credentials.js +0 -66
  84. package/dist/credentials/LimeCrmApi.credentials.js.map +0 -1
  85. package/dist/nodes/fortnox/Fortnox.node.d.ts +0 -5
  86. package/dist/nodes/fortnox/Fortnox.node.js +0 -95
  87. package/dist/nodes/fortnox/Fortnox.node.js.map +0 -1
  88. package/dist/nodes/fortnox/Fortnox.node.json +0 -18
  89. package/dist/nodes/fortnox/FortnoxTrigger.node.d.ts +0 -5
  90. package/dist/nodes/fortnox/FortnoxTrigger.node.js +0 -155
  91. package/dist/nodes/fortnox/FortnoxTrigger.node.js.map +0 -1
  92. package/dist/nodes/fortnox/FortnoxTrigger.node.json +0 -18
  93. package/dist/nodes/fortnox/commons.d.ts +0 -25
  94. package/dist/nodes/fortnox/commons.js +0 -44
  95. package/dist/nodes/fortnox/commons.js.map +0 -1
  96. package/dist/nodes/fortnox/fortnoxLogo.svg +0 -15
  97. package/dist/nodes/fortnox/model.d.ts +0 -20
  98. package/dist/nodes/fortnox/model.js +0 -3
  99. package/dist/nodes/fortnox/model.js.map +0 -1
  100. package/dist/nodes/fortnox/resources/customers/filterParameters.d.ts +0 -2
  101. package/dist/nodes/fortnox/resources/customers/filterParameters.js +0 -31
  102. package/dist/nodes/fortnox/resources/customers/filterParameters.js.map +0 -1
  103. package/dist/nodes/fortnox/resources/customers/index.d.ts +0 -20
  104. package/dist/nodes/fortnox/resources/customers/index.js +0 -87
  105. package/dist/nodes/fortnox/resources/customers/index.js.map +0 -1
  106. package/dist/nodes/fortnox/resources/customers/model.d.ts +0 -99
  107. package/dist/nodes/fortnox/resources/customers/model.js +0 -3
  108. package/dist/nodes/fortnox/resources/customers/model.js.map +0 -1
  109. package/dist/nodes/fortnox/resources/customers/operations/create.operation.d.ts +0 -12
  110. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js +0 -283
  111. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js.map +0 -1
  112. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.d.ts +0 -10
  113. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js +0 -45
  114. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js.map +0 -1
  115. package/dist/nodes/fortnox/resources/customers/operations/get.operation.d.ts +0 -11
  116. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js +0 -45
  117. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js.map +0 -1
  118. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.d.ts +0 -11
  119. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js +0 -68
  120. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js.map +0 -1
  121. package/dist/nodes/fortnox/resources/customers/operations/update.operation.d.ts +0 -12
  122. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js +0 -276
  123. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js.map +0 -1
  124. package/dist/nodes/fortnox/resources/customers/sortParameters.d.ts +0 -2
  125. package/dist/nodes/fortnox/resources/customers/sortParameters.js +0 -30
  126. package/dist/nodes/fortnox/resources/customers/sortParameters.js.map +0 -1
  127. package/dist/nodes/fortnox/resources/invoice/filterParameters.d.ts +0 -2
  128. package/dist/nodes/fortnox/resources/invoice/filterParameters.js +0 -72
  129. package/dist/nodes/fortnox/resources/invoice/filterParameters.js.map +0 -1
  130. package/dist/nodes/fortnox/resources/invoice/index.d.ts +0 -20
  131. package/dist/nodes/fortnox/resources/invoice/index.js +0 -81
  132. package/dist/nodes/fortnox/resources/invoice/index.js.map +0 -1
  133. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.d.ts +0 -2
  134. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js +0 -193
  135. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js.map +0 -1
  136. package/dist/nodes/fortnox/resources/invoice/model.d.ts +0 -150
  137. package/dist/nodes/fortnox/resources/invoice/model.js +0 -3
  138. package/dist/nodes/fortnox/resources/invoice/model.js.map +0 -1
  139. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.d.ts +0 -11
  140. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js +0 -64
  141. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js.map +0 -1
  142. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.d.ts +0 -11
  143. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js +0 -44
  144. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js.map +0 -1
  145. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.d.ts +0 -11
  146. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js +0 -92
  147. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js.map +0 -1
  148. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.d.ts +0 -11
  149. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js +0 -71
  150. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js.map +0 -1
  151. package/dist/nodes/fortnox/transport/errorCodes.d.ts +0 -1
  152. package/dist/nodes/fortnox/transport/errorCodes.js +0 -50
  153. package/dist/nodes/fortnox/transport/errorCodes.js.map +0 -1
  154. package/dist/nodes/fortnox/transport/index.d.ts +0 -4
  155. package/dist/nodes/fortnox/transport/index.js +0 -77
  156. package/dist/nodes/fortnox/transport/index.js.map +0 -1
  157. package/dist/nodes/lime-crm/LimeCrm.node.json +0 -18
  158. package/dist/nodes/lime-crm/LimeCrmNode.node.d.ts +0 -14
  159. package/dist/nodes/lime-crm/LimeCrmNode.node.js +0 -126
  160. package/dist/nodes/lime-crm/LimeCrmNode.node.js.map +0 -1
  161. package/dist/nodes/lime-crm/LimeCrmTrigger.node.d.ts +0 -18
  162. package/dist/nodes/lime-crm/LimeCrmTrigger.node.js +0 -215
  163. package/dist/nodes/lime-crm/LimeCrmTrigger.node.js.map +0 -1
  164. package/dist/nodes/lime-crm/assets/lime-crm.svg +0 -1
  165. package/dist/nodes/lime-crm/commons/constants.d.ts +0 -5
  166. package/dist/nodes/lime-crm/commons/constants.js +0 -9
  167. package/dist/nodes/lime-crm/commons/constants.js.map +0 -1
  168. package/dist/nodes/lime-crm/commons/hmac.d.ts +0 -1
  169. package/dist/nodes/lime-crm/commons/hmac.js +0 -11
  170. package/dist/nodes/lime-crm/commons/hmac.js.map +0 -1
  171. package/dist/nodes/lime-crm/commons/index.d.ts +0 -3
  172. package/dist/nodes/lime-crm/commons/index.js +0 -12
  173. package/dist/nodes/lime-crm/commons/index.js.map +0 -1
  174. package/dist/nodes/lime-crm/commons/limetype.d.ts +0 -10
  175. package/dist/nodes/lime-crm/commons/limetype.js +0 -3
  176. package/dist/nodes/lime-crm/commons/limetype.js.map +0 -1
  177. package/dist/nodes/lime-crm/commons/task.d.ts +0 -14
  178. package/dist/nodes/lime-crm/commons/task.js +0 -48
  179. package/dist/nodes/lime-crm/commons/task.js.map +0 -1
  180. package/dist/nodes/lime-crm/commons/webhook.d.ts +0 -20
  181. package/dist/nodes/lime-crm/commons/webhook.js +0 -30
  182. package/dist/nodes/lime-crm/commons/webhook.js.map +0 -1
  183. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.d.ts +0 -5
  184. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js +0 -11
  185. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js.map +0 -1
  186. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.d.ts +0 -2
  187. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js +0 -20
  188. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js.map +0 -1
  189. package/dist/nodes/lime-crm/methods/getLimeTypes.d.ts +0 -2
  190. package/dist/nodes/lime-crm/methods/getLimeTypes.js +0 -20
  191. package/dist/nodes/lime-crm/methods/getLimeTypes.js.map +0 -1
  192. package/dist/nodes/lime-crm/methods/index.d.ts +0 -3
  193. package/dist/nodes/lime-crm/methods/index.js +0 -10
  194. package/dist/nodes/lime-crm/methods/index.js.map +0 -1
  195. package/dist/nodes/lime-crm/resources/erpConnector/index.d.ts +0 -23
  196. package/dist/nodes/lime-crm/resources/erpConnector/index.js +0 -67
  197. package/dist/nodes/lime-crm/resources/erpConnector/index.js.map +0 -1
  198. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.d.ts +0 -26
  199. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js +0 -65
  200. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js.map +0 -1
  201. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.d.ts +0 -9
  202. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js +0 -220
  203. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js.map +0 -1
  204. package/dist/nodes/lime-crm/resources/erpConnector/transform.d.ts +0 -15
  205. package/dist/nodes/lime-crm/resources/erpConnector/transform.js +0 -11
  206. package/dist/nodes/lime-crm/resources/erpConnector/transform.js.map +0 -1
  207. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.d.ts +0 -4
  208. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.js +0 -7
  209. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.js.map +0 -1
  210. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.d.ts +0 -37
  211. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.js +0 -124
  212. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.js.map +0 -1
  213. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.d.ts +0 -1
  214. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.js +0 -6
  215. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.js.map +0 -1
  216. package/dist/nodes/lime-crm/resources/limeObject/index.d.ts +0 -14
  217. package/dist/nodes/lime-crm/resources/limeObject/index.js +0 -88
  218. package/dist/nodes/lime-crm/resources/limeObject/index.js.map +0 -1
  219. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.d.ts +0 -9
  220. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js +0 -139
  221. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js.map +0 -1
  222. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.d.ts +0 -9
  223. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js +0 -51
  224. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js.map +0 -1
  225. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.d.ts +0 -9
  226. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.js +0 -103
  227. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.js.map +0 -1
  228. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.d.ts +0 -9
  229. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js +0 -51
  230. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js.map +0 -1
  231. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.d.ts +0 -9
  232. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js +0 -103
  233. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js.map +0 -1
  234. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.d.ts +0 -9
  235. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js +0 -149
  236. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js.map +0 -1
  237. package/dist/nodes/lime-crm/resources/limeQuery/index.d.ts +0 -6
  238. package/dist/nodes/lime-crm/resources/limeQuery/index.js +0 -66
  239. package/dist/nodes/lime-crm/resources/limeQuery/index.js.map +0 -1
  240. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.d.ts +0 -9
  241. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.js +0 -191
  242. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.js.map +0 -1
  243. package/dist/nodes/lime-crm/resources/limeType/index.d.ts +0 -20
  244. package/dist/nodes/lime-crm/resources/limeType/index.js +0 -81
  245. package/dist/nodes/lime-crm/resources/limeType/index.js.map +0 -1
  246. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.d.ts +0 -11
  247. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js +0 -36
  248. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js.map +0 -1
  249. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.d.ts +0 -9
  250. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js +0 -36
  251. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js.map +0 -1
  252. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.d.ts +0 -10
  253. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js +0 -15
  254. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js.map +0 -1
  255. package/dist/nodes/lime-crm/transport/commons.d.ts +0 -5
  256. package/dist/nodes/lime-crm/transport/commons.js +0 -33
  257. package/dist/nodes/lime-crm/transport/commons.js.map +0 -1
  258. package/dist/nodes/lime-crm/transport/erpConnector.d.ts +0 -9
  259. package/dist/nodes/lime-crm/transport/erpConnector.js +0 -11
  260. package/dist/nodes/lime-crm/transport/erpConnector.js.map +0 -1
  261. package/dist/nodes/lime-crm/transport/index.d.ts +0 -6
  262. package/dist/nodes/lime-crm/transport/index.js +0 -24
  263. package/dist/nodes/lime-crm/transport/index.js.map +0 -1
  264. package/dist/nodes/lime-crm/transport/limeQuery.d.ts +0 -10
  265. package/dist/nodes/lime-crm/transport/limeQuery.js +0 -15
  266. package/dist/nodes/lime-crm/transport/limeQuery.js.map +0 -1
  267. package/dist/nodes/lime-crm/transport/limeobjects.d.ts +0 -7
  268. package/dist/nodes/lime-crm/transport/limeobjects.js +0 -134
  269. package/dist/nodes/lime-crm/transport/limeobjects.js.map +0 -1
  270. package/dist/nodes/lime-crm/transport/limetypes.d.ts +0 -6
  271. package/dist/nodes/lime-crm/transport/limetypes.js +0 -54
  272. package/dist/nodes/lime-crm/transport/limetypes.js.map +0 -1
  273. package/dist/nodes/lime-crm/transport/task.d.ts +0 -13
  274. package/dist/nodes/lime-crm/transport/task.js +0 -13
  275. package/dist/nodes/lime-crm/transport/task.js.map +0 -1
  276. package/dist/nodes/lime-crm/transport/webhooks.d.ts +0 -16
  277. package/dist/nodes/lime-crm/transport/webhooks.js +0 -43
  278. package/dist/nodes/lime-crm/transport/webhooks.js.map +0 -1
  279. package/dist/nodes/nodeResponse.d.ts +0 -12
  280. package/dist/nodes/nodeResponse.js +0 -3
  281. package/dist/nodes/nodeResponse.js.map +0 -1
  282. package/dist/package.json +0 -75
  283. package/dist/tsconfig.tsbuildinfo +0 -1
  284. package/docker-compose.yml +0 -52
  285. package/nodes/lime-crm/commons/constants.ts +0 -9
  286. package/nodes/lime-crm/commons/hmac.ts +0 -13
  287. package/nodes/lime-crm/commons/index.ts +0 -10
  288. package/nodes/lime-crm/commons/task.ts +0 -55
  289. package/nodes/lime-crm/commons/webhook.ts +0 -68
  290. package/nodes/lime-crm/methods/getEntitiesForErpSystem.ts +0 -11
  291. package/nodes/lime-crm/model.ts +0 -22
  292. package/nodes/lime-crm/resources/erpConnector/index.ts +0 -43
  293. package/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.ts +0 -69
  294. package/nodes/lime-crm/resources/erpConnector/operations/transform.operation.ts +0 -274
  295. package/nodes/lime-crm/resources/erpConnector/transform.ts +0 -49
  296. package/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.ts +0 -18
  297. package/nodes/lime-crm/resources/erpConnector/transformers/fortnox.ts +0 -201
  298. package/nodes/lime-crm/resources/erpConnector/transformers/index.ts +0 -1
  299. package/nodes/lime-crm/transport/erpConnector.ts +0 -21
  300. package/nodes/lime-crm/transport/task.ts +0 -32
  301. package/nodes/nodeResponse.ts +0 -13
  302. package/tests/fixtures/fortnox.ts +0 -182
  303. package/tests/transform.spec.ts +0 -187
@@ -1,193 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.invoiceParameters = void 0;
4
- const commons_1 = require("../../commons");
5
- const optionParametersDefinitions = [
6
- {
7
- displayName: 'Invoice Type',
8
- name: 'InvoiceType',
9
- parameters: [
10
- ['Invoice', 'INVOICE'],
11
- ['Agreement Invoice', 'AGREEMENTINVOICE'],
12
- ['Intrest Invoice', 'INTRESTINVOICE'],
13
- ['Summery Invoice', 'SUMMARYINVOICE'],
14
- ['Cash Invoice', 'CASHINVOICE'],
15
- ],
16
- },
17
- {
18
- displayName: 'Language',
19
- name: 'Language',
20
- parameters: [
21
- ['Svenska', 'SV'],
22
- ['English', 'EN'],
23
- ],
24
- },
25
- {
26
- displayName: 'Tax Reduction Type',
27
- name: 'TaxReductionType',
28
- parameters: [
29
- ['None', 'none'],
30
- ['Rot', 'rot'],
31
- ['Rut', 'rut'],
32
- ['Green', 'green'],
33
- ],
34
- },
35
- ];
36
- const collectionParametersDefinitions = [
37
- {
38
- displayName: 'EDI Information',
39
- name: 'EDIInformation',
40
- parameters: [
41
- [
42
- 'EDI Global Location Number',
43
- 'EDIGlobalLocationNumber',
44
- 'string',
45
- '',
46
- {},
47
- ],
48
- [
49
- 'EDI Global Location Number Delivery',
50
- 'EDIGlobalLocationNumberDelivery',
51
- 'string',
52
- '',
53
- {},
54
- ],
55
- ['EDI Invoice Extra1', 'EDIInvoiceExtra1', 'string', '', {}],
56
- ['EDI Invoice Extra2', 'EDIInvoiceExtra2', 'string', '', {}],
57
- [
58
- 'EDI Our Electronic Reference',
59
- 'EDIOurElectronicReference',
60
- 'string',
61
- '',
62
- {},
63
- ],
64
- [
65
- 'EDI Your Electronic Reference',
66
- 'EDIYourElectronicReference',
67
- 'string',
68
- '',
69
- {},
70
- ],
71
- ],
72
- multipleValues: false,
73
- },
74
- {
75
- displayName: 'Email Information',
76
- name: 'EmailInformation',
77
- parameters: [
78
- ['Email Address BCC', 'EmailAddressBCC', 'string', '', {}],
79
- ['Email Address CC', 'EmailAddressCC', 'string', '', {}],
80
- ['Email Address From', 'EmailAddressFrom', 'string', '', {}],
81
- ['Email Address To', 'EmailAddressTo', 'string', '', {}],
82
- ['Email Body', 'EmailBody', 'string', '', {}],
83
- ['Email Subject', 'EmailSubject', 'string', '', {}],
84
- ],
85
- multipleValues: false,
86
- },
87
- {
88
- displayName: 'Invoice Rows',
89
- name: 'InvoiceRows',
90
- parameters: [
91
- ['Account Number', 'AccountNumber', 'number', 0, {}],
92
- ['Article Number', 'ArticleNumber', 'string', '', {}],
93
- ['Cost Center', 'CostCenter', 'string', '', {}],
94
- ['Delivered Quantity', 'DeliveredQuantity', 'string', '', {}],
95
- ['Description', 'Description', 'string', '', {}],
96
- ['Discount', 'Discount', 'number', 0, { numberPrecision: 2 }],
97
- ['Discount Type', 'DiscountType', 'string', '', {}],
98
- ['House Work', 'HouseWork', 'boolean', false, {}],
99
- [
100
- 'House Work Hours To Report',
101
- 'HouseWorkHoursToReport',
102
- 'number',
103
- 0,
104
- {},
105
- ],
106
- ['House Work Type', 'HouseWorkType', 'string', '', {}],
107
- ['Price', 'Price', 'number', 0, { numberPrecision: 2 }],
108
- ['Project', 'Project', 'string', '', {}],
109
- ['Row ID', 'RowId', 'number', 0, {}],
110
- ['Stock Point Code', 'StockPointCode', 'string', '', {}],
111
- ['Unit', 'Unit', 'string', '', {}],
112
- ['VAT', 'VAT', 'number', 0, {}],
113
- ['VAT Code', 'VATCode', 'string', '', {}],
114
- ],
115
- multipleValues: true,
116
- },
117
- {
118
- displayName: 'Labels',
119
- name: 'Labels',
120
- parameters: [['Label ID', 'Id', 'number', 0, {}]],
121
- multipleValues: true,
122
- },
123
- ];
124
- const parametersDefinitions = [
125
- ['Address1', 'Address1', 'string', '', {}],
126
- ['Address2', 'Address2', 'string', '', {}],
127
- [
128
- 'Administration Fee',
129
- 'AdministrationFee',
130
- 'number',
131
- 0,
132
- { numberPrecision: 2 },
133
- ],
134
- ['City', 'City', 'string', '', {}],
135
- ['Comments', 'Comments', 'string', '', {}],
136
- ['Cost Center', 'CostCenter', 'string', '', {}],
137
- ['Country', 'Country', 'string', '', {}],
138
- ['Credit Invoice Reference', 'CreditInvoiceReference', 'string', '', {}],
139
- ['Currency', 'Currency', 'string', '', {}],
140
- ['Currency Rate', 'CurrencyRate', 'number', 0, { numberPrecision: 2 }],
141
- ['Currency Unit', 'CurrencyUnit', 'number', 0, {}],
142
- ['Customer Name', 'CustomerName', 'string', '', {}],
143
- ['Delivery Address1', 'DeliveryAddress1', 'string', '', {}],
144
- ['Delivery Address2', 'DeliveryAddress2', 'string', '', {}],
145
- ['Delivery City', 'DeliveryCity', 'string', '', {}],
146
- ['Delivery Country', 'DeliveryCountry', 'string', '', {}],
147
- ['Delivery Date', 'DeliveryDate', 'string', '', {}],
148
- ['Delivery Name', 'DeliveryName', 'string', '', {}],
149
- ['Delivery Zip Code', 'DeliveryZipCode', 'string', '', {}],
150
- ['Document Number', 'DocumentNumber', 'string', '', {}],
151
- ['Due Date', 'DueDate', 'string', '', {}],
152
- ['EU Quarterly Report', 'EuQuarterlyReport', 'boolean', false, {}],
153
- [
154
- 'External Invoice Reference1',
155
- 'ExternalInvoiceReference1',
156
- 'string',
157
- '',
158
- {},
159
- ],
160
- [
161
- 'External Invoice Reference2',
162
- 'ExternalInvoiceReference2',
163
- 'string',
164
- '',
165
- {},
166
- ],
167
- ['Freight', 'Freight', 'number', 0, { numberPrecision: 2 }],
168
- ['Invoice Date', 'InvoiceDate', 'string', '', {}],
169
- ['Not Completed', 'NotCompleted', 'boolean', false, {}],
170
- ['OCR', 'OCR', 'string', '', {}],
171
- ['Our Reference', 'OurReference', 'string', '', {}],
172
- ['Outbound Date', 'OutboundDate', 'string', '', {}],
173
- ['Payment Way', 'PaymentWay', 'string', '', {}],
174
- ['Phone1', 'Phone1', 'string', '', {}],
175
- ['Phone2', 'Phone2', 'string', '', {}],
176
- ['Price List', 'PriceList', 'string', '', {}],
177
- ['Print Template', 'PrintTemplate', 'string', '', {}],
178
- ['Project', 'Project', 'string', '', {}],
179
- ['Remarks', 'Remarks', 'string', '', {}],
180
- ['Terms Of Delivery', 'TermsOfDelivery', 'string', '', {}],
181
- ['Terms Of Payment', 'TermsOfPayment', 'string', '', {}],
182
- ['VAT Included', 'VatIncluded', 'boolean', false, {}],
183
- ['Way Of Delivery', 'WayOfDelivery', 'string', '', {}],
184
- ['Your Order Number', 'YourOrderNumber', 'string', '', {}],
185
- ['Your Reference', 'YourReference', 'string', '', {}],
186
- ['Zip Code', 'ZipCode', 'string', '', {}],
187
- ];
188
- exports.invoiceParameters = [
189
- ...parametersDefinitions.map(([displayName, name, parameterType, defaultValue, typeOptions]) => (0, commons_1.createParameter)(displayName, name, parameterType, defaultValue, typeOptions)),
190
- ...collectionParametersDefinitions.map((collection) => (0, commons_1.createCollectionParameter)(collection)),
191
- ...optionParametersDefinitions.map((option) => (0, commons_1.createOptionParameter)(option)),
192
- ];
193
- //# sourceMappingURL=invoiceParameters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoiceParameters.js","sourceRoot":"","sources":["../../../../../nodes/fortnox/resources/invoice/invoiceParameters.ts"],"names":[],"mappings":";;;AACA,2CAOuB;AAEvB,MAAM,2BAA2B,GAAgC;IAC7D;QACI,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE;YACR,CAAC,SAAS,EAAE,SAAS,CAAC;YACtB,CAAC,mBAAmB,EAAE,kBAAkB,CAAC;YACzC,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;YACrC,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;YACrC,CAAC,cAAc,EAAE,aAAa,CAAC;SAClC;KACJ;IACD;QACI,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE;YACR,CAAC,SAAS,EAAE,IAAI,CAAC;YACjB,CAAC,SAAS,EAAE,IAAI,CAAC;SACpB;KACJ;IACD;QACI,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,kBAAkB;QACxB,UAAU,EAAE;YACR,CAAC,MAAM,EAAE,MAAM,CAAC;YAChB,CAAC,KAAK,EAAE,KAAK,CAAC;YACd,CAAC,KAAK,EAAE,KAAK,CAAC;YACd,CAAC,OAAO,EAAE,OAAO,CAAC;SACrB;KACJ;CACJ,CAAC;AAEF,MAAM,+BAA+B,GAAoC;IACrE;QACI,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,UAAU,EAAE;YACR;gBACI,4BAA4B;gBAC5B,yBAAyB;gBACzB,QAAQ;gBACR,EAAE;gBACF,EAAE;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E,YAAY,EAAE,WAAW,CAAC,EAAE,EAAE,CAC9D,IAAA,yBAAe,EACX,WAAW,EACX,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,WAAW,CACd,CACR;IACD,GAAG,+BAA+B,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAClD,IAAA,mCAAyB,EAAC,UAAU,CAAC,CACxC;IACD,GAAG,2BAA2B,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAC1C,IAAA,+BAAqB,EAAC,MAAM,CAAC,CAChC;CACJ,CAAC"}
@@ -1,150 +0,0 @@
1
- import { ResponseModel } from '../../model';
2
- export interface InvoiceBase {
3
- '@url': string;
4
- Balance: number;
5
- Booked: boolean;
6
- Cancelled: boolean;
7
- CostCenter: string;
8
- Currency: string;
9
- CurrencyRate: string;
10
- CurrencyUnit: number;
11
- CustomerName: string;
12
- CustomerNumber: string;
13
- DocumentNumber: string;
14
- DueDate: string;
15
- ExternalInvoiceReference1: string;
16
- ExternalInvoiceReference2: string;
17
- InvoiceDate: string;
18
- InvoiceType: string;
19
- NoxFinans: boolean;
20
- OCR: string;
21
- VoucherNumber: number | string | null;
22
- VoucherSeries: string | null;
23
- VoucherYear: number | string | null;
24
- WayOfDelivery: string;
25
- TermsOfPayment: string;
26
- Project: string;
27
- Sent: boolean;
28
- Total: number;
29
- FinalPayDate: string | null;
30
- }
31
- export interface EDIInformation {
32
- EDIGlobalLocationNumber: string | null;
33
- EDIGlobalLocationNumberDelivery: string | null;
34
- EDIInvoiceExtra1: string | null;
35
- EDIInvoiceExtra2: string | null;
36
- EDIOurElectronicReference: string | null;
37
- EDIYourElectronicReference: string | null;
38
- EDIStatus: string;
39
- }
40
- export interface EmailInformation {
41
- EmailAddressFrom: string | null;
42
- EmailAddressTo: string | null;
43
- EmailAddressCC: string | null;
44
- EmailAddressBCC: string | null;
45
- EmailSubject: string;
46
- EmailBody: string;
47
- }
48
- export interface InvoiceRow {
49
- AccountNumber: number;
50
- ArticleNumber: string;
51
- ContributionPercent: string;
52
- ContributionValue: string;
53
- Cost: number;
54
- CostCenter: string;
55
- DeliveredQuantity: string;
56
- Description: string;
57
- Discount: number;
58
- DiscountType: string;
59
- HouseWork: boolean;
60
- HouseWorkHoursToReport: number | null;
61
- HouseWorkType: string | null;
62
- Price: number;
63
- PriceExcludingVAT: number;
64
- Project: string;
65
- RowId: number;
66
- StockPointCode: string | null;
67
- Total: number;
68
- TotalExcludingVAT: number;
69
- Unit: string;
70
- VAT: number;
71
- }
72
- export interface Label {
73
- Id: string;
74
- }
75
- export interface Invoice extends InvoiceBase {
76
- '@urlTaxReductionList': string;
77
- AccountingMethod: string;
78
- Address1: string;
79
- Address2: string;
80
- AdministrationFee: number;
81
- AdministrationFeeVAT: number;
82
- BasisTaxReduction: number;
83
- City: string;
84
- Comments: string;
85
- ContractReference: string;
86
- ContributionPercent: number;
87
- ContributionValue: string;
88
- Country: string;
89
- Credit: string;
90
- CreditInvoiceReference: string;
91
- DeliveryAddress1: string;
92
- DeliveryAddress2: string;
93
- DeliveryCity: string;
94
- DeliveryCountry: string;
95
- DeliveryDate: string | null;
96
- DeliveryName: string;
97
- DeliveryZipCode: string;
98
- EDIInformation: EDIInformation;
99
- EUQuarterlyReport: boolean;
100
- EmailInformation: EmailInformation;
101
- Freight: number;
102
- FreightVAT: number;
103
- Gross: number;
104
- HouseWork: boolean;
105
- InvoicePeriodEnd: string;
106
- InvoicePeriodStart: string;
107
- InvoiceReference: string;
108
- InvoiceRows: InvoiceRow[];
109
- Labels: Label[];
110
- Language: string;
111
- LastRemindDate: string | null;
112
- Net: number;
113
- NotCompleted: boolean;
114
- OfferReference: string;
115
- OrderReference: string;
116
- OrganisationNumber: string;
117
- OurReference: string;
118
- OutboundDate: string;
119
- PaymentWay: string;
120
- Phone1: string;
121
- Phone2: string;
122
- PriceList: string;
123
- PrintTemplate: string;
124
- Remarks: string;
125
- Reminders: number;
126
- RoundOff: number;
127
- TaxReduction: string | null;
128
- TaxReductionType: string;
129
- TermsOfDelivery: string;
130
- TimeBasisReference: string | null;
131
- TotalToPay: number;
132
- TotalVAT: number;
133
- VATIncluded: boolean;
134
- WarehouseReady: boolean;
135
- YourOrderNumber: string;
136
- YourReference: string;
137
- ZipCode: string;
138
- }
139
- export interface CreateInvoiceResponse {
140
- Invoice: Invoice;
141
- }
142
- export interface UpdateInvoiceResponse {
143
- Invoice: Invoice;
144
- }
145
- export interface GetInvoiceResponse extends ResponseModel {
146
- Invoice: InvoiceBase;
147
- }
148
- export interface GetAllInvoicesResponse extends ResponseModel {
149
- Invoices: InvoiceBase[];
150
- }
@@ -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/resources/invoice/model.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- import { CreateInvoiceResponse } from '../model';
3
- import { NodeResponse } from '../../../../nodeResponse';
4
- export declare const description: {
5
- name: string;
6
- value: string;
7
- description: string;
8
- action: string;
9
- };
10
- export declare const properties: INodeProperties[];
11
- export declare function execute(this: IExecuteFunctions, i: number): Promise<NodeResponse<CreateInvoiceResponse>>;
@@ -1,64 +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 transport_1 = require("../../../transport");
6
- const invoiceParameters_1 = require("../invoiceParameters");
7
- exports.description = {
8
- name: 'Create',
9
- value: 'create',
10
- description: 'Create an invoice',
11
- action: 'Create a document',
12
- };
13
- exports.properties = [
14
- {
15
- displayName: 'Customer Number',
16
- name: 'customerNumber',
17
- type: 'string',
18
- required: true,
19
- default: '',
20
- displayOptions: {
21
- show: {
22
- resource: ['invoice'],
23
- operation: ['create'],
24
- },
25
- },
26
- },
27
- {
28
- displayName: 'Add Parameters',
29
- name: 'createParameters',
30
- type: 'collection',
31
- placeholder: 'Add Parameter',
32
- default: {},
33
- displayOptions: {
34
- show: {
35
- resource: ['invoice'],
36
- operation: ['create'],
37
- },
38
- },
39
- options: invoiceParameters_1.invoiceParameters,
40
- },
41
- ];
42
- async function execute(i) {
43
- const customerNumber = this.getNodeParameter('customerNumber', i, {});
44
- const createParameters = this.getNodeParameter('createParameters', i, {});
45
- const body = {
46
- Invoice: {
47
- CustomerNumber: customerNumber,
48
- },
49
- };
50
- if (createParameters) {
51
- for (const [key, value] of Object.entries(createParameters)) {
52
- if (value !== '' && value !== undefined && value !== null) {
53
- body['Invoice'][key] = value;
54
- }
55
- }
56
- }
57
- const endpoint = 'invoices';
58
- return await (0, transport_1.apiRequest)(this, {
59
- method: 'POST',
60
- endpoint: endpoint,
61
- body: body,
62
- });
63
- }
64
- //# sourceMappingURL=create.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../../nodes/fortnox/resources/invoice/operations/create.operation.ts"],"names":[],"mappings":";;;AA2CA,0BA4BC;AAtED,kDAAgD;AAEhD,4DAAyD;AAG5C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,mBAAmB;IAChC,MAAM,EAAE,mBAAmB;CAC9B,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;IACD;QACI,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;QACD,OAAO,EAAE,qCAAiB;KAC7B;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAE1E,MAAM,IAAI,GAAgB;QACtB,OAAO,EAAE;YACL,cAAc,EAAE,cAAc;SACjC;KACJ,CAAC;IAEF,IAAI,gBAAgB,EAAE,CAAC;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAC1D,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACvD,IAAI,CAAC,SAAS,CAAiB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YAClD,CAAC;QACL,CAAC;IACL,CAAC;IAED,MAAM,QAAQ,GAAG,UAAU,CAAC;IAE5B,OAAO,MAAM,IAAA,sBAAU,EAAwB,IAAI,EAAE;QACjD,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,IAAI;KACb,CAAC,CAAC;AACP,CAAC"}
@@ -1,11 +0,0 @@
1
- import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- import { GetInvoiceResponse } from '../model';
3
- import { NodeResponse } from '../../../../nodeResponse';
4
- export declare const description: {
5
- name: string;
6
- value: string;
7
- description: string;
8
- action: string;
9
- };
10
- export declare const properties: INodeProperties[];
11
- export declare function execute(this: IExecuteFunctions, i: number): Promise<NodeResponse<GetInvoiceResponse>>;
@@ -1,44 +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 transport_1 = require("../../../transport");
6
- exports.description = {
7
- name: 'Get',
8
- value: 'get',
9
- description: 'Retrieve the invoice',
10
- action: 'Get single document',
11
- };
12
- exports.properties = [
13
- {
14
- displayName: 'Document Number',
15
- name: 'documentNumber',
16
- type: 'string',
17
- required: true,
18
- default: '',
19
- displayOptions: {
20
- show: {
21
- resource: ['invoice'],
22
- operation: ['get'],
23
- },
24
- },
25
- },
26
- ];
27
- async function execute(i) {
28
- const documentNumber = this.getNodeParameter('documentNumber', i, '');
29
- const endpoint = `invoices/${encodeURIComponent(documentNumber)}`;
30
- const response = await (0, transport_1.apiRequest)(this, {
31
- method: 'GET',
32
- endpoint: endpoint,
33
- });
34
- if (response.success)
35
- return response;
36
- return {
37
- ...response,
38
- metadata: {
39
- ...response.metadata,
40
- id: documentNumber,
41
- },
42
- };
43
- }
44
- //# sourceMappingURL=get.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../../nodes/fortnox/resources/invoice/operations/get.operation.ts"],"names":[],"mappings":";;;AA4BA,0BA0BC;AArDD,kDAAgD;AAInC,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,sBAAsB;IACnC,MAAM,EAAE,qBAAqB;CAChC,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACrB;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CACxC,gBAAgB,EAChB,CAAC,EACD,EAAE,CACK,CAAC;IAEZ,MAAM,QAAQ,GAAG,YAAY,kBAAkB,CAAC,cAAc,CAAC,EAAE,CAAC;IAElE,MAAM,QAAQ,GAAG,MAAM,IAAA,sBAAU,EAAqB,IAAI,EAAE;QACxD,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,QAAQ;KACrB,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,OAAO;QAAE,OAAO,QAAQ,CAAC;IAEtC,OAAO;QACH,GAAG,QAAQ;QACX,QAAQ,EAAE;YACN,GAAG,QAAQ,CAAC,QAAQ;YACpB,EAAE,EAAE,cAAc;SACrB;KACJ,CAAC;AACN,CAAC"}
@@ -1,11 +0,0 @@
1
- import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- import { GetAllInvoicesResponse } from '../model';
3
- import { NodeResponse } from '../../../../nodeResponse';
4
- export declare const description: {
5
- name: string;
6
- value: string;
7
- description: string;
8
- action: string;
9
- };
10
- export declare const properties: INodeProperties[];
11
- export declare function execute(this: IExecuteFunctions, i: number): Promise<NodeResponse<GetAllInvoicesResponse>>;
@@ -1,92 +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 transport_1 = require("../../../transport");
6
- const filterParameters_1 = require("../filterParameters");
7
- exports.description = {
8
- name: 'Get Many',
9
- value: 'getAll',
10
- description: 'Retrieve a list of invoices',
11
- action: 'Get list of documents',
12
- };
13
- exports.properties = [
14
- {
15
- displayName: 'Filter By',
16
- name: 'filterParameters',
17
- type: 'collection',
18
- placeholder: 'Add Parameter',
19
- default: {},
20
- displayOptions: {
21
- show: {
22
- resource: ['invoice'],
23
- operation: ['getAll'],
24
- },
25
- },
26
- options: filterParameters_1.filterParameters,
27
- },
28
- {
29
- displayName: 'Sort By',
30
- name: 'sortParameters',
31
- type: 'options',
32
- default: '',
33
- displayOptions: {
34
- show: {
35
- resource: ['invoice'],
36
- operation: ['getAll'],
37
- },
38
- },
39
- options: [
40
- {
41
- name: '',
42
- value: '',
43
- },
44
- {
45
- name: 'Customer Name',
46
- value: 'customername',
47
- },
48
- {
49
- name: 'Customer Number',
50
- value: 'customernumber',
51
- },
52
- {
53
- name: 'Document Number',
54
- value: 'documentnumber',
55
- },
56
- {
57
- name: 'Invoice Date',
58
- value: 'invoicedate',
59
- },
60
- {
61
- name: 'OCR',
62
- value: 'ocr',
63
- },
64
- {
65
- name: 'Total',
66
- value: 'total',
67
- },
68
- ],
69
- },
70
- ];
71
- async function execute(i) {
72
- const filterParameters = this.getNodeParameter('filterParameters', i, {});
73
- const sortParameters = this.getNodeParameter('sortParameters', i, '');
74
- const qs = {};
75
- if (filterParameters) {
76
- for (const [key, value] of Object.entries(filterParameters)) {
77
- if (value !== '' && value !== undefined && value !== null) {
78
- qs[key] = value;
79
- }
80
- }
81
- }
82
- if (sortParameters) {
83
- qs['sortby'] = sortParameters;
84
- }
85
- const endpoint = 'invoices';
86
- return await (0, transport_1.apiRequest)(this, {
87
- method: 'GET',
88
- endpoint: endpoint,
89
- qs: qs,
90
- });
91
- }
92
- //# sourceMappingURL=getAll.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../../nodes/fortnox/resources/invoice/operations/getAll.operation.ts"],"names":[],"mappings":";;;AAwEA,0BA4BC;AAnGD,kDAAgD;AAChD,0DAAuD;AAI1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,6BAA6B;IAC1C,MAAM,EAAE,uBAAuB;CAClC,CAAC;AAEW,QAAA,UAAU,GAAsB;IACz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AE,CAAC;IAE3B,IAAI,gBAAgB,EAAE,CAAC;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAC1D,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACxD,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACpB,CAAC;QACL,CAAC;IACL,CAAC;IAED,IAAI,cAAc,EAAE,CAAC;QACjB,EAAE,CAAC,QAAQ,CAAC,GAAG,cAAc,CAAC;IAClC,CAAC;IAED,MAAM,QAAQ,GAAG,UAAU,CAAC;IAE5B,OAAO,MAAM,IAAA,sBAAU,EAAyB,IAAI,EAAE;QAClD,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,QAAQ;QAClB,EAAE,EAAE,EAAE;KACT,CAAC,CAAC;AACP,CAAC"}
@@ -1,11 +0,0 @@
1
- import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
2
- import { CreateInvoiceResponse } from '../model';
3
- import { NodeResponse } from '../../../../nodeResponse';
4
- export declare const description: {
5
- name: string;
6
- value: string;
7
- description: string;
8
- action: string;
9
- };
10
- export declare const properties: INodeProperties[];
11
- export declare function execute(this: IExecuteFunctions, i: number): Promise<NodeResponse<CreateInvoiceResponse>>;