@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.
- package/.github/workflows/lint.yml +4 -2
- package/.github/workflows/release.yml +8 -41
- package/.github/workflows/test-and-build.yml +1 -16
- package/.releaserc.json +2 -1
- package/CHANGELOG.md +155 -0
- package/Dockerfile +0 -21
- package/README.md +1 -1
- package/credentials/LimeCrmApi.credentials.ts +38 -1
- package/credentials/index.ts +2 -0
- package/eslint.config.mjs +2 -1
- package/knip.json +9 -0
- package/nodes/errorHandling.ts +60 -0
- 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 +89 -11
- package/nodes/lime-crm/LimeCrmTrigger.node.ts +75 -21
- package/nodes/lime-crm/index.ts +9 -0
- package/nodes/lime-crm/methods/getLimetypeProperties.ts +53 -8
- package/nodes/lime-crm/methods/getLimetypes.ts +15 -9
- package/nodes/lime-crm/methods/index.ts +6 -1
- package/nodes/lime-crm/methods/resourceMapping.ts +141 -0
- 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 +65 -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 +94 -0
- package/nodes/lime-crm/resources/admin/operations/getManyUsers.operation.ts +174 -0
- package/nodes/lime-crm/resources/admin/operations/getSingleUser.operation.ts +112 -0
- package/nodes/lime-crm/resources/admin/operations/index.ts +8 -0
- package/nodes/lime-crm/resources/data/index.ts +77 -31
- package/nodes/lime-crm/resources/data/operations/{createSingleObject.ts → createSingleObject.operation.ts} +64 -54
- package/nodes/lime-crm/resources/data/operations/{deleteSingleObject.ts → deleteSingleObject.operation.ts} +39 -6
- package/nodes/lime-crm/resources/data/operations/{getManyObjects.ts → getManyObjects.operation.ts} +195 -48
- package/nodes/lime-crm/resources/data/operations/{getSingleFile.ts → getSingleFile.operation.ts} +47 -11
- package/nodes/lime-crm/resources/data/operations/{getSingleObject.ts → getSingleObject.operation.ts} +50 -8
- package/nodes/lime-crm/resources/data/operations/index.ts +24 -0
- package/nodes/lime-crm/resources/data/operations/updateSingleObject.operation.ts +83 -61
- package/nodes/lime-crm/resources/metadata/index.ts +60 -16
- package/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.ts +18 -4
- package/nodes/lime-crm/resources/metadata/operations/{getSingleFileMetadata.ts → getSingleFileMetadata.operation.ts} +46 -26
- package/nodes/lime-crm/resources/metadata/operations/{getSingleLimetype.ts → getSingleLimetype.operation.ts} +30 -3
- package/nodes/lime-crm/resources/metadata/operations/index.ts +12 -0
- package/nodes/lime-crm/transport/commons.ts +90 -18
- package/nodes/lime-crm/transport/files.ts +161 -71
- package/nodes/lime-crm/transport/index.ts +35 -17
- package/nodes/lime-crm/transport/limeQuery.ts +43 -7
- package/nodes/lime-crm/transport/limeobjects.ts +113 -178
- package/nodes/lime-crm/transport/limetypes.ts +125 -48
- package/nodes/lime-crm/transport/users.ts +300 -0
- package/nodes/lime-crm/transport/webhooks.ts +97 -37
- package/nodes/lime-crm/{commons → utils}/files.ts +79 -26
- package/nodes/lime-crm/utils/hmac.ts +35 -0
- package/nodes/lime-crm/utils/index.ts +10 -0
- package/nodes/lime-crm/utils/webhook.ts +81 -0
- package/nodes/modules.ts +44 -0
- package/nodes/response.ts +54 -0
- package/package.json +21 -28
- package/tests/nodes/lime-crm/methods.spec.ts +91 -0
- package/tests/nodes/lime-crm/utils.spec.ts +273 -0
- package/typedoc.css +9 -0
- package/typedoc.json +19 -0
- package/.dockerignore +0 -1
- 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 -52
- package/nodes/lime-crm/commons/constants.ts +0 -9
- package/nodes/lime-crm/commons/hmac.ts +0 -13
- package/nodes/lime-crm/commons/index.ts +0 -10
- package/nodes/lime-crm/commons/task.ts +0 -55
- package/nodes/lime-crm/commons/webhook.ts +0 -68
- package/nodes/lime-crm/methods/getEntitiesForErpSystem.ts +0 -11
- package/nodes/lime-crm/model.ts +0 -22
- 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/transport/erpConnector.ts +0 -21
- package/nodes/lime-crm/transport/task.ts +0 -32
- package/nodes/nodeResponse.ts +0 -13
- package/restore_script/README +0 -42
- package/restore_script/api_key_download.txt +0 -0
- package/restore_script/api_key_upload.txt +0 -0
- package/restore_script/cli.py +0 -73
- package/restore_script/download.py +0 -73
- package/restore_script/main.py +0 -19
- package/restore_script/poetry.lock +0 -162
- package/restore_script/pyproject.toml +0 -15
- package/restore_script/transfer.py +0 -41
- package/restore_script/upload.py +0 -66
- package/restore_script/utils.py +0 -42
- package/tests/fixtures/fortnox.ts +0 -182
- package/tests/transform.spec.ts +0 -187
|
@@ -1,149 +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: 'Update',
|
|
9
|
-
value: 'update',
|
|
10
|
-
description: 'Update an existing record',
|
|
11
|
-
action: 'Update a record',
|
|
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 update',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
27
|
-
operation: ['update'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Record ID',
|
|
33
|
-
name: 'id',
|
|
34
|
-
type: 'string',
|
|
35
|
-
required: true,
|
|
36
|
-
default: '',
|
|
37
|
-
description: 'ID of the record to update',
|
|
38
|
-
displayOptions: {
|
|
39
|
-
show: {
|
|
40
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
41
|
-
operation: ['update'],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
displayName: 'Input Type',
|
|
47
|
-
name: 'inputType',
|
|
48
|
-
type: 'options',
|
|
49
|
-
options: [
|
|
50
|
-
{
|
|
51
|
-
name: 'Simple Fields',
|
|
52
|
-
value: 'simple',
|
|
53
|
-
description: 'Define fields using the UI',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: 'JSON Object',
|
|
57
|
-
value: 'json',
|
|
58
|
-
description: 'Define fields using JSON',
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
default: 'simple',
|
|
62
|
-
description: 'How to input the data',
|
|
63
|
-
displayOptions: {
|
|
64
|
-
show: {
|
|
65
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
66
|
-
operation: ['update'],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
displayName: 'Data',
|
|
72
|
-
name: 'jsonData',
|
|
73
|
-
type: 'json',
|
|
74
|
-
default: '{\n "name": "Updated Company Name",\n "phone": "+987654321"\n}',
|
|
75
|
-
description: 'Key-value pairs for fields to update. Property names must match the Lime CRM field names.',
|
|
76
|
-
typeOptions: {
|
|
77
|
-
alwaysOpenEditWindow: true,
|
|
78
|
-
},
|
|
79
|
-
displayOptions: {
|
|
80
|
-
show: {
|
|
81
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
82
|
-
operation: ['update'],
|
|
83
|
-
inputType: ['json'],
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
displayName: 'Fields',
|
|
89
|
-
name: 'simpleFields',
|
|
90
|
-
placeholder: 'Add Field',
|
|
91
|
-
type: 'fixedCollection',
|
|
92
|
-
typeOptions: {
|
|
93
|
-
multipleValues: true,
|
|
94
|
-
sortable: true,
|
|
95
|
-
},
|
|
96
|
-
default: {},
|
|
97
|
-
displayOptions: {
|
|
98
|
-
show: {
|
|
99
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
100
|
-
operation: ['update'],
|
|
101
|
-
inputType: ['simple'],
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
options: [
|
|
105
|
-
{
|
|
106
|
-
name: 'field',
|
|
107
|
-
displayName: 'Field',
|
|
108
|
-
values: [
|
|
109
|
-
{
|
|
110
|
-
displayName: 'Field Name',
|
|
111
|
-
name: 'fieldName',
|
|
112
|
-
type: 'options',
|
|
113
|
-
typeOptions: {
|
|
114
|
-
loadOptionsMethod: 'getLimeTypeProperties',
|
|
115
|
-
loadOptionsDependsOn: ['limeType'],
|
|
116
|
-
},
|
|
117
|
-
default: '',
|
|
118
|
-
description: 'The name of the field',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
displayName: 'Field Value',
|
|
122
|
-
name: 'fieldValue',
|
|
123
|
-
type: 'string',
|
|
124
|
-
default: '',
|
|
125
|
-
description: 'The value of the field',
|
|
126
|
-
},
|
|
127
|
-
],
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
},
|
|
131
|
-
];
|
|
132
|
-
async function execute(i) {
|
|
133
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
134
|
-
const id = this.getNodeParameter('id', i);
|
|
135
|
-
const inputType = this.getNodeParameter('inputType', i);
|
|
136
|
-
let body = {};
|
|
137
|
-
if (inputType === 'json') {
|
|
138
|
-
const jsonData = this.getNodeParameter('jsonData', i);
|
|
139
|
-
body = JSON.parse(jsonData);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
const simpleFields = this.getNodeParameter('simpleFields.field', i, []);
|
|
143
|
-
for (const field of simpleFields) {
|
|
144
|
-
body[field.fieldName] = field.fieldValue;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return (0, transport_1.updateLimeObject)(this, limeType, id, body);
|
|
148
|
-
}
|
|
149
|
-
//# sourceMappingURL=update.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/update.operation.ts"],"names":[],"mappings":";;;AAsIA,0BAsBC;AA3JD,kDAAsD;AACtD,8CAAuD;AAG1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,iBAAiB;CAC5B,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,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;IACD;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;QACzC,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,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,QAAQ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workflow';
|
|
2
|
-
export declare const queryFields: INodeProperties[];
|
|
3
|
-
export declare function queryOperations(this: IExecuteFunctions, { operation, i }: {
|
|
4
|
-
operation: string;
|
|
5
|
-
i: number;
|
|
6
|
-
}): Promise<import("../../../nodeResponse").NodeResponse<import("../../transport/limeQuery").QueryResponse> | null>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.queryFields = void 0;
|
|
37
|
-
exports.queryOperations = queryOperations;
|
|
38
|
-
const query = __importStar(require("./operations/query.operation"));
|
|
39
|
-
const commons_1 = require("../../commons");
|
|
40
|
-
exports.queryFields = [
|
|
41
|
-
{
|
|
42
|
-
displayName: 'Operation',
|
|
43
|
-
name: 'operation',
|
|
44
|
-
type: 'options',
|
|
45
|
-
noDataExpression: true,
|
|
46
|
-
displayOptions: {
|
|
47
|
-
show: {
|
|
48
|
-
resource: [commons_1.LIME_QUERY_RESOURCE],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
options: [
|
|
52
|
-
{
|
|
53
|
-
...query.description,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
default: 'query',
|
|
57
|
-
},
|
|
58
|
-
...query.properties,
|
|
59
|
-
];
|
|
60
|
-
async function queryOperations({ operation, i }) {
|
|
61
|
-
if (operation === 'query') {
|
|
62
|
-
return await query.execute.call(this, i);
|
|
63
|
-
}
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/lime-crm/resources/limeQuery/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,0CAQC;AAjCD,oEAAsD;AACtD,2CAAoD;AAEvC,QAAA,WAAW,GAAsB;IAC1C;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAA8B;QACpC,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;aAClC;SACJ;QACD,OAAO,EAAE;YACL;gBACI,GAAG,KAAK,CAAC,WAAW;aACvB;SACJ;QACD,OAAO,EAAE,OAAO;KACnB;IAED,GAAG,KAAK,CAAC,UAAU;CACtB,CAAC;AAEK,KAAK,UAAU,eAAe,CAEjC,EAAE,SAAS,EAAE,CAAC,EAAoC;IAElD,IAAI,SAAS,KAAK,OAAO,EAAE,CAAC;QACxB,OAAO,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
description: string;
|
|
6
|
-
action: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const properties: INodeProperties[];
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<import("../../../../nodeResponse").NodeResponse<import("../../../transport/limeQuery").QueryResponse>>;
|
|
@@ -1,191 +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: 'Query',
|
|
9
|
-
value: 'query',
|
|
10
|
-
description: 'Query objects with Lime Query API',
|
|
11
|
-
action: 'Query 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 query',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIME_QUERY_RESOURCE],
|
|
27
|
-
operation: ['query'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Response Format (JSON)',
|
|
33
|
-
name: 'responseFormat',
|
|
34
|
-
type: 'json',
|
|
35
|
-
required: true,
|
|
36
|
-
default: '{}',
|
|
37
|
-
description: 'Information that should be included in the response',
|
|
38
|
-
displayOptions: {
|
|
39
|
-
show: {
|
|
40
|
-
resource: [commons_1.LIME_QUERY_RESOURCE],
|
|
41
|
-
operation: ['query'],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
displayName: 'Filter (JSON)',
|
|
47
|
-
name: 'filter',
|
|
48
|
-
type: 'json',
|
|
49
|
-
default: '{}',
|
|
50
|
-
description: "The filter DSL defining the query's conditions",
|
|
51
|
-
displayOptions: {
|
|
52
|
-
show: {
|
|
53
|
-
resource: [commons_1.LIME_QUERY_RESOURCE],
|
|
54
|
-
operation: ['query'],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
displayName: 'Limit',
|
|
60
|
-
name: 'limit',
|
|
61
|
-
type: 'number',
|
|
62
|
-
default: null,
|
|
63
|
-
description: 'The maximum number of records to return',
|
|
64
|
-
displayOptions: {
|
|
65
|
-
show: {
|
|
66
|
-
resource: [commons_1.LIME_QUERY_RESOURCE],
|
|
67
|
-
operation: ['query'],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
displayName: 'Order By',
|
|
73
|
-
name: 'orderBy',
|
|
74
|
-
type: 'fixedCollection',
|
|
75
|
-
typeOptions: {
|
|
76
|
-
multipleValues: true,
|
|
77
|
-
},
|
|
78
|
-
default: {},
|
|
79
|
-
description: 'The list of properties by which to order the query results',
|
|
80
|
-
displayOptions: {
|
|
81
|
-
show: {
|
|
82
|
-
resource: [commons_1.LIME_QUERY_RESOURCE],
|
|
83
|
-
operation: ['query'],
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
options: [
|
|
87
|
-
{
|
|
88
|
-
name: 'orderByFields',
|
|
89
|
-
displayName: 'Order By Fields',
|
|
90
|
-
values: [
|
|
91
|
-
{
|
|
92
|
-
displayName: 'Property Name',
|
|
93
|
-
name: 'propertyName',
|
|
94
|
-
type: 'string',
|
|
95
|
-
description: 'Name of the property to order by',
|
|
96
|
-
default: '',
|
|
97
|
-
required: true,
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
displayName: 'Sort Direction',
|
|
101
|
-
name: 'sortDirection',
|
|
102
|
-
type: 'options',
|
|
103
|
-
default: 'ASC',
|
|
104
|
-
description: 'Ordering direction',
|
|
105
|
-
options: [
|
|
106
|
-
{ name: 'ASC', value: 'ASC' },
|
|
107
|
-
{ name: 'DESC', value: 'DESC' },
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
displayName: 'Offset',
|
|
116
|
-
name: 'offset',
|
|
117
|
-
type: 'number',
|
|
118
|
-
default: null,
|
|
119
|
-
description: 'The offset from which to start returning records. This operation requires the `Order By` field to be set',
|
|
120
|
-
displayOptions: {
|
|
121
|
-
show: {
|
|
122
|
-
resource: [commons_1.LIME_QUERY_RESOURCE],
|
|
123
|
-
operation: ['query'],
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
displayName: 'Active Object',
|
|
129
|
-
name: 'activeObject',
|
|
130
|
-
type: 'fixedCollection',
|
|
131
|
-
default: {},
|
|
132
|
-
description: "A dict with keys 'limetype' and 'id' representing the active object in the context of the query",
|
|
133
|
-
displayOptions: {
|
|
134
|
-
show: {
|
|
135
|
-
resource: [commons_1.LIME_QUERY_RESOURCE],
|
|
136
|
-
operation: ['query'],
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
options: [
|
|
140
|
-
{
|
|
141
|
-
name: 'activeObjectFields',
|
|
142
|
-
displayName: 'Active Object Fields',
|
|
143
|
-
values: [
|
|
144
|
-
{
|
|
145
|
-
displayName: 'Lime Type',
|
|
146
|
-
name: 'limetype',
|
|
147
|
-
type: 'options',
|
|
148
|
-
description: 'Name of the limetype',
|
|
149
|
-
default: '',
|
|
150
|
-
typeOptions: {
|
|
151
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
152
|
-
},
|
|
153
|
-
required: true,
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
displayName: 'Lime Object ID',
|
|
157
|
-
name: 'id',
|
|
158
|
-
type: 'number',
|
|
159
|
-
default: 0,
|
|
160
|
-
description: 'ID representing the object in the context of the query',
|
|
161
|
-
required: true,
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
},
|
|
167
|
-
];
|
|
168
|
-
async function execute(i) {
|
|
169
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
170
|
-
const responseFormat = this.getNodeParameter('responseFormat', i);
|
|
171
|
-
const filter = this.getNodeParameter('filter', i);
|
|
172
|
-
const limit = this.getNodeParameter('limit', i);
|
|
173
|
-
const offset = this.getNodeParameter('offset', i);
|
|
174
|
-
const orderByCollection = this.getNodeParameter('orderBy', i);
|
|
175
|
-
const activeObjectCollection = this.getNodeParameter('activeObject', i);
|
|
176
|
-
const orderBy = orderByCollection.orderByFields &&
|
|
177
|
-
orderByCollection.orderByFields.map((field) => ({
|
|
178
|
-
[field.propertyName]: field.sortDirection,
|
|
179
|
-
}));
|
|
180
|
-
const q = JSON.stringify({
|
|
181
|
-
limetype: limeType,
|
|
182
|
-
responseFormat: JSON.parse(responseFormat),
|
|
183
|
-
filter: JSON.parse(filter),
|
|
184
|
-
limit: limit,
|
|
185
|
-
offset: offset,
|
|
186
|
-
orderBy: orderBy,
|
|
187
|
-
});
|
|
188
|
-
const activeObject = JSON.stringify(activeObjectCollection.activeObjectFields);
|
|
189
|
-
return (0, transport_1.queryLimeObjects)(this, q, activeObject);
|
|
190
|
-
}
|
|
191
|
-
//# sourceMappingURL=query.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeQuery/operations/query.operation.ts"],"names":[],"mappings":";;;AA0LA,0BAmCC;AA3ND,kDAAsD;AACtD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,mCAAmC;IAChD,MAAM,EAAE,eAAe;CAC1B,CAAC;AAgBW,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,6BAA6B;QAC1C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,OAAO,CAAC;aACvB;SACJ;KACJ;IACD;QACI,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,qDAAqD;QAClE,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,OAAO,CAAC;aACvB;SACJ;KACJ;IACD;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,QAAQ;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Functions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const limeTypeFields: INodeProperties[];
|
|
3
|
-
export declare function limeTypeOperations(this: IExecuteFunctions, { operation, i }: {
|
|
4
|
-
operation: string;
|
|
5
|
-
i: number;
|
|
6
|
-
}): Promise<{
|
|
7
|
-
success: false;
|
|
8
|
-
error: string;
|
|
9
|
-
status?: number;
|
|
10
|
-
metadata?: Record<string, unknown>;
|
|
11
|
-
} | {
|
|
12
|
-
success: true;
|
|
13
|
-
data: import("../../commons").LimeType[];
|
|
14
|
-
} | {
|
|
15
|
-
success: true;
|
|
16
|
-
data: import("../../commons").LimeType;
|
|
17
|
-
} | {
|
|
18
|
-
success: true;
|
|
19
|
-
data: import("../../commons").LimeTypeProperty[];
|
|
20
|
-
} | null>;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.limeTypeFields = void 0;
|
|
37
|
-
exports.limeTypeOperations = limeTypeOperations;
|
|
38
|
-
const getType = __importStar(require("./operations/getType.operation"));
|
|
39
|
-
const listTypes = __importStar(require("./operations/listTypes.operation"));
|
|
40
|
-
const getProperties = __importStar(require("./operations/getProperties.operation"));
|
|
41
|
-
const commons_1 = require("../../commons");
|
|
42
|
-
exports.limeTypeFields = [
|
|
43
|
-
{
|
|
44
|
-
displayName: 'Operation',
|
|
45
|
-
name: 'operation',
|
|
46
|
-
type: 'options',
|
|
47
|
-
noDataExpression: true,
|
|
48
|
-
displayOptions: {
|
|
49
|
-
show: {
|
|
50
|
-
resource: [commons_1.LIMETYPE_RESOURCE],
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
options: [
|
|
54
|
-
{
|
|
55
|
-
...listTypes.description,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
...getType.description,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
...getProperties.description,
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
default: 'listTypes',
|
|
65
|
-
},
|
|
66
|
-
...getType.properties,
|
|
67
|
-
...getProperties.properties,
|
|
68
|
-
];
|
|
69
|
-
async function limeTypeOperations({ operation, i }) {
|
|
70
|
-
if (operation === 'listTypes') {
|
|
71
|
-
return await listTypes.execute.call(this);
|
|
72
|
-
}
|
|
73
|
-
if (operation === 'getType') {
|
|
74
|
-
return await getType.execute.call(this, i);
|
|
75
|
-
}
|
|
76
|
-
if (operation === 'getProperties') {
|
|
77
|
-
return await getProperties.execute.call(this, i);
|
|
78
|
-
}
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/lime-crm/resources/limeType/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,gDAeC;AAnDD,wEAA0D;AAC1D,4EAA8D;AAC9D,oFAAsE;AACtE,2CAAkD;AAErC,QAAA,cAAc,GAAsB;IAC7C;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAA8B;QACpC,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,2BAAiB,CAAC;aAChC;SACJ;QACD,OAAO,EAAE;YACL;gBACI,GAAG,SAAS,CAAC,WAAW;aAC3B;YACD;gBACI,GAAG,OAAO,CAAC,WAAW;aACzB;YACD;gBACI,GAAG,aAAa,CAAC,WAAW;aAC/B;SACJ;QACD,OAAO,EAAE,WAAW;KACvB;IAGD,GAAG,OAAO,CAAC,UAAU;IACrB,GAAG,aAAa,CAAC,UAAU;CAC9B,CAAC;AAGK,KAAK,UAAU,kBAAkB,CAEpC,EAAE,SAAS,EAAE,CAAC,EAAoC;IAElD,IAAI,SAAS,KAAK,WAAW,EAAE,CAAC;QAC5B,OAAO,MAAM,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IACD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,SAAS,KAAK,eAAe,EAAE,CAAC;QAChC,OAAO,MAAM,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
import { LimeTypeProperty } 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 const properties: INodeProperties[];
|
|
11
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<NodeResponse<LimeTypeProperty[]>>;
|
|
@@ -1,36 +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 Properties',
|
|
9
|
-
value: 'getProperties',
|
|
10
|
-
description: 'Get all properties for a specific entity type',
|
|
11
|
-
action: 'Get entity type properties',
|
|
12
|
-
};
|
|
13
|
-
exports.properties = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'Type Name',
|
|
16
|
-
name: 'limeType',
|
|
17
|
-
type: 'options',
|
|
18
|
-
typeOptions: {
|
|
19
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
20
|
-
},
|
|
21
|
-
required: true,
|
|
22
|
-
default: '',
|
|
23
|
-
description: 'The name of the entity type to get properties for',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIMETYPE_RESOURCE],
|
|
27
|
-
operation: ['getProperties'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
];
|
|
32
|
-
async function execute(i) {
|
|
33
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
34
|
-
return (0, transport_1.getProperties)(this, limeType);
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=getProperties.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getProperties.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeType/operations/getProperties.operation.ts"],"names":[],"mappings":";;;AAkCA,0BAOC;AAvCD,kDAAmD;AACnD,8CAAuE;AAG1D,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,4BAA4B;CACvC,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,mDAAmD;QAChE,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,2BAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,eAAe,CAAC;aAC/B;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAEhE,OAAO,IAAA,yBAAa,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACzC,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<import("../../../commons").LimeType>>;
|
|
@@ -1,36 +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 limetypes_1 = require("../../../transport/limetypes");
|
|
6
|
-
const commons_1 = require("../../../commons");
|
|
7
|
-
exports.description = {
|
|
8
|
-
name: 'Get Type',
|
|
9
|
-
value: 'getType',
|
|
10
|
-
description: 'Get details about a specific entity type',
|
|
11
|
-
action: 'Get entity type details',
|
|
12
|
-
};
|
|
13
|
-
exports.properties = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'Type Name',
|
|
16
|
-
name: 'limeType',
|
|
17
|
-
type: 'options',
|
|
18
|
-
typeOptions: {
|
|
19
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
20
|
-
},
|
|
21
|
-
required: true,
|
|
22
|
-
default: '',
|
|
23
|
-
description: 'The name of the entity type to get details for',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIMETYPE_RESOURCE],
|
|
27
|
-
operation: ['getType'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
];
|
|
32
|
-
async function execute(i) {
|
|
33
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
34
|
-
return (0, limetypes_1.getLimeType)(this, limeType);
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=getType.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getType.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeType/operations/getType.operation.ts"],"names":[],"mappings":";;;AA+BA,0BAIC;AAlCD,4DAA2D;AAC3D,8CAAqD;AAExC,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,yBAAyB;CACpC,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,gDAAgD;QAC7D,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,2BAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,SAAS,CAAC;aACzB;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAEhE,OAAO,IAAA,uBAAW,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AACvC,CAAC"}
|