@limetech/n8n-nodes-lime 0.5.0 → 2.5.0-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 (316) hide show
  1. package/.github/workflows/lint.yml +4 -2
  2. package/.github/workflows/release.yml +8 -41
  3. package/.github/workflows/test-and-build.yml +1 -16
  4. package/.releaserc.json +2 -1
  5. package/CHANGELOG.md +155 -0
  6. package/Dockerfile +0 -21
  7. package/README.md +1 -1
  8. package/credentials/LimeCrmApi.credentials.ts +38 -1
  9. package/credentials/index.ts +2 -0
  10. package/eslint.config.mjs +2 -1
  11. package/knip.json +9 -0
  12. package/nodes/errorHandling.ts +60 -0
  13. package/nodes/fortnox/index.ts +6 -0
  14. package/nodes/fortnox/resources/customers/index.ts +18 -22
  15. package/nodes/fortnox/resources/customers/operations/create.operation.ts +12 -8
  16. package/nodes/fortnox/resources/customers/operations/delete.operation.ts +10 -15
  17. package/nodes/fortnox/resources/customers/operations/get.operation.ts +10 -15
  18. package/nodes/fortnox/resources/customers/operations/getAll.operation.ts +1 -2
  19. package/nodes/fortnox/resources/customers/operations/index.ts +5 -0
  20. package/nodes/fortnox/resources/customers/operations/update.operation.ts +30 -30
  21. package/nodes/fortnox/resources/invoice/index.ts +16 -18
  22. package/nodes/fortnox/resources/invoice/model.ts +0 -4
  23. package/nodes/fortnox/resources/invoice/operations/create.operation.ts +1 -2
  24. package/nodes/fortnox/resources/invoice/operations/get.operation.ts +10 -15
  25. package/nodes/fortnox/resources/invoice/operations/getAll.operation.ts +1 -2
  26. package/nodes/fortnox/resources/invoice/operations/index.ts +4 -0
  27. package/nodes/fortnox/resources/invoice/operations/update.operation.ts +11 -16
  28. package/nodes/fortnox/transport/index.ts +14 -11
  29. package/nodes/index.ts +4 -0
  30. package/nodes/lime-crm/LimeCrmNode.node.ts +89 -11
  31. package/nodes/lime-crm/LimeCrmTrigger.node.ts +75 -21
  32. package/nodes/lime-crm/index.ts +9 -0
  33. package/nodes/lime-crm/methods/getLimetypeProperties.ts +53 -8
  34. package/nodes/lime-crm/methods/getLimetypes.ts +15 -9
  35. package/nodes/lime-crm/methods/index.ts +6 -1
  36. package/nodes/lime-crm/methods/resourceMapping.ts +141 -0
  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 +65 -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 +94 -0
  45. package/nodes/lime-crm/resources/admin/operations/getManyUsers.operation.ts +174 -0
  46. package/nodes/lime-crm/resources/admin/operations/getSingleUser.operation.ts +112 -0
  47. package/nodes/lime-crm/resources/admin/operations/index.ts +8 -0
  48. package/nodes/lime-crm/resources/data/index.ts +77 -31
  49. package/nodes/lime-crm/resources/data/operations/{createSingleObject.ts → createSingleObject.operation.ts} +64 -54
  50. package/nodes/lime-crm/resources/data/operations/{deleteSingleObject.ts → deleteSingleObject.operation.ts} +39 -6
  51. package/nodes/lime-crm/resources/data/operations/{getManyObjects.ts → getManyObjects.operation.ts} +195 -48
  52. package/nodes/lime-crm/resources/data/operations/{getSingleFile.ts → getSingleFile.operation.ts} +47 -11
  53. package/nodes/lime-crm/resources/data/operations/{getSingleObject.ts → getSingleObject.operation.ts} +50 -8
  54. package/nodes/lime-crm/resources/data/operations/index.ts +24 -0
  55. package/nodes/lime-crm/resources/data/operations/updateSingleObject.operation.ts +83 -61
  56. package/nodes/lime-crm/resources/metadata/index.ts +60 -16
  57. package/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.ts +18 -4
  58. package/nodes/lime-crm/resources/metadata/operations/{getSingleFileMetadata.ts → getSingleFileMetadata.operation.ts} +46 -26
  59. package/nodes/lime-crm/resources/metadata/operations/{getSingleLimetype.ts → getSingleLimetype.operation.ts} +30 -3
  60. package/nodes/lime-crm/resources/metadata/operations/index.ts +12 -0
  61. package/nodes/lime-crm/transport/commons.ts +90 -18
  62. package/nodes/lime-crm/transport/files.ts +161 -71
  63. package/nodes/lime-crm/transport/index.ts +35 -17
  64. package/nodes/lime-crm/transport/limeQuery.ts +43 -7
  65. package/nodes/lime-crm/transport/limeobjects.ts +113 -178
  66. package/nodes/lime-crm/transport/limetypes.ts +125 -48
  67. package/nodes/lime-crm/transport/users.ts +300 -0
  68. package/nodes/lime-crm/transport/webhooks.ts +97 -37
  69. package/nodes/lime-crm/{commons → utils}/files.ts +79 -26
  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/webhook.ts +81 -0
  73. package/nodes/modules.ts +44 -0
  74. package/nodes/response.ts +54 -0
  75. package/package.json +21 -28
  76. package/tests/nodes/lime-crm/methods.spec.ts +91 -0
  77. package/tests/nodes/lime-crm/utils.spec.ts +273 -0
  78. package/typedoc.css +9 -0
  79. package/typedoc.json +19 -0
  80. package/.dockerignore +0 -1
  81. package/dist/credentials/FortnoxApi.credentials.d.ts +0 -9
  82. package/dist/credentials/FortnoxApi.credentials.js +0 -57
  83. package/dist/credentials/FortnoxApi.credentials.js.map +0 -1
  84. package/dist/credentials/LimeCrmApi.credentials.d.ts +0 -9
  85. package/dist/credentials/LimeCrmApi.credentials.js +0 -66
  86. package/dist/credentials/LimeCrmApi.credentials.js.map +0 -1
  87. package/dist/nodes/fortnox/Fortnox.node.d.ts +0 -5
  88. package/dist/nodes/fortnox/Fortnox.node.js +0 -95
  89. package/dist/nodes/fortnox/Fortnox.node.js.map +0 -1
  90. package/dist/nodes/fortnox/Fortnox.node.json +0 -18
  91. package/dist/nodes/fortnox/FortnoxTrigger.node.d.ts +0 -5
  92. package/dist/nodes/fortnox/FortnoxTrigger.node.js +0 -155
  93. package/dist/nodes/fortnox/FortnoxTrigger.node.js.map +0 -1
  94. package/dist/nodes/fortnox/FortnoxTrigger.node.json +0 -18
  95. package/dist/nodes/fortnox/commons.d.ts +0 -25
  96. package/dist/nodes/fortnox/commons.js +0 -44
  97. package/dist/nodes/fortnox/commons.js.map +0 -1
  98. package/dist/nodes/fortnox/fortnoxLogo.svg +0 -15
  99. package/dist/nodes/fortnox/model.d.ts +0 -20
  100. package/dist/nodes/fortnox/model.js +0 -3
  101. package/dist/nodes/fortnox/model.js.map +0 -1
  102. package/dist/nodes/fortnox/resources/customers/filterParameters.d.ts +0 -2
  103. package/dist/nodes/fortnox/resources/customers/filterParameters.js +0 -31
  104. package/dist/nodes/fortnox/resources/customers/filterParameters.js.map +0 -1
  105. package/dist/nodes/fortnox/resources/customers/index.d.ts +0 -20
  106. package/dist/nodes/fortnox/resources/customers/index.js +0 -87
  107. package/dist/nodes/fortnox/resources/customers/index.js.map +0 -1
  108. package/dist/nodes/fortnox/resources/customers/model.d.ts +0 -99
  109. package/dist/nodes/fortnox/resources/customers/model.js +0 -3
  110. package/dist/nodes/fortnox/resources/customers/model.js.map +0 -1
  111. package/dist/nodes/fortnox/resources/customers/operations/create.operation.d.ts +0 -12
  112. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js +0 -283
  113. package/dist/nodes/fortnox/resources/customers/operations/create.operation.js.map +0 -1
  114. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.d.ts +0 -10
  115. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js +0 -45
  116. package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js.map +0 -1
  117. package/dist/nodes/fortnox/resources/customers/operations/get.operation.d.ts +0 -11
  118. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js +0 -45
  119. package/dist/nodes/fortnox/resources/customers/operations/get.operation.js.map +0 -1
  120. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.d.ts +0 -11
  121. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js +0 -68
  122. package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js.map +0 -1
  123. package/dist/nodes/fortnox/resources/customers/operations/update.operation.d.ts +0 -12
  124. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js +0 -276
  125. package/dist/nodes/fortnox/resources/customers/operations/update.operation.js.map +0 -1
  126. package/dist/nodes/fortnox/resources/customers/sortParameters.d.ts +0 -2
  127. package/dist/nodes/fortnox/resources/customers/sortParameters.js +0 -30
  128. package/dist/nodes/fortnox/resources/customers/sortParameters.js.map +0 -1
  129. package/dist/nodes/fortnox/resources/invoice/filterParameters.d.ts +0 -2
  130. package/dist/nodes/fortnox/resources/invoice/filterParameters.js +0 -72
  131. package/dist/nodes/fortnox/resources/invoice/filterParameters.js.map +0 -1
  132. package/dist/nodes/fortnox/resources/invoice/index.d.ts +0 -20
  133. package/dist/nodes/fortnox/resources/invoice/index.js +0 -81
  134. package/dist/nodes/fortnox/resources/invoice/index.js.map +0 -1
  135. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.d.ts +0 -2
  136. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js +0 -193
  137. package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js.map +0 -1
  138. package/dist/nodes/fortnox/resources/invoice/model.d.ts +0 -150
  139. package/dist/nodes/fortnox/resources/invoice/model.js +0 -3
  140. package/dist/nodes/fortnox/resources/invoice/model.js.map +0 -1
  141. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.d.ts +0 -11
  142. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js +0 -64
  143. package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js.map +0 -1
  144. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.d.ts +0 -11
  145. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js +0 -44
  146. package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js.map +0 -1
  147. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.d.ts +0 -11
  148. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js +0 -92
  149. package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js.map +0 -1
  150. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.d.ts +0 -11
  151. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js +0 -71
  152. package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js.map +0 -1
  153. package/dist/nodes/fortnox/transport/errorCodes.d.ts +0 -1
  154. package/dist/nodes/fortnox/transport/errorCodes.js +0 -50
  155. package/dist/nodes/fortnox/transport/errorCodes.js.map +0 -1
  156. package/dist/nodes/fortnox/transport/index.d.ts +0 -4
  157. package/dist/nodes/fortnox/transport/index.js +0 -77
  158. package/dist/nodes/fortnox/transport/index.js.map +0 -1
  159. package/dist/nodes/lime-crm/LimeCrm.node.json +0 -18
  160. package/dist/nodes/lime-crm/LimeCrmNode.node.d.ts +0 -14
  161. package/dist/nodes/lime-crm/LimeCrmNode.node.js +0 -126
  162. package/dist/nodes/lime-crm/LimeCrmNode.node.js.map +0 -1
  163. package/dist/nodes/lime-crm/LimeCrmTrigger.node.d.ts +0 -18
  164. package/dist/nodes/lime-crm/LimeCrmTrigger.node.js +0 -215
  165. package/dist/nodes/lime-crm/LimeCrmTrigger.node.js.map +0 -1
  166. package/dist/nodes/lime-crm/assets/lime-crm.svg +0 -1
  167. package/dist/nodes/lime-crm/commons/constants.d.ts +0 -5
  168. package/dist/nodes/lime-crm/commons/constants.js +0 -9
  169. package/dist/nodes/lime-crm/commons/constants.js.map +0 -1
  170. package/dist/nodes/lime-crm/commons/hmac.d.ts +0 -1
  171. package/dist/nodes/lime-crm/commons/hmac.js +0 -11
  172. package/dist/nodes/lime-crm/commons/hmac.js.map +0 -1
  173. package/dist/nodes/lime-crm/commons/index.d.ts +0 -3
  174. package/dist/nodes/lime-crm/commons/index.js +0 -12
  175. package/dist/nodes/lime-crm/commons/index.js.map +0 -1
  176. package/dist/nodes/lime-crm/commons/limetype.d.ts +0 -10
  177. package/dist/nodes/lime-crm/commons/limetype.js +0 -3
  178. package/dist/nodes/lime-crm/commons/limetype.js.map +0 -1
  179. package/dist/nodes/lime-crm/commons/task.d.ts +0 -14
  180. package/dist/nodes/lime-crm/commons/task.js +0 -48
  181. package/dist/nodes/lime-crm/commons/task.js.map +0 -1
  182. package/dist/nodes/lime-crm/commons/webhook.d.ts +0 -20
  183. package/dist/nodes/lime-crm/commons/webhook.js +0 -30
  184. package/dist/nodes/lime-crm/commons/webhook.js.map +0 -1
  185. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.d.ts +0 -5
  186. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js +0 -11
  187. package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js.map +0 -1
  188. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.d.ts +0 -2
  189. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js +0 -20
  190. package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js.map +0 -1
  191. package/dist/nodes/lime-crm/methods/getLimeTypes.d.ts +0 -2
  192. package/dist/nodes/lime-crm/methods/getLimeTypes.js +0 -20
  193. package/dist/nodes/lime-crm/methods/getLimeTypes.js.map +0 -1
  194. package/dist/nodes/lime-crm/methods/index.d.ts +0 -3
  195. package/dist/nodes/lime-crm/methods/index.js +0 -10
  196. package/dist/nodes/lime-crm/methods/index.js.map +0 -1
  197. package/dist/nodes/lime-crm/resources/erpConnector/index.d.ts +0 -23
  198. package/dist/nodes/lime-crm/resources/erpConnector/index.js +0 -67
  199. package/dist/nodes/lime-crm/resources/erpConnector/index.js.map +0 -1
  200. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.d.ts +0 -26
  201. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js +0 -65
  202. package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js.map +0 -1
  203. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.d.ts +0 -9
  204. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js +0 -220
  205. package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js.map +0 -1
  206. package/dist/nodes/lime-crm/resources/erpConnector/transform.d.ts +0 -15
  207. package/dist/nodes/lime-crm/resources/erpConnector/transform.js +0 -11
  208. package/dist/nodes/lime-crm/resources/erpConnector/transform.js.map +0 -1
  209. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.d.ts +0 -4
  210. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.js +0 -7
  211. package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.js.map +0 -1
  212. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.d.ts +0 -37
  213. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.js +0 -124
  214. package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.js.map +0 -1
  215. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.d.ts +0 -1
  216. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.js +0 -6
  217. package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.js.map +0 -1
  218. package/dist/nodes/lime-crm/resources/limeObject/index.d.ts +0 -14
  219. package/dist/nodes/lime-crm/resources/limeObject/index.js +0 -88
  220. package/dist/nodes/lime-crm/resources/limeObject/index.js.map +0 -1
  221. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.d.ts +0 -9
  222. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js +0 -139
  223. package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js.map +0 -1
  224. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.d.ts +0 -9
  225. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js +0 -51
  226. package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js.map +0 -1
  227. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.d.ts +0 -9
  228. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.js +0 -103
  229. package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.js.map +0 -1
  230. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.d.ts +0 -9
  231. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js +0 -51
  232. package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js.map +0 -1
  233. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.d.ts +0 -9
  234. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js +0 -103
  235. package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js.map +0 -1
  236. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.d.ts +0 -9
  237. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js +0 -149
  238. package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js.map +0 -1
  239. package/dist/nodes/lime-crm/resources/limeQuery/index.d.ts +0 -6
  240. package/dist/nodes/lime-crm/resources/limeQuery/index.js +0 -66
  241. package/dist/nodes/lime-crm/resources/limeQuery/index.js.map +0 -1
  242. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.d.ts +0 -9
  243. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.js +0 -191
  244. package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.js.map +0 -1
  245. package/dist/nodes/lime-crm/resources/limeType/index.d.ts +0 -20
  246. package/dist/nodes/lime-crm/resources/limeType/index.js +0 -81
  247. package/dist/nodes/lime-crm/resources/limeType/index.js.map +0 -1
  248. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.d.ts +0 -11
  249. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js +0 -36
  250. package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js.map +0 -1
  251. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.d.ts +0 -9
  252. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js +0 -36
  253. package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js.map +0 -1
  254. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.d.ts +0 -10
  255. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js +0 -15
  256. package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js.map +0 -1
  257. package/dist/nodes/lime-crm/transport/commons.d.ts +0 -5
  258. package/dist/nodes/lime-crm/transport/commons.js +0 -33
  259. package/dist/nodes/lime-crm/transport/commons.js.map +0 -1
  260. package/dist/nodes/lime-crm/transport/erpConnector.d.ts +0 -9
  261. package/dist/nodes/lime-crm/transport/erpConnector.js +0 -11
  262. package/dist/nodes/lime-crm/transport/erpConnector.js.map +0 -1
  263. package/dist/nodes/lime-crm/transport/index.d.ts +0 -6
  264. package/dist/nodes/lime-crm/transport/index.js +0 -24
  265. package/dist/nodes/lime-crm/transport/index.js.map +0 -1
  266. package/dist/nodes/lime-crm/transport/limeQuery.d.ts +0 -10
  267. package/dist/nodes/lime-crm/transport/limeQuery.js +0 -15
  268. package/dist/nodes/lime-crm/transport/limeQuery.js.map +0 -1
  269. package/dist/nodes/lime-crm/transport/limeobjects.d.ts +0 -7
  270. package/dist/nodes/lime-crm/transport/limeobjects.js +0 -134
  271. package/dist/nodes/lime-crm/transport/limeobjects.js.map +0 -1
  272. package/dist/nodes/lime-crm/transport/limetypes.d.ts +0 -6
  273. package/dist/nodes/lime-crm/transport/limetypes.js +0 -54
  274. package/dist/nodes/lime-crm/transport/limetypes.js.map +0 -1
  275. package/dist/nodes/lime-crm/transport/task.d.ts +0 -13
  276. package/dist/nodes/lime-crm/transport/task.js +0 -13
  277. package/dist/nodes/lime-crm/transport/task.js.map +0 -1
  278. package/dist/nodes/lime-crm/transport/webhooks.d.ts +0 -16
  279. package/dist/nodes/lime-crm/transport/webhooks.js +0 -43
  280. package/dist/nodes/lime-crm/transport/webhooks.js.map +0 -1
  281. package/dist/nodes/nodeResponse.d.ts +0 -12
  282. package/dist/nodes/nodeResponse.js +0 -3
  283. package/dist/nodes/nodeResponse.js.map +0 -1
  284. package/dist/package.json +0 -75
  285. package/dist/tsconfig.tsbuildinfo +0 -1
  286. package/docker-compose.yml +0 -52
  287. package/nodes/lime-crm/commons/constants.ts +0 -9
  288. package/nodes/lime-crm/commons/hmac.ts +0 -13
  289. package/nodes/lime-crm/commons/index.ts +0 -10
  290. package/nodes/lime-crm/commons/task.ts +0 -55
  291. package/nodes/lime-crm/commons/webhook.ts +0 -68
  292. package/nodes/lime-crm/methods/getEntitiesForErpSystem.ts +0 -11
  293. package/nodes/lime-crm/model.ts +0 -22
  294. package/nodes/lime-crm/resources/erpConnector/index.ts +0 -43
  295. package/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.ts +0 -69
  296. package/nodes/lime-crm/resources/erpConnector/operations/transform.operation.ts +0 -274
  297. package/nodes/lime-crm/resources/erpConnector/transform.ts +0 -49
  298. package/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.ts +0 -18
  299. package/nodes/lime-crm/resources/erpConnector/transformers/fortnox.ts +0 -201
  300. package/nodes/lime-crm/resources/erpConnector/transformers/index.ts +0 -1
  301. package/nodes/lime-crm/transport/erpConnector.ts +0 -21
  302. package/nodes/lime-crm/transport/task.ts +0 -32
  303. package/nodes/nodeResponse.ts +0 -13
  304. package/restore_script/README +0 -42
  305. package/restore_script/api_key_download.txt +0 -0
  306. package/restore_script/api_key_upload.txt +0 -0
  307. package/restore_script/cli.py +0 -73
  308. package/restore_script/download.py +0 -73
  309. package/restore_script/main.py +0 -19
  310. package/restore_script/poetry.lock +0 -162
  311. package/restore_script/pyproject.toml +0 -15
  312. package/restore_script/transfer.py +0 -41
  313. package/restore_script/upload.py +0 -66
  314. package/restore_script/utils.py +0 -42
  315. package/tests/fixtures/fortnox.ts +0 -182
  316. package/tests/transform.spec.ts +0 -187
@@ -1,139 +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 commons_1 = require("../../../commons");
7
- exports.description = {
8
- name: 'Create Object',
9
- value: 'create',
10
- description: 'Create a new object',
11
- action: 'Create an object',
12
- };
13
- exports.properties = [
14
- {
15
- displayName: 'LimeType',
16
- name: 'limeType',
17
- type: 'options',
18
- typeOptions: {
19
- loadOptionsMethod: 'getLimeTypes',
20
- },
21
- required: true,
22
- default: '',
23
- description: 'The type of entity to create',
24
- displayOptions: {
25
- show: {
26
- resource: [commons_1.LIMEOBJECT_RESOURCE],
27
- operation: ['create'],
28
- },
29
- },
30
- },
31
- {
32
- displayName: 'Input Method',
33
- name: 'inputMethod',
34
- type: 'options',
35
- options: [
36
- {
37
- name: 'Form Fields',
38
- value: 'fields',
39
- },
40
- {
41
- name: 'JSON',
42
- value: 'json',
43
- },
44
- ],
45
- default: 'fields',
46
- description: 'How to input the object data',
47
- displayOptions: {
48
- show: {
49
- resource: [commons_1.LIMEOBJECT_RESOURCE],
50
- operation: ['create'],
51
- },
52
- },
53
- },
54
- {
55
- displayName: 'Properties',
56
- name: 'properties',
57
- type: 'fixedCollection',
58
- placeholder: 'Add Property',
59
- typeOptions: {
60
- multipleValues: true,
61
- sortable: true,
62
- loadOptionsMethod: 'getLimeTypeProperties',
63
- loadOptionsDependsOn: ['limeType'],
64
- },
65
- default: {},
66
- displayOptions: {
67
- show: {
68
- resource: [commons_1.LIMEOBJECT_RESOURCE],
69
- operation: ['create'],
70
- inputMethod: ['fields'],
71
- },
72
- },
73
- options: [
74
- {
75
- displayName: 'Property',
76
- name: 'property',
77
- values: [
78
- {
79
- displayName: 'Property Name',
80
- name: 'name',
81
- type: 'options',
82
- typeOptions: {
83
- loadOptionsMethod: 'getLimeTypeProperties',
84
- loadOptionsDependsOn: ['limeType'],
85
- },
86
- default: '',
87
- description: 'Name of the property',
88
- },
89
- {
90
- displayName: 'Property Value',
91
- name: 'value',
92
- type: 'string',
93
- default: '',
94
- description: 'Value of the property',
95
- },
96
- ],
97
- },
98
- ],
99
- },
100
- {
101
- displayName: 'Object (JSON)',
102
- name: 'objectJson',
103
- type: 'json',
104
- default: '{\n "name": "New Company",\n "phone": "123-456-7890"\n}',
105
- description: 'Object to create in JSON format',
106
- displayOptions: {
107
- show: {
108
- resource: [commons_1.LIMEOBJECT_RESOURCE],
109
- operation: ['create'],
110
- inputMethod: ['json'],
111
- },
112
- },
113
- typeOptions: {
114
- alwaysOpenEditWindow: true,
115
- },
116
- },
117
- ];
118
- async function execute(i) {
119
- const limeType = this.getNodeParameter('limeType', i);
120
- const inputMethod = this.getNodeParameter('inputMethod', i);
121
- let objectData;
122
- if (inputMethod === 'json') {
123
- const jsonInput = this.getNodeParameter('objectJson', i);
124
- objectData = JSON.parse(jsonInput);
125
- }
126
- else {
127
- objectData = {};
128
- const propertiesInput = this.getNodeParameter('properties.property', i, []);
129
- if (propertiesInput && propertiesInput.length > 0) {
130
- for (const prop of propertiesInput) {
131
- if (prop.name && prop.value !== undefined) {
132
- objectData[prop.name] = prop.value;
133
- }
134
- }
135
- }
136
- }
137
- return await (0, transport_1.createLimeObject)(this, limeType, objectData);
138
- }
139
- //# sourceMappingURL=create.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/create.operation.ts"],"names":[],"mappings":";;;AA4HA,0BA2BC;AArJD,kDAAsD;AACtD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,qBAAqB;IAClC,MAAM,EAAE,kBAAkB;CAC7B,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,I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IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChD,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;gBACjC,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;oBACxC,UAAU,CAAC,IAAI,CAAC,IAAc,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;gBACjD,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,MAAM,IAAA,4BAAgB,EAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AAC9D,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<void>>;
@@ -1,51 +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 commons_1 = require("../../../commons");
7
- exports.description = {
8
- name: 'Delete Object',
9
- value: 'delete',
10
- description: 'Delete an existing object',
11
- action: 'Delete an object',
12
- };
13
- exports.properties = [
14
- {
15
- displayName: 'Lime Type',
16
- name: 'limeType',
17
- type: 'options',
18
- typeOptions: {
19
- loadOptionsMethod: 'getLimeTypes',
20
- },
21
- required: true,
22
- default: '',
23
- description: 'The type of entity to delete',
24
- displayOptions: {
25
- show: {
26
- resource: [commons_1.LIMEOBJECT_RESOURCE],
27
- operation: ['delete'],
28
- },
29
- },
30
- },
31
- {
32
- displayName: 'Object ID',
33
- name: 'objectId',
34
- type: 'string',
35
- required: true,
36
- default: '',
37
- description: 'The ID of the object to delete',
38
- displayOptions: {
39
- show: {
40
- resource: [commons_1.LIMEOBJECT_RESOURCE],
41
- operation: ['delete'],
42
- },
43
- },
44
- },
45
- ];
46
- async function execute(i) {
47
- const limeType = this.getNodeParameter('limeType', i);
48
- const objectId = this.getNodeParameter('objectId', i);
49
- return await (0, transport_1.deleteLimeObject)(this, limeType, objectId);
50
- }
51
- //# sourceMappingURL=delete.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/delete.operation.ts"],"names":[],"mappings":";;;AAiDA,0BAKC;AApDD,kDAAsD;AACtD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,kBAAkB;CAC7B,CAAC;AAEW,QAAA,UAAU,GAAsB;IAEzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;IAGD;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAEhE,OAAO,MAAM,IAAA,4BAAgB,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC5D,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<object[]>>;
@@ -1,103 +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 commons_1 = require("../../../commons");
7
- exports.description = {
8
- name: 'Fetch many',
9
- value: 'fetchMany',
10
- description: 'Fetch many Lime objects',
11
- action: 'Fetch many objects',
12
- };
13
- exports.properties = [
14
- {
15
- displayName: 'Lime Type',
16
- name: 'limeType',
17
- type: 'options',
18
- typeOptions: {
19
- loadOptionsMethod: 'getLimeTypes',
20
- },
21
- required: true,
22
- default: '',
23
- description: 'The type of entity to search for',
24
- displayOptions: {
25
- show: {
26
- resource: [commons_1.LIMEOBJECT_RESOURCE],
27
- operation: ['fetchMany'],
28
- },
29
- },
30
- },
31
- {
32
- displayName: 'Search Term',
33
- name: 'searchTerm',
34
- type: 'string',
35
- default: '',
36
- description: 'Term to search for',
37
- displayOptions: {
38
- show: {
39
- resource: [commons_1.LIMEOBJECT_RESOURCE],
40
- operation: ['fetchMany'],
41
- },
42
- },
43
- },
44
- {
45
- displayName: 'Search Fields',
46
- name: 'searchField',
47
- type: 'options',
48
- typeOptions: {
49
- loadOptionsMethod: 'getLimeTypeProperties',
50
- loadOptionsDependsOn: ['limeType'],
51
- },
52
- default: [],
53
- description: 'Fields to search in. If none selected, searches across all searchable fields',
54
- displayOptions: {
55
- show: {
56
- resource: [commons_1.LIMEOBJECT_RESOURCE],
57
- operation: ['fetchMany'],
58
- },
59
- },
60
- },
61
- {
62
- displayName: 'Limit',
63
- name: 'limit',
64
- type: 'number',
65
- default: 50,
66
- description: 'Max number of results to return',
67
- typeOptions: {
68
- minValue: 1,
69
- },
70
- displayOptions: {
71
- show: {
72
- resource: [commons_1.LIMEOBJECT_RESOURCE],
73
- operation: ['fetchMany'],
74
- },
75
- },
76
- },
77
- {
78
- displayName: 'Offset',
79
- name: 'offset',
80
- type: 'number',
81
- default: 0,
82
- description: 'Offset to first object to return',
83
- typeOptions: {
84
- minValue: 0,
85
- },
86
- displayOptions: {
87
- show: {
88
- resource: [commons_1.LIMEOBJECT_RESOURCE],
89
- operation: ['fetchMany'],
90
- },
91
- },
92
- },
93
- ];
94
- async function execute(i) {
95
- const limeType = this.getNodeParameter('limeType', i);
96
- const searchTerm = this.getNodeParameter('searchTerm', i, '');
97
- const searchField = this.getNodeParameter('searchField', i);
98
- const limit = this.getNodeParameter('limit', i, 50);
99
- const offset = this.getNodeParameter('offset', i, 0);
100
- const options = this.getNodeParameter('options', i, {});
101
- return await (0, transport_1.fetchManyLimeObjects)(this, limeType, searchField, searchTerm, limit, offset, options.sortField || null);
102
- }
103
- //# sourceMappingURL=fetchMany.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchMany.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.ts"],"names":[],"mappings":";;;AA8FA,0BAiBC;AA9GD,kDAA0D;AAC1D,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,yBAAyB;IACtC,MAAM,EAAE,oBAAoB;CAC/B,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE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,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,kCAAkC;QAC/C,WAAW,EAAE;YACT,QAAQ,EAAE,CAAC;SACd;QACD,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,WAAW,CAAC;aAC3B;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IACxE,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAW,CAAC;IACtE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAW,CAAC;IAC/D,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAExD,OAAO,MAAM,IAAA,gCAAoB,EAC7B,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,KAAK,EACL,MAAM,EACL,OAAO,CAAC,SAAoB,IAAI,IAAI,CACxC,CAAC;AACN,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>>;
@@ -1,51 +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 commons_1 = require("../../../commons");
7
- exports.description = {
8
- name: 'Get Object',
9
- value: 'get',
10
- description: 'Get a single object by ID',
11
- action: 'Get an object',
12
- };
13
- exports.properties = [
14
- {
15
- displayName: 'Lime Type',
16
- name: 'limeType',
17
- type: 'options',
18
- typeOptions: {
19
- loadOptionsMethod: 'getLimeTypes',
20
- },
21
- required: true,
22
- default: '',
23
- description: 'The type of entity to retrieve',
24
- displayOptions: {
25
- show: {
26
- resource: [commons_1.LIMEOBJECT_RESOURCE],
27
- operation: ['get'],
28
- },
29
- },
30
- },
31
- {
32
- displayName: 'Object ID',
33
- name: 'objectId',
34
- type: 'string',
35
- required: true,
36
- default: '',
37
- description: 'The ID of the object to retrieve',
38
- displayOptions: {
39
- show: {
40
- resource: [commons_1.LIMEOBJECT_RESOURCE],
41
- operation: ['get'],
42
- },
43
- },
44
- },
45
- ];
46
- async function execute(i) {
47
- const limeType = this.getNodeParameter('limeType', i);
48
- const objectId = this.getNodeParameter('objectId', i);
49
- return (0, transport_1.getLimeObject)(this, limeType, objectId);
50
- }
51
- //# sourceMappingURL=get.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/get.operation.ts"],"names":[],"mappings":";;;AAiDA,0BAIC;AAnDD,kDAAmD;AACnD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,eAAe;CAC1B,CAAC;AAEW,QAAA,UAAU,GAAsB;IAEzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,KAAK,CAAC;aACrB;SACJ;KACJ;IAGD;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kCAAkC;QAC/C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,KAAK,CAAC;aACrB;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,OAAO,IAAA,yBAAa,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AACnD,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<object[]>>;
@@ -1,103 +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 commons_1 = require("../../../commons");
7
- exports.description = {
8
- name: 'Search',
9
- value: 'search',
10
- description: 'Search for objects',
11
- action: 'Search for objects',
12
- };
13
- exports.properties = [
14
- {
15
- displayName: 'Lime Type',
16
- name: 'limeType',
17
- type: 'options',
18
- typeOptions: {
19
- loadOptionsMethod: 'getLimeTypes',
20
- },
21
- required: true,
22
- default: '',
23
- description: 'The type of entity to search for',
24
- displayOptions: {
25
- show: {
26
- resource: [commons_1.LIMEOBJECT_RESOURCE],
27
- operation: ['search'],
28
- },
29
- },
30
- },
31
- {
32
- displayName: 'Search Term',
33
- name: 'searchTerm',
34
- type: 'string',
35
- default: '',
36
- description: 'Term to search for',
37
- displayOptions: {
38
- show: {
39
- resource: [commons_1.LIMEOBJECT_RESOURCE],
40
- operation: ['search'],
41
- },
42
- },
43
- },
44
- {
45
- displayName: 'Search Fields',
46
- name: 'searchField',
47
- type: 'options',
48
- typeOptions: {
49
- loadOptionsMethod: 'getLimeTypeProperties',
50
- loadOptionsDependsOn: ['limeType'],
51
- },
52
- default: [],
53
- description: 'Fields to search in. If none selected, searches across all searchable fields',
54
- displayOptions: {
55
- show: {
56
- resource: [commons_1.LIMEOBJECT_RESOURCE],
57
- operation: ['search'],
58
- },
59
- },
60
- },
61
- {
62
- displayName: 'Limit',
63
- name: 'limit',
64
- type: 'number',
65
- default: 50,
66
- description: 'Max number of results to return',
67
- typeOptions: {
68
- minValue: 1,
69
- },
70
- displayOptions: {
71
- show: {
72
- resource: [commons_1.LIMEOBJECT_RESOURCE],
73
- operation: ['search'],
74
- },
75
- },
76
- },
77
- {
78
- displayName: 'Offset',
79
- name: 'offset',
80
- type: 'number',
81
- default: 0,
82
- description: 'Offset to first object to return',
83
- typeOptions: {
84
- minValue: 0,
85
- },
86
- displayOptions: {
87
- show: {
88
- resource: [commons_1.LIMEOBJECT_RESOURCE],
89
- operation: ['search'],
90
- },
91
- },
92
- },
93
- ];
94
- async function execute(i) {
95
- const limeType = this.getNodeParameter('limeType', i);
96
- const searchTerm = this.getNodeParameter('searchTerm', i, '');
97
- const searchField = this.getNodeParameter('searchField', i);
98
- const limit = this.getNodeParameter('limit', i, 50);
99
- const offset = this.getNodeParameter('offset', i, 0);
100
- const options = this.getNodeParameter('options', i, {});
101
- return await (0, transport_1.searchLimeObject)(this, limeType, searchField, searchTerm, limit, offset, options.sortField || null);
102
- }
103
- //# sourceMappingURL=search.operation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"search.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/search.operation.ts"],"names":[],"mappings":";;;AA8FA,0BAiBC;AA9GD,kDAAsD;AACtD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,oBAAoB;IACjC,MAAM,EAAE,oBAAoB;CAC/B,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kCAAkC;QAC/C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;IACD;QACI,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;IACD;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,uBAAuB;YAC1C,oBAA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AM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAW,CAAC;IAC/D,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAExD,OAAO,MAAM,IAAA,4BAAgB,EACzB,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,KAAK,EACL,MAAM,EACL,OAAO,CAAC,SAAoB,IAAI,IAAI,CACxC,CAAC;AACN,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>>;