@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.
- package/.github/workflows/lint.yml +3 -1
- package/.github/workflows/release.yml +2 -49
- package/.github/workflows/test-and-build.yml +1 -1
- package/.prettierignore +3 -1
- package/.releaserc.json +2 -1
- package/CHANGELOG.md +215 -0
- package/README.md +2 -9
- package/credentials/LimeCrmApi.credentials.ts +44 -7
- package/credentials/index.ts +2 -0
- package/eslint.config.mjs +2 -1
- package/knip.json +9 -0
- package/nodes/fortnox/Fortnox.node.ts +3 -3
- package/nodes/fortnox/FortnoxTrigger.node.ts +2 -2
- package/nodes/fortnox/index.ts +6 -0
- package/nodes/fortnox/resources/customers/index.ts +18 -22
- package/nodes/fortnox/resources/customers/operations/create.operation.ts +12 -8
- package/nodes/fortnox/resources/customers/operations/delete.operation.ts +10 -15
- package/nodes/fortnox/resources/customers/operations/get.operation.ts +10 -15
- package/nodes/fortnox/resources/customers/operations/getAll.operation.ts +1 -2
- package/nodes/fortnox/resources/customers/operations/index.ts +5 -0
- package/nodes/fortnox/resources/customers/operations/update.operation.ts +30 -30
- package/nodes/fortnox/resources/invoice/index.ts +16 -18
- package/nodes/fortnox/resources/invoice/model.ts +0 -4
- package/nodes/fortnox/resources/invoice/operations/create.operation.ts +1 -2
- package/nodes/fortnox/resources/invoice/operations/get.operation.ts +10 -15
- package/nodes/fortnox/resources/invoice/operations/getAll.operation.ts +1 -2
- package/nodes/fortnox/resources/invoice/operations/index.ts +4 -0
- package/nodes/fortnox/resources/invoice/operations/update.operation.ts +11 -16
- package/nodes/fortnox/transport/index.ts +14 -11
- package/nodes/index.ts +4 -0
- package/nodes/lime-crm/LimeCrmNode.node.ts +126 -69
- package/nodes/lime-crm/LimeCrmTrigger.node.ts +86 -53
- package/nodes/lime-crm/index.ts +9 -0
- package/nodes/lime-crm/methods/getLimetypeProperties.ts +110 -0
- package/nodes/lime-crm/methods/getLimetypes.ts +26 -0
- package/nodes/lime-crm/methods/index.ts +7 -3
- package/nodes/lime-crm/models/constants.ts +73 -0
- package/nodes/lime-crm/models/index.ts +21 -0
- package/nodes/lime-crm/models/limeobject.ts +13 -0
- package/nodes/lime-crm/models/limetype.ts +47 -0
- package/nodes/lime-crm/models/propertyTypes.ts +13 -0
- package/nodes/lime-crm/models/users.ts +46 -0
- package/nodes/lime-crm/models/webhook.ts +61 -0
- package/nodes/lime-crm/resources/admin/index.ts +89 -0
- package/nodes/lime-crm/resources/admin/operations/getManyUsers.operation.ts +166 -0
- package/nodes/lime-crm/resources/admin/operations/getSingleUser.operation.ts +113 -0
- package/nodes/lime-crm/resources/admin/operations/index.ts +8 -0
- package/nodes/lime-crm/resources/data/index.ts +117 -0
- package/nodes/lime-crm/resources/data/operations/createSingleObject.operation.ts +231 -0
- package/nodes/lime-crm/resources/data/operations/deleteSingleObject.operation.ts +83 -0
- package/nodes/lime-crm/resources/data/operations/getManyObjects.operation.ts +499 -0
- package/nodes/lime-crm/resources/data/operations/getSingleFile.operation.ts +162 -0
- package/nodes/lime-crm/resources/data/operations/getSingleObject.operation.ts +116 -0
- package/nodes/lime-crm/resources/data/operations/index.ts +24 -0
- package/nodes/lime-crm/resources/{limeObject/operations/update.operation.ts → data/operations/updateSingleObject.operation.ts} +91 -25
- package/nodes/lime-crm/resources/metadata/index.ts +97 -0
- package/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.ts +28 -0
- package/nodes/lime-crm/resources/metadata/operations/getSingleFileMetadata.operation.ts +147 -0
- package/nodes/lime-crm/resources/metadata/operations/getSingleLimetype.operation.ts +58 -0
- package/nodes/lime-crm/resources/metadata/operations/index.ts +12 -0
- package/nodes/lime-crm/transport/commons.ts +97 -27
- package/nodes/lime-crm/transport/files.ts +220 -0
- package/nodes/lime-crm/transport/index.ts +38 -13
- package/nodes/lime-crm/transport/limeQuery.ts +44 -10
- package/nodes/lime-crm/transport/limeobjects.ts +126 -168
- package/nodes/lime-crm/transport/limetypes.ts +169 -57
- package/nodes/lime-crm/transport/users.ts +264 -0
- package/nodes/lime-crm/transport/webhooks.ts +96 -37
- package/nodes/lime-crm/utils/files.ts +198 -0
- package/nodes/lime-crm/utils/hmac.ts +35 -0
- package/nodes/lime-crm/utils/index.ts +10 -0
- package/nodes/lime-crm/utils/propertyAdapters.ts +75 -0
- package/nodes/lime-crm/utils/webhook.ts +81 -0
- package/nodes/modules.ts +44 -0
- package/nodes/response.ts +16 -0
- package/package.json +21 -29
- package/restore_script/README +42 -0
- package/restore_script/api_key_download.txt +0 -0
- package/restore_script/api_key_upload.txt +0 -0
- package/restore_script/cli.py +73 -0
- package/restore_script/download.py +73 -0
- package/restore_script/main.py +19 -0
- package/restore_script/poetry.lock +162 -0
- package/restore_script/pyproject.toml +15 -0
- package/restore_script/transfer.py +41 -0
- package/restore_script/upload.py +66 -0
- package/restore_script/utils.py +42 -0
- package/tests/nodes/lime-crm/utils.spec.ts +238 -0
- package/typedoc.css +9 -0
- package/typedoc.json +19 -0
- package/.dockerignore +0 -1
- package/Dockerfile +0 -21
- package/dist/credentials/FortnoxApi.credentials.d.ts +0 -9
- package/dist/credentials/FortnoxApi.credentials.js +0 -57
- package/dist/credentials/FortnoxApi.credentials.js.map +0 -1
- package/dist/credentials/LimeCrmApi.credentials.d.ts +0 -9
- package/dist/credentials/LimeCrmApi.credentials.js +0 -66
- package/dist/credentials/LimeCrmApi.credentials.js.map +0 -1
- package/dist/nodes/fortnox/Fortnox.node.d.ts +0 -5
- package/dist/nodes/fortnox/Fortnox.node.js +0 -95
- package/dist/nodes/fortnox/Fortnox.node.js.map +0 -1
- package/dist/nodes/fortnox/Fortnox.node.json +0 -18
- package/dist/nodes/fortnox/FortnoxTrigger.node.d.ts +0 -5
- package/dist/nodes/fortnox/FortnoxTrigger.node.js +0 -155
- package/dist/nodes/fortnox/FortnoxTrigger.node.js.map +0 -1
- package/dist/nodes/fortnox/FortnoxTrigger.node.json +0 -18
- package/dist/nodes/fortnox/commons.d.ts +0 -25
- package/dist/nodes/fortnox/commons.js +0 -44
- package/dist/nodes/fortnox/commons.js.map +0 -1
- package/dist/nodes/fortnox/fortnoxLogo.svg +0 -15
- package/dist/nodes/fortnox/model.d.ts +0 -20
- package/dist/nodes/fortnox/model.js +0 -3
- package/dist/nodes/fortnox/model.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/filterParameters.d.ts +0 -2
- package/dist/nodes/fortnox/resources/customers/filterParameters.js +0 -31
- package/dist/nodes/fortnox/resources/customers/filterParameters.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/index.d.ts +0 -20
- package/dist/nodes/fortnox/resources/customers/index.js +0 -87
- package/dist/nodes/fortnox/resources/customers/index.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/model.d.ts +0 -99
- package/dist/nodes/fortnox/resources/customers/model.js +0 -3
- package/dist/nodes/fortnox/resources/customers/model.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/operations/create.operation.d.ts +0 -12
- package/dist/nodes/fortnox/resources/customers/operations/create.operation.js +0 -283
- package/dist/nodes/fortnox/resources/customers/operations/create.operation.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/operations/delete.operation.d.ts +0 -10
- package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js +0 -45
- package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/operations/get.operation.d.ts +0 -11
- package/dist/nodes/fortnox/resources/customers/operations/get.operation.js +0 -45
- package/dist/nodes/fortnox/resources/customers/operations/get.operation.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.d.ts +0 -11
- package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js +0 -68
- package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/operations/update.operation.d.ts +0 -12
- package/dist/nodes/fortnox/resources/customers/operations/update.operation.js +0 -276
- package/dist/nodes/fortnox/resources/customers/operations/update.operation.js.map +0 -1
- package/dist/nodes/fortnox/resources/customers/sortParameters.d.ts +0 -2
- package/dist/nodes/fortnox/resources/customers/sortParameters.js +0 -30
- package/dist/nodes/fortnox/resources/customers/sortParameters.js.map +0 -1
- package/dist/nodes/fortnox/resources/invoice/filterParameters.d.ts +0 -2
- package/dist/nodes/fortnox/resources/invoice/filterParameters.js +0 -72
- package/dist/nodes/fortnox/resources/invoice/filterParameters.js.map +0 -1
- package/dist/nodes/fortnox/resources/invoice/index.d.ts +0 -20
- package/dist/nodes/fortnox/resources/invoice/index.js +0 -81
- package/dist/nodes/fortnox/resources/invoice/index.js.map +0 -1
- package/dist/nodes/fortnox/resources/invoice/invoiceParameters.d.ts +0 -2
- package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js +0 -193
- package/dist/nodes/fortnox/resources/invoice/invoiceParameters.js.map +0 -1
- package/dist/nodes/fortnox/resources/invoice/model.d.ts +0 -150
- package/dist/nodes/fortnox/resources/invoice/model.js +0 -3
- package/dist/nodes/fortnox/resources/invoice/model.js.map +0 -1
- package/dist/nodes/fortnox/resources/invoice/operations/create.operation.d.ts +0 -11
- package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js +0 -64
- package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js.map +0 -1
- package/dist/nodes/fortnox/resources/invoice/operations/get.operation.d.ts +0 -11
- package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js +0 -44
- package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js.map +0 -1
- package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.d.ts +0 -11
- package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js +0 -92
- package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js.map +0 -1
- package/dist/nodes/fortnox/resources/invoice/operations/update.operation.d.ts +0 -11
- package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js +0 -71
- package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js.map +0 -1
- package/dist/nodes/fortnox/transport/errorCodes.d.ts +0 -1
- package/dist/nodes/fortnox/transport/errorCodes.js +0 -50
- package/dist/nodes/fortnox/transport/errorCodes.js.map +0 -1
- package/dist/nodes/fortnox/transport/index.d.ts +0 -4
- package/dist/nodes/fortnox/transport/index.js +0 -77
- package/dist/nodes/fortnox/transport/index.js.map +0 -1
- package/dist/nodes/lime-crm/LimeCrm.node.json +0 -18
- package/dist/nodes/lime-crm/LimeCrmNode.node.d.ts +0 -14
- package/dist/nodes/lime-crm/LimeCrmNode.node.js +0 -126
- package/dist/nodes/lime-crm/LimeCrmNode.node.js.map +0 -1
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.d.ts +0 -18
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.js +0 -215
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.js.map +0 -1
- package/dist/nodes/lime-crm/assets/lime-crm.svg +0 -1
- package/dist/nodes/lime-crm/commons/constants.d.ts +0 -5
- package/dist/nodes/lime-crm/commons/constants.js +0 -9
- package/dist/nodes/lime-crm/commons/constants.js.map +0 -1
- package/dist/nodes/lime-crm/commons/hmac.d.ts +0 -1
- package/dist/nodes/lime-crm/commons/hmac.js +0 -11
- package/dist/nodes/lime-crm/commons/hmac.js.map +0 -1
- package/dist/nodes/lime-crm/commons/index.d.ts +0 -3
- package/dist/nodes/lime-crm/commons/index.js +0 -12
- package/dist/nodes/lime-crm/commons/index.js.map +0 -1
- package/dist/nodes/lime-crm/commons/limetype.d.ts +0 -10
- package/dist/nodes/lime-crm/commons/limetype.js +0 -3
- package/dist/nodes/lime-crm/commons/limetype.js.map +0 -1
- package/dist/nodes/lime-crm/commons/task.d.ts +0 -14
- package/dist/nodes/lime-crm/commons/task.js +0 -48
- package/dist/nodes/lime-crm/commons/task.js.map +0 -1
- package/dist/nodes/lime-crm/commons/webhook.d.ts +0 -20
- package/dist/nodes/lime-crm/commons/webhook.js +0 -30
- package/dist/nodes/lime-crm/commons/webhook.js.map +0 -1
- package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.d.ts +0 -5
- package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js +0 -11
- package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js.map +0 -1
- package/dist/nodes/lime-crm/methods/getLimeTypeProperties.d.ts +0 -2
- package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js +0 -20
- package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js.map +0 -1
- package/dist/nodes/lime-crm/methods/getLimeTypes.d.ts +0 -2
- package/dist/nodes/lime-crm/methods/getLimeTypes.js +0 -20
- package/dist/nodes/lime-crm/methods/getLimeTypes.js.map +0 -1
- package/dist/nodes/lime-crm/methods/index.d.ts +0 -3
- package/dist/nodes/lime-crm/methods/index.js +0 -10
- package/dist/nodes/lime-crm/methods/index.js.map +0 -1
- package/dist/nodes/lime-crm/resources/erpConnector/index.d.ts +0 -23
- package/dist/nodes/lime-crm/resources/erpConnector/index.js +0 -67
- package/dist/nodes/lime-crm/resources/erpConnector/index.js.map +0 -1
- package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.d.ts +0 -26
- package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js +0 -65
- package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js +0 -220
- package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/erpConnector/transform.d.ts +0 -15
- package/dist/nodes/lime-crm/resources/erpConnector/transform.js +0 -11
- package/dist/nodes/lime-crm/resources/erpConnector/transform.js.map +0 -1
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.d.ts +0 -4
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.js +0 -7
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.js.map +0 -1
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.d.ts +0 -37
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.js +0 -124
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/fortnox.js.map +0 -1
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.d.ts +0 -1
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.js +0 -6
- package/dist/nodes/lime-crm/resources/erpConnector/transformers/index.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeObject/index.d.ts +0 -14
- package/dist/nodes/lime-crm/resources/limeObject/index.js +0 -88
- package/dist/nodes/lime-crm/resources/limeObject/index.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js +0 -139
- package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js +0 -51
- package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.js +0 -103
- package/dist/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js +0 -51
- package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js +0 -103
- package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js +0 -149
- package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeQuery/index.d.ts +0 -6
- package/dist/nodes/lime-crm/resources/limeQuery/index.js +0 -66
- package/dist/nodes/lime-crm/resources/limeQuery/index.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.js +0 -191
- package/dist/nodes/lime-crm/resources/limeQuery/operations/query.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeType/index.d.ts +0 -20
- package/dist/nodes/lime-crm/resources/limeType/index.js +0 -81
- package/dist/nodes/lime-crm/resources/limeType/index.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.d.ts +0 -11
- package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js +0 -36
- package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.d.ts +0 -9
- package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js +0 -36
- package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js.map +0 -1
- package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.d.ts +0 -10
- package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js +0 -15
- package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js.map +0 -1
- package/dist/nodes/lime-crm/transport/commons.d.ts +0 -5
- package/dist/nodes/lime-crm/transport/commons.js +0 -33
- package/dist/nodes/lime-crm/transport/commons.js.map +0 -1
- package/dist/nodes/lime-crm/transport/erpConnector.d.ts +0 -9
- package/dist/nodes/lime-crm/transport/erpConnector.js +0 -11
- package/dist/nodes/lime-crm/transport/erpConnector.js.map +0 -1
- package/dist/nodes/lime-crm/transport/index.d.ts +0 -6
- package/dist/nodes/lime-crm/transport/index.js +0 -24
- package/dist/nodes/lime-crm/transport/index.js.map +0 -1
- package/dist/nodes/lime-crm/transport/limeQuery.d.ts +0 -10
- package/dist/nodes/lime-crm/transport/limeQuery.js +0 -15
- package/dist/nodes/lime-crm/transport/limeQuery.js.map +0 -1
- package/dist/nodes/lime-crm/transport/limeobjects.d.ts +0 -7
- package/dist/nodes/lime-crm/transport/limeobjects.js +0 -134
- package/dist/nodes/lime-crm/transport/limeobjects.js.map +0 -1
- package/dist/nodes/lime-crm/transport/limetypes.d.ts +0 -6
- package/dist/nodes/lime-crm/transport/limetypes.js +0 -54
- package/dist/nodes/lime-crm/transport/limetypes.js.map +0 -1
- package/dist/nodes/lime-crm/transport/task.d.ts +0 -13
- package/dist/nodes/lime-crm/transport/task.js +0 -13
- package/dist/nodes/lime-crm/transport/task.js.map +0 -1
- package/dist/nodes/lime-crm/transport/webhooks.d.ts +0 -16
- package/dist/nodes/lime-crm/transport/webhooks.js +0 -43
- package/dist/nodes/lime-crm/transport/webhooks.js.map +0 -1
- package/dist/nodes/nodeResponse.d.ts +0 -12
- package/dist/nodes/nodeResponse.js +0 -3
- package/dist/nodes/nodeResponse.js.map +0 -1
- package/dist/package.json +0 -75
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/docker-compose.yml +0 -46
- package/nodes/lime-crm/commons/constants.ts +0 -10
- package/nodes/lime-crm/commons/hmac.ts +0 -13
- package/nodes/lime-crm/commons/index.ts +0 -10
- package/nodes/lime-crm/commons/limetype.ts +0 -11
- package/nodes/lime-crm/commons/task.ts +0 -55
- package/nodes/lime-crm/commons/webhook.ts +0 -56
- package/nodes/lime-crm/methods/getEntitiesForErpSystem.ts +0 -11
- package/nodes/lime-crm/methods/getLimeTypeProperties.ts +0 -27
- package/nodes/lime-crm/methods/getLimeTypes.ts +0 -23
- package/nodes/lime-crm/resources/erpConnector/index.ts +0 -43
- package/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.ts +0 -69
- package/nodes/lime-crm/resources/erpConnector/operations/transform.operation.ts +0 -274
- package/nodes/lime-crm/resources/erpConnector/transform.ts +0 -49
- package/nodes/lime-crm/resources/erpConnector/transformers/baseTransformer.ts +0 -18
- package/nodes/lime-crm/resources/erpConnector/transformers/fortnox.ts +0 -201
- package/nodes/lime-crm/resources/erpConnector/transformers/index.ts +0 -1
- package/nodes/lime-crm/resources/limeObject/index.ts +0 -64
- package/nodes/lime-crm/resources/limeObject/operations/create.operation.ts +0 -152
- package/nodes/lime-crm/resources/limeObject/operations/delete.operation.ts +0 -55
- package/nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.ts +0 -112
- package/nodes/lime-crm/resources/limeObject/operations/get.operation.ts +0 -54
- package/nodes/lime-crm/resources/limeQuery/index.ts +0 -40
- package/nodes/lime-crm/resources/limeQuery/operations/query.operation.ts +0 -222
- package/nodes/lime-crm/resources/limeType/index.ts +0 -58
- package/nodes/lime-crm/resources/limeType/operations/getProperties.operation.ts +0 -42
- package/nodes/lime-crm/resources/limeType/operations/getType.operation.ts +0 -36
- package/nodes/lime-crm/resources/limeType/operations/listTypes.operation.ts +0 -18
- package/nodes/lime-crm/transport/erpConnector.ts +0 -21
- package/nodes/lime-crm/transport/task.ts +0 -32
- package/nodes/nodeResponse.ts +0 -13
- package/tests/fixtures/fortnox.ts +0 -182
- package/tests/transform.spec.ts +0 -187
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
-
import { LimeType } from '../../../commons';
|
|
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 function execute(this: IExecuteFunctions): Promise<NodeResponse<LimeType[]>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const transport_1 = require("../../../transport");
|
|
6
|
-
exports.description = {
|
|
7
|
-
name: 'List Types',
|
|
8
|
-
value: 'listTypes',
|
|
9
|
-
description: 'Get a list of all available entity types',
|
|
10
|
-
action: 'List all entity types',
|
|
11
|
-
};
|
|
12
|
-
async function execute() {
|
|
13
|
-
return await (0, transport_1.getLimeTypesFromApi)(this);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=listTypes.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listTypes.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeType/operations/listTypes.operation.ts"],"names":[],"mappings":";;;AAaA,0BAIC;AAfD,kDAAyD;AAI5C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,uBAAuB;CAClC,CAAC;AAEK,KAAK,UAAU,OAAO;IAGzB,OAAO,MAAM,IAAA,+BAAmB,EAAC,IAAI,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IAllExecuteFunctions } from 'n8n-workflow';
|
|
2
|
-
import { NodeResponse } from '../../nodeResponse';
|
|
3
|
-
type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
4
|
-
export declare function callLimeApi<T>(nodeContext: IAllExecuteFunctions, method: HTTPMethod, url: string, options?: Record<string, unknown>): Promise<NodeResponse<T>>;
|
|
5
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callLimeApi = callLimeApi;
|
|
4
|
-
const commons_1 = require("../commons");
|
|
5
|
-
async function getLimeUrl(context) {
|
|
6
|
-
const credentials = await context.getCredentials(commons_1.LIME_CRM_API_CREDENTIAL_KEY);
|
|
7
|
-
return credentials.url;
|
|
8
|
-
}
|
|
9
|
-
async function callLimeApi(nodeContext, method, url, options) {
|
|
10
|
-
var _a;
|
|
11
|
-
try {
|
|
12
|
-
const response = await nodeContext.helpers.requestWithAuthentication.call(nodeContext, commons_1.LIME_CRM_API_CREDENTIAL_KEY, {
|
|
13
|
-
method: method,
|
|
14
|
-
url: url,
|
|
15
|
-
json: true,
|
|
16
|
-
baseURL: await getLimeUrl(nodeContext),
|
|
17
|
-
...options,
|
|
18
|
-
});
|
|
19
|
-
return {
|
|
20
|
-
success: true,
|
|
21
|
-
data: response,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
catch (error) {
|
|
25
|
-
return {
|
|
26
|
-
success: false,
|
|
27
|
-
error: error instanceof Error ? error.message : String(error),
|
|
28
|
-
status: (_a = error === null || error === void 0 ? void 0 : error.cause) === null || _a === void 0 ? void 0 : _a.status,
|
|
29
|
-
metadata: options,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=commons.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commons.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/transport/commons.ts"],"names":[],"mappings":";;AAaA,kCA+BC;AA5CD,wCAAyD;AAMzD,KAAK,UAAU,UAAU,CAAC,OAA6B;IACnD,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,cAAc,CAC5C,qCAA2B,CAC9B,CAAC;IACF,OAAO,WAAW,CAAC,GAAa,CAAC;AACrC,CAAC;AAEM,KAAK,UAAU,WAAW,CAC7B,WAAiC,EACjC,MAAkB,EAClB,GAAW,EACX,OAAiC;;IAEjC,IAAI,CAAC;QACD,MAAM,QAAQ,GACV,MAAM,WAAW,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CACpD,WAAW,EACX,qCAA2B,EAC3B;YACI,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,GAAG;YACR,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,MAAM,UAAU,CAAC,WAAW,CAAC;YACtC,GAAG,OAAO;SACb,CACJ,CAAC;QACN,OAAO;YACH,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,QAAQ;SACjB,CAAC;IACN,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO;YACH,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;YAC7D,MAAM,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,0CAAE,MAAM;YAC5B,QAAQ,EAAE,OAAO;SACpB,CAAC;IACN,CAAC;AACL,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IAllExecuteFunctions } from 'n8n-workflow';
|
|
2
|
-
import { LimeCrmData } from '../resources/erpConnector/transform';
|
|
3
|
-
import { NodeResponse } from '../../nodeResponse';
|
|
4
|
-
export interface CreateOrUpdateObjectsTaskResponse {
|
|
5
|
-
id: string;
|
|
6
|
-
status: string;
|
|
7
|
-
result: Record<string, unknown> | null;
|
|
8
|
-
}
|
|
9
|
-
export declare function startCreateOrUpdateObjectsTask(nodeContext: IAllExecuteFunctions, data: LimeCrmData): Promise<NodeResponse<CreateOrUpdateObjectsTaskResponse>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.startCreateOrUpdateObjectsTask = startCreateOrUpdateObjectsTask;
|
|
4
|
-
const commons_1 = require("./commons");
|
|
5
|
-
const ERP_CONNECTOR_URL = '/limepkg-erp-connector/';
|
|
6
|
-
async function startCreateOrUpdateObjectsTask(nodeContext, data) {
|
|
7
|
-
return await (0, commons_1.callLimeApi)(nodeContext, 'PUT', ERP_CONNECTOR_URL, {
|
|
8
|
-
body: data,
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=erpConnector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"erpConnector.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/transport/erpConnector.ts"],"names":[],"mappings":";;AAaA,wEAOC;AApBD,uCAAwC;AAKxC,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAQ7C,KAAK,UAAU,8BAA8B,CAChD,WAAiC,EACjC,IAAiB;IAEjB,OAAO,MAAM,IAAA,qBAAW,EAAC,WAAW,EAAE,KAAK,EAAE,iBAAiB,EAAE;QAC5D,IAAI,EAAE,IAAI;KACb,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { getSubscription, deleteSubscription, createSubscription, listSubscriptionsWithExistingData, } from './webhooks';
|
|
2
|
-
export { getLimeTypesFromApi, getProperties } from './limetypes';
|
|
3
|
-
export { createLimeObject, deleteLimeObject, updateLimeObject, getLimeObject, fetchManyLimeObjects, } from './limeobjects';
|
|
4
|
-
export { startCreateOrUpdateObjectsTask } from './erpConnector';
|
|
5
|
-
export { queryLimeObjects } from './limeQuery';
|
|
6
|
-
export { callLimeApi } from './commons';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callLimeApi = exports.queryLimeObjects = exports.startCreateOrUpdateObjectsTask = exports.fetchManyLimeObjects = exports.getLimeObject = exports.updateLimeObject = exports.deleteLimeObject = exports.createLimeObject = exports.getProperties = exports.getLimeTypesFromApi = exports.listSubscriptionsWithExistingData = exports.createSubscription = exports.deleteSubscription = exports.getSubscription = void 0;
|
|
4
|
-
var webhooks_1 = require("./webhooks");
|
|
5
|
-
Object.defineProperty(exports, "getSubscription", { enumerable: true, get: function () { return webhooks_1.getSubscription; } });
|
|
6
|
-
Object.defineProperty(exports, "deleteSubscription", { enumerable: true, get: function () { return webhooks_1.deleteSubscription; } });
|
|
7
|
-
Object.defineProperty(exports, "createSubscription", { enumerable: true, get: function () { return webhooks_1.createSubscription; } });
|
|
8
|
-
Object.defineProperty(exports, "listSubscriptionsWithExistingData", { enumerable: true, get: function () { return webhooks_1.listSubscriptionsWithExistingData; } });
|
|
9
|
-
var limetypes_1 = require("./limetypes");
|
|
10
|
-
Object.defineProperty(exports, "getLimeTypesFromApi", { enumerable: true, get: function () { return limetypes_1.getLimeTypesFromApi; } });
|
|
11
|
-
Object.defineProperty(exports, "getProperties", { enumerable: true, get: function () { return limetypes_1.getProperties; } });
|
|
12
|
-
var limeobjects_1 = require("./limeobjects");
|
|
13
|
-
Object.defineProperty(exports, "createLimeObject", { enumerable: true, get: function () { return limeobjects_1.createLimeObject; } });
|
|
14
|
-
Object.defineProperty(exports, "deleteLimeObject", { enumerable: true, get: function () { return limeobjects_1.deleteLimeObject; } });
|
|
15
|
-
Object.defineProperty(exports, "updateLimeObject", { enumerable: true, get: function () { return limeobjects_1.updateLimeObject; } });
|
|
16
|
-
Object.defineProperty(exports, "getLimeObject", { enumerable: true, get: function () { return limeobjects_1.getLimeObject; } });
|
|
17
|
-
Object.defineProperty(exports, "fetchManyLimeObjects", { enumerable: true, get: function () { return limeobjects_1.fetchManyLimeObjects; } });
|
|
18
|
-
var erpConnector_1 = require("./erpConnector");
|
|
19
|
-
Object.defineProperty(exports, "startCreateOrUpdateObjectsTask", { enumerable: true, get: function () { return erpConnector_1.startCreateOrUpdateObjectsTask; } });
|
|
20
|
-
var limeQuery_1 = require("./limeQuery");
|
|
21
|
-
Object.defineProperty(exports, "queryLimeObjects", { enumerable: true, get: function () { return limeQuery_1.queryLimeObjects; } });
|
|
22
|
-
var commons_1 = require("./commons");
|
|
23
|
-
Object.defineProperty(exports, "callLimeApi", { enumerable: true, get: function () { return commons_1.callLimeApi; } });
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/transport/index.ts"],"names":[],"mappings":";;;AAAA,uCAKoB;AAJhB,2GAAA,eAAe,OAAA;AACf,8GAAA,kBAAkB,OAAA;AAClB,8GAAA,kBAAkB,OAAA;AAClB,6HAAA,iCAAiC,OAAA;AAErC,yCAAiE;AAAxD,gHAAA,mBAAmB,OAAA;AAAE,0GAAA,aAAa,OAAA;AAE3C,6CAMuB;AALnB,+GAAA,gBAAgB,OAAA;AAChB,+GAAA,gBAAgB,OAAA;AAChB,+GAAA,gBAAgB,OAAA;AAChB,4GAAA,aAAa,OAAA;AACb,mHAAA,oBAAoB,OAAA;AAExB,+CAAgE;AAAvD,8HAAA,8BAA8B,OAAA;AACvC,yCAA+C;AAAtC,6GAAA,gBAAgB,OAAA;AACzB,qCAAwC;AAA/B,sGAAA,WAAW,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IAllExecuteFunctions } from 'n8n-workflow';
|
|
2
|
-
import { NodeResponse } from '../../nodeResponse';
|
|
3
|
-
interface IncludedProperties {
|
|
4
|
-
[key: string]: IncludedProperties | string | number | boolean | null;
|
|
5
|
-
}
|
|
6
|
-
export interface QueryResponse {
|
|
7
|
-
objects: IncludedProperties[];
|
|
8
|
-
}
|
|
9
|
-
export declare function queryLimeObjects(nodeContext: IAllExecuteFunctions, q: string, activeObject: string): Promise<NodeResponse<QueryResponse>>;
|
|
10
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.queryLimeObjects = queryLimeObjects;
|
|
4
|
-
const commons_1 = require("./commons");
|
|
5
|
-
const LIME_QUERY_URL = '/api/v1/query/';
|
|
6
|
-
async function queryLimeObjects(nodeContext, q, activeObject) {
|
|
7
|
-
const queryParameters = {
|
|
8
|
-
q: q,
|
|
9
|
-
activeObject: activeObject,
|
|
10
|
-
};
|
|
11
|
-
return await (0, commons_1.callLimeApi)(nodeContext, 'GET', LIME_QUERY_URL, {
|
|
12
|
-
qs: queryParameters,
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=limeQuery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"limeQuery.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/transport/limeQuery.ts"],"names":[],"mappings":";;AAcA,4CAaC;AAzBD,uCAAwC;AAExC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAUjC,KAAK,UAAU,gBAAgB,CAClC,WAAiC,EACjC,CAAS,EACT,YAAoB;IAEpB,MAAM,eAAe,GAAG;QACpB,CAAC,EAAE,CAAC;QACJ,YAAY,EAAE,YAAY;KAC7B,CAAC;IAEF,OAAO,MAAM,IAAA,qBAAW,EAAC,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE;QACzD,EAAE,EAAE,eAAe;KACtB,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IAllExecuteFunctions } from 'n8n-workflow';
|
|
2
|
-
import { NodeResponse } from '../../nodeResponse';
|
|
3
|
-
export declare function createLimeObject(nodeContext: IAllExecuteFunctions, limeType: string, data: object): Promise<NodeResponse<unknown>>;
|
|
4
|
-
export declare function deleteLimeObject(nodeContext: IAllExecuteFunctions, limeType: string, id: string): Promise<NodeResponse<void>>;
|
|
5
|
-
export declare function getLimeObject(nodeContext: IAllExecuteFunctions, limeType: string, id: string): Promise<NodeResponse<unknown>>;
|
|
6
|
-
export declare function updateLimeObject(nodeContext: IAllExecuteFunctions, limeType: string, id: string, data: object): Promise<NodeResponse<unknown>>;
|
|
7
|
-
export declare function fetchManyLimeObjects(nodeContext: IAllExecuteFunctions, limeType: string, searchField: string, searchTerm: string, limit: number, offset: number, sortField: string | null): Promise<NodeResponse<Array<object>>>;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createLimeObject = createLimeObject;
|
|
4
|
-
exports.deleteLimeObject = deleteLimeObject;
|
|
5
|
-
exports.getLimeObject = getLimeObject;
|
|
6
|
-
exports.updateLimeObject = updateLimeObject;
|
|
7
|
-
exports.fetchManyLimeObjects = fetchManyLimeObjects;
|
|
8
|
-
const commons_1 = require("./commons");
|
|
9
|
-
const LIMEOBJECT_URL = '/api/v1/limeobject/';
|
|
10
|
-
async function createLimeObject(nodeContext, limeType, data) {
|
|
11
|
-
const url = `${LIMEOBJECT_URL}${limeType}/`;
|
|
12
|
-
const response = await (0, commons_1.callLimeApi)(nodeContext, 'POST', url, {
|
|
13
|
-
body: data,
|
|
14
|
-
});
|
|
15
|
-
if (response.success)
|
|
16
|
-
return response;
|
|
17
|
-
return {
|
|
18
|
-
...response,
|
|
19
|
-
metadata: {
|
|
20
|
-
...response.metadata,
|
|
21
|
-
limeType: limeType,
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
async function deleteLimeObject(nodeContext, limeType, id) {
|
|
26
|
-
const url = `${LIMEOBJECT_URL}${limeType}/${id}/`;
|
|
27
|
-
const response = await (0, commons_1.callLimeApi)(nodeContext, 'DELETE', url);
|
|
28
|
-
if (response.success)
|
|
29
|
-
return response;
|
|
30
|
-
return {
|
|
31
|
-
...response,
|
|
32
|
-
metadata: {
|
|
33
|
-
...response.metadata,
|
|
34
|
-
limeType: limeType,
|
|
35
|
-
id: id,
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
async function getLimeObject(nodeContext, limeType, id) {
|
|
40
|
-
const url = `${LIMEOBJECT_URL}${limeType}/${id}/`;
|
|
41
|
-
const response = await (0, commons_1.callLimeApi)(nodeContext, 'GET', url);
|
|
42
|
-
if (response.success)
|
|
43
|
-
return response;
|
|
44
|
-
return {
|
|
45
|
-
...response,
|
|
46
|
-
metadata: {
|
|
47
|
-
...response.metadata,
|
|
48
|
-
limeType: limeType,
|
|
49
|
-
id: id,
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
async function updateLimeObject(nodeContext, limeType, id, data) {
|
|
54
|
-
const url = `${LIMEOBJECT_URL}${limeType}/${id}/`;
|
|
55
|
-
const response = await (0, commons_1.callLimeApi)(nodeContext, 'PUT', url, {
|
|
56
|
-
body: data,
|
|
57
|
-
});
|
|
58
|
-
if (response.success)
|
|
59
|
-
return response;
|
|
60
|
-
return {
|
|
61
|
-
...response,
|
|
62
|
-
metadata: {
|
|
63
|
-
...response.metadata,
|
|
64
|
-
limeType: limeType,
|
|
65
|
-
id: id,
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
async function _searchLimeObjectWithLimit(nodeContext, url, limit, offset, qs) {
|
|
70
|
-
var _a;
|
|
71
|
-
const returnData = [];
|
|
72
|
-
let hasMoreData = true;
|
|
73
|
-
let currentOffset = Math.max(0, offset);
|
|
74
|
-
const pageLimit = 50;
|
|
75
|
-
while (hasMoreData) {
|
|
76
|
-
qs._limit = Math.min(limit, pageLimit);
|
|
77
|
-
qs._offset = currentOffset;
|
|
78
|
-
const response = await (0, commons_1.callLimeApi)(nodeContext, 'GET', url, {
|
|
79
|
-
qs: qs,
|
|
80
|
-
});
|
|
81
|
-
if (!response.success)
|
|
82
|
-
return response;
|
|
83
|
-
const items = ((_a = response.data._embedded) === null || _a === void 0 ? void 0 : _a.limeobjects) || [];
|
|
84
|
-
if (items.length === 0) {
|
|
85
|
-
hasMoreData = false;
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
returnData.push(...items);
|
|
89
|
-
currentOffset += items.length;
|
|
90
|
-
limit -= items.length;
|
|
91
|
-
if (limit <= 0) {
|
|
92
|
-
hasMoreData = false;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return {
|
|
97
|
-
success: true,
|
|
98
|
-
data: { _embedded: { limeobjects: returnData } },
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
async function fetchManyLimeObjects(nodeContext, limeType, searchField, searchTerm, limit, offset, sortField) {
|
|
102
|
-
var _a, _b;
|
|
103
|
-
const url = `${LIMEOBJECT_URL}${limeType}/`;
|
|
104
|
-
const qs = {
|
|
105
|
-
...(searchField && searchTerm && { [searchField]: searchTerm }),
|
|
106
|
-
...(offset != null && offset > 0 && { _offset: offset }),
|
|
107
|
-
...(sortField != null && { _sort: sortField }),
|
|
108
|
-
};
|
|
109
|
-
let response;
|
|
110
|
-
if (limit) {
|
|
111
|
-
response = await _searchLimeObjectWithLimit(nodeContext, url, limit, offset, qs);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
response = await (0, commons_1.callLimeApi)(nodeContext, 'GET', url, {
|
|
115
|
-
qs: qs,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
if (response.success) {
|
|
119
|
-
return {
|
|
120
|
-
success: true,
|
|
121
|
-
data: (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a._embedded.limeobjects) !== null && _b !== void 0 ? _b : [],
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
success: response.success,
|
|
126
|
-
error: response.error,
|
|
127
|
-
status: response.status,
|
|
128
|
-
metadata: {
|
|
129
|
-
...response.metadata,
|
|
130
|
-
limeType: limeType,
|
|
131
|
-
},
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
//# sourceMappingURL=limeobjects.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"limeobjects.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/transport/limeobjects.ts"],"names":[],"mappings":";;AAYA,4CAkBC;AAED,4CAsBC;AAED,sCAkBC;AAED,4CAqBC;AAgDD,oDAmDC;AApMD,uCAAwC;AA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E,CACL,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,QAAQ,GAAG,MAAM,IAAA,qBAAW,EACxB,WAAW,EACX,KAAK,EACL,GAAG,EACH;YACI,EAAE,EAAE,EAAE;SACT,CACJ,CAAC;IACN,CAAC;IAED,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO;YACH,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,MAAA,MAAA,QAAQ,CAAC,IAAI,0CAAE,SAAS,CAAC,WAAW,mCAAI,EAAE;SACnD,CAAC;IACN,CAAC;IACD,OAAO;QACH,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,QAAQ,EAAE;YACN,GAAG,QAAQ,CAAC,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACrB;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IAllExecuteFunctions } from 'n8n-workflow';
|
|
2
|
-
import { LimeType, LimeTypeProperty } from '../commons';
|
|
3
|
-
import { NodeResponse } from '../../nodeResponse';
|
|
4
|
-
export declare function getLimeTypesFromApi(nodeContext: IAllExecuteFunctions): Promise<NodeResponse<LimeType[]>>;
|
|
5
|
-
export declare function getLimeType(nodeContext: IAllExecuteFunctions, limeType: string): Promise<NodeResponse<LimeType>>;
|
|
6
|
-
export declare function getProperties(nodeContext: IAllExecuteFunctions, limeType: string): Promise<NodeResponse<LimeTypeProperty[]>>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLimeTypesFromApi = getLimeTypesFromApi;
|
|
4
|
-
exports.getLimeType = getLimeType;
|
|
5
|
-
exports.getProperties = getProperties;
|
|
6
|
-
const _1 = require(".");
|
|
7
|
-
const LIMETYPE_URL = '/api/v1/limetype/';
|
|
8
|
-
async function getLimeTypesFromApi(nodeContext) {
|
|
9
|
-
var _a, _b;
|
|
10
|
-
const response = await (0, _1.callLimeApi)(nodeContext, 'GET', LIMETYPE_URL);
|
|
11
|
-
if (response.success) {
|
|
12
|
-
return {
|
|
13
|
-
success: true,
|
|
14
|
-
data: (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a._links.limetypes) !== null && _b !== void 0 ? _b : [],
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
return response;
|
|
18
|
-
}
|
|
19
|
-
async function getLimeType(nodeContext, limeType) {
|
|
20
|
-
const url = `${LIMETYPE_URL}${limeType}/`;
|
|
21
|
-
const response = await (0, _1.callLimeApi)(nodeContext, 'GET', url);
|
|
22
|
-
if (response.success)
|
|
23
|
-
return response;
|
|
24
|
-
return {
|
|
25
|
-
...response,
|
|
26
|
-
metadata: {
|
|
27
|
-
...response.metadata,
|
|
28
|
-
limetype: limeType,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
async function getProperties(nodeContext, limeType) {
|
|
33
|
-
var _a, _b;
|
|
34
|
-
const url = `${LIMETYPE_URL}${limeType}/`;
|
|
35
|
-
const response = await (0, _1.callLimeApi)(nodeContext, 'GET', url, {
|
|
36
|
-
qs: {
|
|
37
|
-
_embed: 'properties',
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
if (response.success) {
|
|
41
|
-
return {
|
|
42
|
-
success: true,
|
|
43
|
-
data: (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a._embedded.properties) !== null && _b !== void 0 ? _b : [],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
...response,
|
|
48
|
-
metadata: {
|
|
49
|
-
...response.metadata,
|
|
50
|
-
limetype: limeType,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=limetypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file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nB,OAAO;YACH,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,MAAA,MAAA,QAAQ,CAAC,IAAI,0CAAE,SAAS,CAAC,UAAU,mCAAI,EAAE;SAClD,CAAC;IACN,CAAC;IAED,OAAO;QACH,GAAG,QAAQ;QACX,QAAQ,EAAE;YACN,GAAG,QAAQ,CAAC,QAAQ;YACpB,QAAQ,EAAE,QAAQ;SACrB;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAllExecuteFunctions } from 'n8n-workflow';
|
|
2
|
-
interface Task {
|
|
3
|
-
id: string;
|
|
4
|
-
status: 'PENDING' | 'STARTED' | 'SUCCESS' | 'FAILURE' | 'REVOKED' | 'RETRY';
|
|
5
|
-
result: unknown;
|
|
6
|
-
}
|
|
7
|
-
interface GetTasksApiResponse {
|
|
8
|
-
_embedded: {
|
|
9
|
-
tasks: Task[];
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare function getTasks(nodeContext: IAllExecuteFunctions, taskId: string): Promise<import("../../nodeResponse").NodeResponse<GetTasksApiResponse>>;
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTasks = getTasks;
|
|
4
|
-
const commons_1 = require("./commons");
|
|
5
|
-
const TASK_URL = '/api/v1/task/';
|
|
6
|
-
async function getTasks(nodeContext, taskId) {
|
|
7
|
-
return await (0, commons_1.callLimeApi)(nodeContext, 'GET', TASK_URL, {
|
|
8
|
-
qs: {
|
|
9
|
-
id: taskId,
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=task.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/transport/task.ts"],"names":[],"mappings":";;AAiBA,4BAcC;AA9BD,uCAAwC;AAExC,MAAM,QAAQ,GAAG,eAAe,CAAC;AAc1B,KAAK,UAAU,QAAQ,CAC1B,WAAiC,EACjC,MAAc;IAEd,OAAO,MAAM,IAAA,qBAAW,EACpB,WAAW,EACX,KAAK,EACL,QAAQ,EACR;QACI,EAAE,EAAE;YACA,EAAE,EAAE,MAAM;SACb;KACJ,CACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Webhook } from '../commons';
|
|
2
|
-
import { IAllExecuteFunctions } from 'n8n-workflow';
|
|
3
|
-
import { NodeResponse } from '../../nodeResponse';
|
|
4
|
-
import { CreateWebhook } from '../commons/webhook';
|
|
5
|
-
interface ApiResponseWebhook {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
events: string[];
|
|
10
|
-
target_url: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function getSubscription(nodeContext: IAllExecuteFunctions, webhook: Webhook): Promise<NodeResponse<ApiResponseWebhook>>;
|
|
13
|
-
export declare function listSubscriptionsWithExistingData(nodeContext: IAllExecuteFunctions, webhook: Webhook): Promise<NodeResponse<ApiResponseWebhook[]>>;
|
|
14
|
-
export declare function createSubscription(nodeContext: IAllExecuteFunctions, webhook: CreateWebhook): Promise<NodeResponse<ApiResponseWebhook>>;
|
|
15
|
-
export declare function deleteSubscription(nodeContext: IAllExecuteFunctions, webhook: Webhook): Promise<NodeResponse<void>>;
|
|
16
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSubscription = getSubscription;
|
|
4
|
-
exports.listSubscriptionsWithExistingData = listSubscriptionsWithExistingData;
|
|
5
|
-
exports.createSubscription = createSubscription;
|
|
6
|
-
exports.deleteSubscription = deleteSubscription;
|
|
7
|
-
const _1 = require(".");
|
|
8
|
-
const SUBSCRIPTION_URL = 'api/v1/subscription/';
|
|
9
|
-
async function getSubscription(nodeContext, webhook) {
|
|
10
|
-
return await (0, _1.callLimeApi)(nodeContext, 'GET', `${SUBSCRIPTION_URL}${webhook.data.webhookId}`);
|
|
11
|
-
}
|
|
12
|
-
async function listSubscriptionsWithExistingData(nodeContext, webhook) {
|
|
13
|
-
return await (0, _1.callLimeApi)(nodeContext, 'GET', SUBSCRIPTION_URL, {
|
|
14
|
-
qs: {
|
|
15
|
-
events: webhook.events.join(','),
|
|
16
|
-
target_url: webhook.url,
|
|
17
|
-
enabled: true,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
async function createSubscription(nodeContext, webhook) {
|
|
22
|
-
return await (0, _1.callLimeApi)(nodeContext, 'POST', SUBSCRIPTION_URL, {
|
|
23
|
-
body: {
|
|
24
|
-
events: webhook.events,
|
|
25
|
-
target_url: webhook.url,
|
|
26
|
-
name: webhook.name,
|
|
27
|
-
secret: webhook.secret,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
async function deleteSubscription(nodeContext, webhook) {
|
|
32
|
-
const response = await (0, _1.callLimeApi)(nodeContext, 'DELETE', `${SUBSCRIPTION_URL}${webhook.data.webhookId}/`);
|
|
33
|
-
if (response.success)
|
|
34
|
-
return response;
|
|
35
|
-
return {
|
|
36
|
-
...response,
|
|
37
|
-
metadata: {
|
|
38
|
-
...response.metadata,
|
|
39
|
-
id: webhook.data.webhookId,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=webhooks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/transport/webhooks.ts"],"names":[],"mappings":";;AAgBA,0CASC;AAED,8EAWC;AAED,gDAYC;AAED,gDAmBC;AAxED,wBAAgC;AAKhC,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAUzC,KAAK,UAAU,eAA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,0 @@
|
|
|
1
|
-
type SuccessResponse<T> = {
|
|
2
|
-
success: true;
|
|
3
|
-
data: T;
|
|
4
|
-
};
|
|
5
|
-
type FailureResponse = {
|
|
6
|
-
success: false;
|
|
7
|
-
error: string;
|
|
8
|
-
status?: number;
|
|
9
|
-
metadata?: Record<string, unknown>;
|
|
10
|
-
};
|
|
11
|
-
export type NodeResponse<T> = SuccessResponse<T> | FailureResponse;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeResponse.js","sourceRoot":"","sources":["../../nodes/nodeResponse.ts"],"names":[],"mappings":""}
|
package/dist/package.json
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@limetech/n8n-nodes-lime",
|
|
3
|
-
"version": "0.4.0",
|
|
4
|
-
"description": "n8n node to connect to Lime CRM",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc && mkdir -p dist/nodes/lime-crm/assets && find nodes -name '*.svg' -exec cp {} dist/{} \\;",
|
|
9
|
-
"dev": "tsc --watch",
|
|
10
|
-
"dev:reload": "nodemon --watch dist --exec 'cp -R dist/* ~/.n8n/custom/dist/'",
|
|
11
|
-
"watch": "concurrently \"npm run dev\" \"npm run dev:reload\"",
|
|
12
|
-
"lint": "eslint --max-warnings=0 .",
|
|
13
|
-
"lint:fix": "eslint --max-warnings=0 . --fix",
|
|
14
|
-
"format": "prettier -c .",
|
|
15
|
-
"format:fix": "prettier --write .",
|
|
16
|
-
"test": "jest"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
"n8n",
|
|
20
|
-
"n8n-node",
|
|
21
|
-
"lime-crm",
|
|
22
|
-
"crm",
|
|
23
|
-
"n8n-community-node-package"
|
|
24
|
-
],
|
|
25
|
-
"n8n": {
|
|
26
|
-
"n8nNodesApiVersion": 1,
|
|
27
|
-
"credentials": [
|
|
28
|
-
"dist/credentials/LimeCrmApi.credentials.js",
|
|
29
|
-
"dist/credentials/FortnoxApi.credentials.js"
|
|
30
|
-
],
|
|
31
|
-
"nodes": [
|
|
32
|
-
"dist/nodes/lime-crm/LimeCrmNode.node.js",
|
|
33
|
-
"dist/nodes/lime-crm/LimeCrmTrigger.node.js",
|
|
34
|
-
"dist/nodes/fortnox/Fortnox.node.js",
|
|
35
|
-
"dist/nodes/fortnox/FortnoxTrigger.node.js"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@semantic-release/changelog": "^6.0.3",
|
|
40
|
-
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
41
|
-
"@semantic-release/git": "^10.0.1",
|
|
42
|
-
"@semantic-release/github": "^11.0.4",
|
|
43
|
-
"@semantic-release/release-notes-generator": "^14.0.3",
|
|
44
|
-
"@types/jest": "^30.0.0",
|
|
45
|
-
"@types/node": "^16.11.10",
|
|
46
|
-
"@types/request-promise-native": "^1.0.18",
|
|
47
|
-
"@types/ws": "^8.18.1",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
49
|
-
"@typescript-eslint/parser": "^8.38.0",
|
|
50
|
-
"concurrently": "^7.0.0",
|
|
51
|
-
"eslint": "^9.32.0",
|
|
52
|
-
"eslint-config-prettier": "^10.1.8",
|
|
53
|
-
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
54
|
-
"eslint-plugin-prettier": "^5.5.3",
|
|
55
|
-
"install": "^0.13.0",
|
|
56
|
-
"jest": "^30.0.5",
|
|
57
|
-
"nodemon": "^2.0.15",
|
|
58
|
-
"npm": "^11.5.2",
|
|
59
|
-
"prettier": "^3.6.2",
|
|
60
|
-
"semantic-release": "^24.2.7",
|
|
61
|
-
"ts-jest": "^29.4.1",
|
|
62
|
-
"typescript": "^5.9.2"
|
|
63
|
-
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"@limetech/eslint-config": "^3.0.2",
|
|
66
|
-
"@semantic-release/exec": "^7.1.0",
|
|
67
|
-
"currency-codes": "^2.2.0",
|
|
68
|
-
"request": "^2.88.2",
|
|
69
|
-
"request-promise-native": "^1.0.9",
|
|
70
|
-
"ws": "^8.18.3"
|
|
71
|
-
},
|
|
72
|
-
"peerDependencies": {
|
|
73
|
-
"n8n-workflow": "*"
|
|
74
|
-
}
|
|
75
|
-
}
|