@limetech/n8n-nodes-lime 0.5.0 → 2.3.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/lint.yml +3 -1
- package/.github/workflows/release.yml +2 -49
- package/.github/workflows/test-and-build.yml +1 -1
- package/.releaserc.json +2 -1
- package/CHANGELOG.md +122 -0
- 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/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 +81 -11
- package/nodes/lime-crm/LimeCrmTrigger.node.ts +70 -30
- package/nodes/lime-crm/index.ts +9 -0
- package/nodes/lime-crm/methods/getLimetypeProperties.ts +51 -8
- package/nodes/lime-crm/methods/getLimetypes.ts +14 -9
- package/nodes/lime-crm/methods/index.ts +1 -1
- 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 +68 -31
- package/nodes/lime-crm/resources/data/operations/{createSingleObject.ts → createSingleObject.operation.ts} +82 -26
- package/nodes/lime-crm/resources/data/operations/{deleteSingleObject.ts → deleteSingleObject.operation.ts} +32 -4
- package/nodes/lime-crm/resources/data/operations/{getManyObjects.ts → getManyObjects.operation.ts} +191 -48
- package/nodes/lime-crm/resources/data/operations/{getSingleFile.ts → getSingleFile.operation.ts} +36 -12
- package/nodes/lime-crm/resources/data/operations/{getSingleObject.ts → getSingleObject.operation.ts} +39 -6
- package/nodes/lime-crm/resources/data/operations/index.ts +24 -0
- package/nodes/lime-crm/resources/data/operations/updateSingleObject.operation.ts +55 -17
- package/nodes/lime-crm/resources/metadata/index.ts +56 -16
- package/nodes/lime-crm/resources/metadata/operations/getAllLimetypes.operation.ts +15 -5
- package/nodes/lime-crm/resources/metadata/operations/{getSingleFileMetadata.ts → getSingleFileMetadata.operation.ts} +31 -14
- package/nodes/lime-crm/resources/metadata/operations/{getSingleLimetype.ts → getSingleLimetype.operation.ts} +23 -1
- package/nodes/lime-crm/resources/metadata/operations/index.ts +12 -0
- package/nodes/lime-crm/transport/commons.ts +86 -28
- package/nodes/lime-crm/transport/files.ts +149 -84
- package/nodes/lime-crm/transport/index.ts +35 -17
- package/nodes/lime-crm/transport/limeQuery.ts +42 -6
- package/nodes/lime-crm/transport/limeobjects.ts +102 -179
- package/nodes/lime-crm/transport/limetypes.ts +126 -70
- package/nodes/lime-crm/transport/users.ts +264 -0
- package/nodes/lime-crm/transport/webhooks.ts +96 -37
- package/nodes/lime-crm/{commons → utils}/files.ts +75 -39
- 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 +18 -27
- 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 -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/tests/fixtures/fortnox.ts +0 -182
- package/tests/transform.spec.ts +0 -187
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const transport_1 = require("../../../transport");
|
|
6
|
-
const commons_1 = require("../../../commons");
|
|
7
|
-
exports.description = {
|
|
8
|
-
name: 'Create Object',
|
|
9
|
-
value: 'create',
|
|
10
|
-
description: 'Create a new object',
|
|
11
|
-
action: 'Create an object',
|
|
12
|
-
};
|
|
13
|
-
exports.properties = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'LimeType',
|
|
16
|
-
name: 'limeType',
|
|
17
|
-
type: 'options',
|
|
18
|
-
typeOptions: {
|
|
19
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
20
|
-
},
|
|
21
|
-
required: true,
|
|
22
|
-
default: '',
|
|
23
|
-
description: 'The type of entity to create',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
27
|
-
operation: ['create'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Input Method',
|
|
33
|
-
name: 'inputMethod',
|
|
34
|
-
type: 'options',
|
|
35
|
-
options: [
|
|
36
|
-
{
|
|
37
|
-
name: 'Form Fields',
|
|
38
|
-
value: 'fields',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'JSON',
|
|
42
|
-
value: 'json',
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
default: 'fields',
|
|
46
|
-
description: 'How to input the object data',
|
|
47
|
-
displayOptions: {
|
|
48
|
-
show: {
|
|
49
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
50
|
-
operation: ['create'],
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
displayName: 'Properties',
|
|
56
|
-
name: 'properties',
|
|
57
|
-
type: 'fixedCollection',
|
|
58
|
-
placeholder: 'Add Property',
|
|
59
|
-
typeOptions: {
|
|
60
|
-
multipleValues: true,
|
|
61
|
-
sortable: true,
|
|
62
|
-
loadOptionsMethod: 'getLimeTypeProperties',
|
|
63
|
-
loadOptionsDependsOn: ['limeType'],
|
|
64
|
-
},
|
|
65
|
-
default: {},
|
|
66
|
-
displayOptions: {
|
|
67
|
-
show: {
|
|
68
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
69
|
-
operation: ['create'],
|
|
70
|
-
inputMethod: ['fields'],
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
options: [
|
|
74
|
-
{
|
|
75
|
-
displayName: 'Property',
|
|
76
|
-
name: 'property',
|
|
77
|
-
values: [
|
|
78
|
-
{
|
|
79
|
-
displayName: 'Property Name',
|
|
80
|
-
name: 'name',
|
|
81
|
-
type: 'options',
|
|
82
|
-
typeOptions: {
|
|
83
|
-
loadOptionsMethod: 'getLimeTypeProperties',
|
|
84
|
-
loadOptionsDependsOn: ['limeType'],
|
|
85
|
-
},
|
|
86
|
-
default: '',
|
|
87
|
-
description: 'Name of the property',
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
displayName: 'Property Value',
|
|
91
|
-
name: 'value',
|
|
92
|
-
type: 'string',
|
|
93
|
-
default: '',
|
|
94
|
-
description: 'Value of the property',
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
displayName: 'Object (JSON)',
|
|
102
|
-
name: 'objectJson',
|
|
103
|
-
type: 'json',
|
|
104
|
-
default: '{\n "name": "New Company",\n "phone": "123-456-7890"\n}',
|
|
105
|
-
description: 'Object to create in JSON format',
|
|
106
|
-
displayOptions: {
|
|
107
|
-
show: {
|
|
108
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
109
|
-
operation: ['create'],
|
|
110
|
-
inputMethod: ['json'],
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
typeOptions: {
|
|
114
|
-
alwaysOpenEditWindow: true,
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
];
|
|
118
|
-
async function execute(i) {
|
|
119
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
120
|
-
const inputMethod = this.getNodeParameter('inputMethod', i);
|
|
121
|
-
let objectData;
|
|
122
|
-
if (inputMethod === 'json') {
|
|
123
|
-
const jsonInput = this.getNodeParameter('objectJson', i);
|
|
124
|
-
objectData = JSON.parse(jsonInput);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
objectData = {};
|
|
128
|
-
const propertiesInput = this.getNodeParameter('properties.property', i, []);
|
|
129
|
-
if (propertiesInput && propertiesInput.length > 0) {
|
|
130
|
-
for (const prop of propertiesInput) {
|
|
131
|
-
if (prop.name && prop.value !== undefined) {
|
|
132
|
-
objectData[prop.name] = prop.value;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return await (0, transport_1.createLimeObject)(this, limeType, objectData);
|
|
138
|
-
}
|
|
139
|
-
//# sourceMappingURL=create.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/create.operation.ts"],"names":[],"mappings":";;;AA4HA,0BA2BC;AArJD,kDAAsD;AACtD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,qBAAqB;IAClC,MAAM,EAAE,kBAAkB;CAC7B,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,UAAU;QACvB,IAAI,E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M,eAAe,GAAG,IAAI,CAAC,gBAAgB,CACzC,qBAAqB,EACrB,CAAC,EACD,EAAE,CACY,CAAC;QAEnB,IAAI,eAAe,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChD,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;gBACjC,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;oBACxC,UAAU,CAAC,IAAI,CAAC,IAAc,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;gBACjD,CAAC;YACL,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,MAAM,IAAA,4BAAgB,EAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
description: string;
|
|
6
|
-
action: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const properties: INodeProperties[];
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<import("../../../../nodeResponse").NodeResponse<void>>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const transport_1 = require("../../../transport");
|
|
6
|
-
const commons_1 = require("../../../commons");
|
|
7
|
-
exports.description = {
|
|
8
|
-
name: 'Delete Object',
|
|
9
|
-
value: 'delete',
|
|
10
|
-
description: 'Delete an existing object',
|
|
11
|
-
action: 'Delete an object',
|
|
12
|
-
};
|
|
13
|
-
exports.properties = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'Lime Type',
|
|
16
|
-
name: 'limeType',
|
|
17
|
-
type: 'options',
|
|
18
|
-
typeOptions: {
|
|
19
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
20
|
-
},
|
|
21
|
-
required: true,
|
|
22
|
-
default: '',
|
|
23
|
-
description: 'The type of entity to delete',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
27
|
-
operation: ['delete'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Object ID',
|
|
33
|
-
name: 'objectId',
|
|
34
|
-
type: 'string',
|
|
35
|
-
required: true,
|
|
36
|
-
default: '',
|
|
37
|
-
description: 'The ID of the object to delete',
|
|
38
|
-
displayOptions: {
|
|
39
|
-
show: {
|
|
40
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
41
|
-
operation: ['delete'],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
];
|
|
46
|
-
async function execute(i) {
|
|
47
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
48
|
-
const objectId = this.getNodeParameter('objectId', i);
|
|
49
|
-
return await (0, transport_1.deleteLimeObject)(this, limeType, objectId);
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=delete.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/delete.operation.ts"],"names":[],"mappings":";;;AAiDA,0BAKC;AApDD,kDAAsD;AACtD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,kBAAkB;CAC7B,CAAC;AAEW,QAAA,UAAU,GAAsB;IAEzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;IAGD;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAEhE,OAAO,MAAM,IAAA,4BAAgB,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
description: string;
|
|
6
|
-
action: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const properties: INodeProperties[];
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<import("../../../../nodeResponse").NodeResponse<object[]>>;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const transport_1 = require("../../../transport");
|
|
6
|
-
const commons_1 = require("../../../commons");
|
|
7
|
-
exports.description = {
|
|
8
|
-
name: 'Fetch many',
|
|
9
|
-
value: 'fetchMany',
|
|
10
|
-
description: 'Fetch many Lime objects',
|
|
11
|
-
action: 'Fetch many objects',
|
|
12
|
-
};
|
|
13
|
-
exports.properties = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'Lime Type',
|
|
16
|
-
name: 'limeType',
|
|
17
|
-
type: 'options',
|
|
18
|
-
typeOptions: {
|
|
19
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
20
|
-
},
|
|
21
|
-
required: true,
|
|
22
|
-
default: '',
|
|
23
|
-
description: 'The type of entity to search for',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
27
|
-
operation: ['fetchMany'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Search Term',
|
|
33
|
-
name: 'searchTerm',
|
|
34
|
-
type: 'string',
|
|
35
|
-
default: '',
|
|
36
|
-
description: 'Term to search for',
|
|
37
|
-
displayOptions: {
|
|
38
|
-
show: {
|
|
39
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
40
|
-
operation: ['fetchMany'],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
displayName: 'Search Fields',
|
|
46
|
-
name: 'searchField',
|
|
47
|
-
type: 'options',
|
|
48
|
-
typeOptions: {
|
|
49
|
-
loadOptionsMethod: 'getLimeTypeProperties',
|
|
50
|
-
loadOptionsDependsOn: ['limeType'],
|
|
51
|
-
},
|
|
52
|
-
default: [],
|
|
53
|
-
description: 'Fields to search in. If none selected, searches across all searchable fields',
|
|
54
|
-
displayOptions: {
|
|
55
|
-
show: {
|
|
56
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
57
|
-
operation: ['fetchMany'],
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
displayName: 'Limit',
|
|
63
|
-
name: 'limit',
|
|
64
|
-
type: 'number',
|
|
65
|
-
default: 50,
|
|
66
|
-
description: 'Max number of results to return',
|
|
67
|
-
typeOptions: {
|
|
68
|
-
minValue: 1,
|
|
69
|
-
},
|
|
70
|
-
displayOptions: {
|
|
71
|
-
show: {
|
|
72
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
73
|
-
operation: ['fetchMany'],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
displayName: 'Offset',
|
|
79
|
-
name: 'offset',
|
|
80
|
-
type: 'number',
|
|
81
|
-
default: 0,
|
|
82
|
-
description: 'Offset to first object to return',
|
|
83
|
-
typeOptions: {
|
|
84
|
-
minValue: 0,
|
|
85
|
-
},
|
|
86
|
-
displayOptions: {
|
|
87
|
-
show: {
|
|
88
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
89
|
-
operation: ['fetchMany'],
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
];
|
|
94
|
-
async function execute(i) {
|
|
95
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
96
|
-
const searchTerm = this.getNodeParameter('searchTerm', i, '');
|
|
97
|
-
const searchField = this.getNodeParameter('searchField', i);
|
|
98
|
-
const limit = this.getNodeParameter('limit', i, 50);
|
|
99
|
-
const offset = this.getNodeParameter('offset', i, 0);
|
|
100
|
-
const options = this.getNodeParameter('options', i, {});
|
|
101
|
-
return await (0, transport_1.fetchManyLimeObjects)(this, limeType, searchField, searchTerm, limit, offset, options.sortField || null);
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=fetchMany.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetchMany.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/fetchMany.operation.ts"],"names":[],"mappings":";;;AA8FA,0BAiBC;AA9GD,kDAA0D;AAC1D,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,yBAAyB;IACtC,MAAM,EAAE,oBAAoB;CAC/B,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kCAAkC;QAC/C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,WAAW,CAAC;aAC3B;SACJ;KACJ;IACD;QACI,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,WAAW,CAAC;aAC3B;SACJ;KACJ;IACD;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,uBAAuB;YAC1C,oBAAoB,EAAE,CAAC,UAAU,CAAC;SACrC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EACP,8EAA8E;QAClF,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE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AC;IAExD,OAAO,MAAM,IAAA,gCAAoB,EAC7B,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,KAAK,EACL,MAAM,EACL,OAAO,CAAC,SAAoB,IAAI,IAAI,CACxC,CAAC;AACN,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
description: string;
|
|
6
|
-
action: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const properties: INodeProperties[];
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<import("../../../../nodeResponse").NodeResponse<unknown>>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const transport_1 = require("../../../transport");
|
|
6
|
-
const commons_1 = require("../../../commons");
|
|
7
|
-
exports.description = {
|
|
8
|
-
name: 'Get Object',
|
|
9
|
-
value: 'get',
|
|
10
|
-
description: 'Get a single object by ID',
|
|
11
|
-
action: 'Get an object',
|
|
12
|
-
};
|
|
13
|
-
exports.properties = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'Lime Type',
|
|
16
|
-
name: 'limeType',
|
|
17
|
-
type: 'options',
|
|
18
|
-
typeOptions: {
|
|
19
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
20
|
-
},
|
|
21
|
-
required: true,
|
|
22
|
-
default: '',
|
|
23
|
-
description: 'The type of entity to retrieve',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
27
|
-
operation: ['get'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Object ID',
|
|
33
|
-
name: 'objectId',
|
|
34
|
-
type: 'string',
|
|
35
|
-
required: true,
|
|
36
|
-
default: '',
|
|
37
|
-
description: 'The ID of the object to retrieve',
|
|
38
|
-
displayOptions: {
|
|
39
|
-
show: {
|
|
40
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
41
|
-
operation: ['get'],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
];
|
|
46
|
-
async function execute(i) {
|
|
47
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
48
|
-
const objectId = this.getNodeParameter('objectId', i);
|
|
49
|
-
return (0, transport_1.getLimeObject)(this, limeType, objectId);
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=get.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/get.operation.ts"],"names":[],"mappings":";;;AAiDA,0BAIC;AAnDD,kDAAmD;AACnD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,2BAA2B;IACxC,MAAM,EAAE,eAAe;CAC1B,CAAC;AAEW,QAAA,UAAU,GAAsB;IAEzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,KAAK,CAAC;aACrB;SACJ;KACJ;IAGD;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kCAAkC;QAC/C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,KAAK,CAAC;aACrB;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,OAAO,IAAA,yBAAa,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
description: string;
|
|
6
|
-
action: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const properties: INodeProperties[];
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<import("../../../../nodeResponse").NodeResponse<object[]>>;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.properties = exports.description = void 0;
|
|
4
|
-
exports.execute = execute;
|
|
5
|
-
const transport_1 = require("../../../transport");
|
|
6
|
-
const commons_1 = require("../../../commons");
|
|
7
|
-
exports.description = {
|
|
8
|
-
name: 'Search',
|
|
9
|
-
value: 'search',
|
|
10
|
-
description: 'Search for objects',
|
|
11
|
-
action: 'Search for objects',
|
|
12
|
-
};
|
|
13
|
-
exports.properties = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'Lime Type',
|
|
16
|
-
name: 'limeType',
|
|
17
|
-
type: 'options',
|
|
18
|
-
typeOptions: {
|
|
19
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
20
|
-
},
|
|
21
|
-
required: true,
|
|
22
|
-
default: '',
|
|
23
|
-
description: 'The type of entity to search for',
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
27
|
-
operation: ['search'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Search Term',
|
|
33
|
-
name: 'searchTerm',
|
|
34
|
-
type: 'string',
|
|
35
|
-
default: '',
|
|
36
|
-
description: 'Term to search for',
|
|
37
|
-
displayOptions: {
|
|
38
|
-
show: {
|
|
39
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
40
|
-
operation: ['search'],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
displayName: 'Search Fields',
|
|
46
|
-
name: 'searchField',
|
|
47
|
-
type: 'options',
|
|
48
|
-
typeOptions: {
|
|
49
|
-
loadOptionsMethod: 'getLimeTypeProperties',
|
|
50
|
-
loadOptionsDependsOn: ['limeType'],
|
|
51
|
-
},
|
|
52
|
-
default: [],
|
|
53
|
-
description: 'Fields to search in. If none selected, searches across all searchable fields',
|
|
54
|
-
displayOptions: {
|
|
55
|
-
show: {
|
|
56
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
57
|
-
operation: ['search'],
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
displayName: 'Limit',
|
|
63
|
-
name: 'limit',
|
|
64
|
-
type: 'number',
|
|
65
|
-
default: 50,
|
|
66
|
-
description: 'Max number of results to return',
|
|
67
|
-
typeOptions: {
|
|
68
|
-
minValue: 1,
|
|
69
|
-
},
|
|
70
|
-
displayOptions: {
|
|
71
|
-
show: {
|
|
72
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
73
|
-
operation: ['search'],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
displayName: 'Offset',
|
|
79
|
-
name: 'offset',
|
|
80
|
-
type: 'number',
|
|
81
|
-
default: 0,
|
|
82
|
-
description: 'Offset to first object to return',
|
|
83
|
-
typeOptions: {
|
|
84
|
-
minValue: 0,
|
|
85
|
-
},
|
|
86
|
-
displayOptions: {
|
|
87
|
-
show: {
|
|
88
|
-
resource: [commons_1.LIMEOBJECT_RESOURCE],
|
|
89
|
-
operation: ['search'],
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
];
|
|
94
|
-
async function execute(i) {
|
|
95
|
-
const limeType = this.getNodeParameter('limeType', i);
|
|
96
|
-
const searchTerm = this.getNodeParameter('searchTerm', i, '');
|
|
97
|
-
const searchField = this.getNodeParameter('searchField', i);
|
|
98
|
-
const limit = this.getNodeParameter('limit', i, 50);
|
|
99
|
-
const offset = this.getNodeParameter('offset', i, 0);
|
|
100
|
-
const options = this.getNodeParameter('options', i, {});
|
|
101
|
-
return await (0, transport_1.searchLimeObject)(this, limeType, searchField, searchTerm, limit, offset, options.sortField || null);
|
|
102
|
-
}
|
|
103
|
-
//# sourceMappingURL=search.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/resources/limeObject/operations/search.operation.ts"],"names":[],"mappings":";;;AA8FA,0BAiBC;AA9GD,kDAAsD;AACtD,8CAAuD;AAE1C,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,oBAAoB;IACjC,MAAM,EAAE,oBAAoB;CAC/B,CAAC;AAEW,QAAA,UAAU,GAAsB;IACzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAA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I,EAAE,QAAQ;QACd,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,kCAAkC;QAC/C,WAAW,EAAE;YACT,QAAQ,EAAE,CAAC;SACd;QACD,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,6BAAmB,CAAC;gBAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IACxE,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAW,CAAC;IACtE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAW,CAAC;IAC/D,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAExD,OAAO,MAAM,IAAA,4BAAgB,EACzB,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,KAAK,EACL,MAAM,EACL,OAAO,CAAC,SAAoB,IAAI,IAAI,CACxC,CAAC;AACN,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
description: string;
|
|
6
|
-
action: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const properties: INodeProperties[];
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<import("../../../../nodeResponse").NodeResponse<unknown>>;
|