@limetech/n8n-nodes-lime 0.2.0 → 0.2.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/nodes/lime-crm/LimeCrm.node.json +16 -16
- package/package.json +47 -47
- package/{dist/tsconfig.tsbuildinfo → tsconfig.tsbuildinfo} +1 -1
- package/.eslintrc.js +0 -58
- package/.github/copilot-instructions.md +0 -20
- package/.github/workflows/publish.yml +0 -34
- package/README.md +0 -79
- package/credentials/LimeCrmApi.credentials.ts +0 -57
- package/credentials/LimeGoApi.credentials.ts +0 -31
- package/dist/nodes/lime-crm/LimeCrm.node.json +0 -18
- package/dist/nodes/lime-crm/lime-crm.svg +0 -1
- package/dist/nodes/lime-go/lime-go.svg +0 -1
- package/dist/package.json +0 -49
- package/docker-compose.yml +0 -44
- package/index.js +0 -3
- package/nodes/lime-crm/GenericTypes.ts +0 -114
- package/nodes/lime-crm/LimeCrmNode.node.ts +0 -154
- package/nodes/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.ts +0 -461
- package/nodes/lime-crm/LimeCrmTrigger.node.ts +0 -505
- package/nodes/lime-crm/methods/getAllSortableFields.ts +0 -73
- package/nodes/lime-crm/methods/getLimeTypeProperties.ts +0 -48
- package/nodes/lime-crm/methods/getLimeTypeRelations.ts +0 -32
- package/nodes/lime-crm/methods/getLimeTypes.ts +0 -33
- package/nodes/lime-crm/methods/getRelatedTypeProperties.ts +0 -47
- package/nodes/lime-crm/methods/index.ts +0 -5
- package/nodes/lime-crm/resources/limeObject/commonFields.ts +0 -179
- package/nodes/lime-crm/resources/limeObject/index.ts +0 -64
- package/nodes/lime-crm/resources/limeObject/operations/common.operation.ts +0 -35
- package/nodes/lime-crm/resources/limeObject/operations/create.operation.ts +0 -234
- package/nodes/lime-crm/resources/limeObject/operations/delete.operation.ts +0 -136
- package/nodes/lime-crm/resources/limeObject/operations/get.operation.ts +0 -124
- package/nodes/lime-crm/resources/limeObject/operations/getAll.operation.ts +0 -242
- package/nodes/lime-crm/resources/limeObject/operations/search.operation.ts +0 -242
- package/nodes/lime-crm/resources/limeObject/operations/update.operation.ts +0 -201
- package/nodes/lime-crm/resources/limeType/index.ts +0 -66
- package/nodes/lime-crm/resources/limeType/operations/getProperties.operation.ts +0 -105
- package/nodes/lime-crm/resources/limeType/operations/getRelations.operation.ts +0 -105
- package/nodes/lime-crm/resources/limeType/operations/getType.operation.ts +0 -58
- package/nodes/lime-crm/resources/limeType/operations/listTypes.operation.ts +0 -76
- package/nodes/lime-crm/resources/queryApi/index.ts +0 -42
- package/nodes/lime-crm/resources/queryApi/operations/executeQuery.operation.ts +0 -605
- package/nodes/lime-crm/transport/index.ts +0 -74
- package/nodes/lime-go/LimeGo.node.ts +0 -146
- package/nodes/lime-go/actions/organization/get.operation.ts +0 -42
- package/nodes/lime-go/actions/organization/getByExternalKey.operation.ts +0 -57
- package/nodes/lime-go/actions/organization/index.ts +0 -69
- package/nodes/lime-go/actions/organization/organizationFields.ts +0 -160
- package/nodes/lime-go/actions/organization/search.operation.ts +0 -73
- package/nodes/lime-go/actions/organization/update.operation.ts +0 -140
- package/nodes/lime-go/actions/person/createMail.operation.ts +0 -140
- package/nodes/lime-go/actions/person/get.operation.ts +0 -51
- package/nodes/lime-go/actions/person/index.ts +0 -69
- package/nodes/lime-go/actions/person/personFields.ts +0 -132
- package/nodes/lime-go/actions/person/search.operation.ts +0 -88
- package/nodes/lime-go/actions/person/update.operation.ts +0 -122
- package/nodes/lime-go/transport/graphqlRequest.ts +0 -30
- package/tsconfig.json +0 -30
- /package/{dist/credentials → credentials}/LimeCrmApi.credentials.d.ts +0 -0
- /package/{dist/credentials → credentials}/LimeCrmApi.credentials.js +0 -0
- /package/{dist/credentials → credentials}/LimeCrmApi.credentials.js.map +0 -0
- /package/{dist/credentials → credentials}/LimeGoApi.credentials.d.ts +0 -0
- /package/{dist/credentials → credentials}/LimeGoApi.credentials.js +0 -0
- /package/{dist/credentials → credentials}/LimeGoApi.credentials.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/GenericTypes.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/GenericTypes.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/GenericTypes.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmNode.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmNode.node.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmNode.node.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger.node.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger.node.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getAllSortableFields.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getAllSortableFields.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getAllSortableFields.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeProperties.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeProperties.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeProperties.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeRelations.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeRelations.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeRelations.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypes.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypes.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypes.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getRelatedTypeProperties.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getRelatedTypeProperties.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getRelatedTypeProperties.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/commonFields.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/commonFields.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/commonFields.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/common.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/common.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/common.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/create.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/create.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/create.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/delete.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/delete.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/delete.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/get.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/get.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/get.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/getAll.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/getAll.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/getAll.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/search.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/search.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/search.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/update.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/update.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/update.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getProperties.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getProperties.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getProperties.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getRelations.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getRelations.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getRelations.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getType.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getType.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getType.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/listTypes.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/listTypes.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/listTypes.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/operations/executeQuery.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/operations/executeQuery.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/operations/executeQuery.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/transport/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/transport/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/transport/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/LimeGo.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/LimeGo.node.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/LimeGo.node.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/get.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/get.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/get.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/getByExternalKey.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/getByExternalKey.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/getByExternalKey.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/organizationFields.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/organizationFields.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/organizationFields.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/search.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/search.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/search.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/update.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/update.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/update.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/createMail.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/createMail.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/createMail.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/get.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/get.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/get.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/personFields.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/personFields.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/personFields.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/search.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/search.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/search.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/update.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/update.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/update.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/graphqlRequest.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/graphqlRequest.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/graphqlRequest.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/transport.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/transport.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/transport.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/triggers/webhook.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/triggers/webhook.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/triggers/webhook.js.map +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ICredentialType,
|
|
3
|
-
INodeProperties,
|
|
4
|
-
IHttpRequestMethods,
|
|
5
|
-
IAuthenticate,
|
|
6
|
-
ICredentialTestRequest,
|
|
7
|
-
} from 'n8n-workflow';
|
|
8
|
-
|
|
9
|
-
export class LimeCrmApi implements ICredentialType {
|
|
10
|
-
name = 'limeCrmApi';
|
|
11
|
-
displayName = 'Lime CRM API';
|
|
12
|
-
documentationUrl = 'https://lime-crm.com/api-docs/';
|
|
13
|
-
properties: INodeProperties[] = [
|
|
14
|
-
{
|
|
15
|
-
displayName: 'Server URL',
|
|
16
|
-
name: 'url',
|
|
17
|
-
type: 'string',
|
|
18
|
-
default: '',
|
|
19
|
-
placeholder: 'https://instance.lime-crm.com',
|
|
20
|
-
required: true,
|
|
21
|
-
description: 'The URL of your Lime CRM instance (without trailing slash)',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
displayName: 'API Key',
|
|
25
|
-
name: 'apiKey',
|
|
26
|
-
type: 'string',
|
|
27
|
-
typeOptions: {
|
|
28
|
-
password: true,
|
|
29
|
-
},
|
|
30
|
-
default: '',
|
|
31
|
-
required: true,
|
|
32
|
-
description: 'The API key obtained from Lime CRM',
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
authenticate: IAuthenticate = {
|
|
37
|
-
type: 'generic',
|
|
38
|
-
properties: {
|
|
39
|
-
headers: {
|
|
40
|
-
// Ensure the header name matches exactly what the Lime CRM API expects
|
|
41
|
-
'X-API-Key': '={{$credentials.apiKey}}',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
test: ICredentialTestRequest = {
|
|
47
|
-
request: {
|
|
48
|
-
baseURL: '={{$credentials.url}}',
|
|
49
|
-
url: '/api/v1/',
|
|
50
|
-
method: 'GET' as IHttpRequestMethods,
|
|
51
|
-
headers: {
|
|
52
|
-
'X-API-Key': '={{$credentials.apiKey}}',
|
|
53
|
-
'Accept': 'application/json',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ICredentialType,
|
|
3
|
-
INodeProperties,
|
|
4
|
-
} from 'n8n-workflow';
|
|
5
|
-
|
|
6
|
-
export class LimeGoApi implements ICredentialType {
|
|
7
|
-
name = 'limeGoApi';
|
|
8
|
-
displayName = 'Lime Go API';
|
|
9
|
-
documentationUrl = 'https://api.lime-go.com/docs';
|
|
10
|
-
properties: INodeProperties[] = [
|
|
11
|
-
{
|
|
12
|
-
displayName: 'API Key',
|
|
13
|
-
name: 'apiKey',
|
|
14
|
-
type: 'string',
|
|
15
|
-
typeOptions: {
|
|
16
|
-
password: true,
|
|
17
|
-
},
|
|
18
|
-
default: '',
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
authenticate = {
|
|
24
|
-
type: 'generic' as 'generic',
|
|
25
|
-
properties: {
|
|
26
|
-
headers: {
|
|
27
|
-
Authorization: '=go-api:{{$credentials.apiKey}}',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"node": "n8n-nodes-base.limeCrm",
|
|
3
|
-
"nodeVersion": "1.0",
|
|
4
|
-
"codexVersion": "1.0",
|
|
5
|
-
"categories": ["CRM"],
|
|
6
|
-
"resources": {
|
|
7
|
-
"credentialDocumentation": [
|
|
8
|
-
{
|
|
9
|
-
"url": "https://lime-crm.com/api-docs/"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"primaryDocumentation": [
|
|
13
|
-
{
|
|
14
|
-
"url": "https://lime-crm.com/api-docs/"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 1024 1025" xmlns="http://www.w3.org/2000/svg" xml:space="preserve"><clipPath id="a"><path d="M0 .03h1024v1024H0z"/></clipPath><g clip-path="url(#a)"><path d="M92.399 480.888c0-257.059 208.719-465.779 465.78-465.779C815.28 15.109 1024 223.829 1024 480.888c0 133.713-55.806 271.139-193.403 385.355-166.779 138.45-390.39 157.35-736.15 134.525-102.653-6.785-117.502-24.319-64.468-63.444 166.694-123.047 62.42-217.167 62.42-456.436Z" style="fill:#bee034"/><clipPath id="b"><path d="M92.399 480.888c0-257.059 208.719-465.779 465.78-465.779C815.28 15.109 1024 223.829 1024 480.888c0 133.713-55.806 271.139-193.403 385.355-166.779 138.45-390.39 157.35-736.15 134.525-102.653-6.785-117.502-24.319-64.468-63.444 166.694-123.047 62.42-217.167 62.42-456.436Z"/></clipPath><g clip-path="url(#b)"><path d="M1023-361.59c0 784.587-711.326 1420.62-1588.79 1420.62C-1402.638-283.55 1023-1146.18 1023-361.59Z" style="fill:#a6efff;filter:blur(200px)"/></g><path d="M433.85 723.911c-24.702-12.757-47.23-29.226-66.813-48.596-9.088-9.002-23.765-8.959-32.768.129-9.001 9.087-8.916 23.763.171 32.766 22.911 22.698 49.236 41.941 78.121 56.873 11.392 5.888 25.385 1.409 31.231-9.94 5.888-11.349 1.409-25.344-9.942-31.232Zm367.266-363.98a270.163 270.163 0 0 1 25.556 78.547c2.048 12.629 13.952 21.206 26.581 19.158 12.586-2.006 21.204-13.951 19.156-26.539a316.387 316.387 0 0 0-29.907-92.029c-5.803-11.434-19.754-15.999-31.146-10.24-11.393 5.76-16 19.713-10.24 31.103Zm-51.497 315.384c-19.584 19.37-42.069 35.839-66.815 48.596-11.349 5.888-15.786 19.883-9.94 31.232 5.887 11.349 19.881 15.828 31.229 9.94 28.929-14.932 55.253-34.175 78.164-56.873 9.045-9.003 9.131-23.679.128-32.766-9.002-9.088-23.678-9.131-32.766-.129ZM517.006 213.546a274.904 274.904 0 0 1 41.343-3.114c14.036 0 27.861 1.066 41.343 3.114 12.629 1.919 24.448-6.784 26.367-19.413 1.962-12.628-6.741-24.446-19.371-26.409a322.626 322.626 0 0 0-48.339-3.627 322.201 322.201 0 0 0-48.34 3.627c-12.672 1.963-21.332 13.781-19.413 26.409 1.92 12.629 13.739 21.332 26.41 19.413Zm41.343 490.355c-40.489 0-73.385 32.853-73.385 73.342s32.896 73.385 73.385 73.385c40.489 0 73.342-32.896 73.342-73.385 0-40.489-32.853-73.342-73.342-73.342ZM290.025 438.478c4.481-27.818 13.227-54.227 25.514-78.547 5.761-11.39 1.195-25.343-10.239-31.103-11.392-5.759-25.343-1.194-31.104 10.24a313.893 313.893 0 0 0-29.908 92.029c-2.048 12.588 6.527 24.533 19.157 26.539 12.629 2.048 24.532-6.529 26.58-19.158Zm479.092 112.254c-12.501 38.527 8.618 79.955 47.102 92.456 38.528 12.502 79.956-8.618 92.457-47.104 12.501-38.525-8.619-79.953-47.103-92.455-38.527-12.501-79.955 8.619-92.456 47.103Zm-80.51-247.802c32.766 23.808 78.675 16.554 102.482-16.212 23.808-32.767 16.512-78.675-16.256-102.482-32.723-23.809-78.675-16.512-102.439 16.254-23.808 32.725-16.555 78.633 16.213 102.44Zm-260.558 0c32.766-23.807 40.063-69.715 16.254-102.44-23.807-32.766-69.715-40.063-102.482-16.254-32.766 23.807-40.02 69.715-16.255 102.482 23.806 32.766 69.758 40.02 102.483 16.212Zm-80.51 247.802c-12.501-38.484-53.929-59.604-92.415-47.103-38.526 12.502-59.645 53.93-47.102 92.455 12.501 38.486 53.929 59.606 92.413 47.104 38.528-12.501 59.605-53.929 47.104-92.456Z" style="fill:#fff"/></g></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 1025 1025" xmlns="http://www.w3.org/2000/svg" xml:space="preserve"><clipPath id="a"><path d="M.356.03h1024v1024H.356z"/></clipPath><g clip-path="url(#a)"><path d="M92.755 480.888c0-257.059 208.718-465.779 465.779-465.779 257.102 0 465.822 208.72 465.822 465.779 0 133.713-55.806 271.139-193.404 385.355-166.779 138.45-390.389 157.35-736.149 134.525-102.653-6.785-117.502-24.319-64.469-63.444 166.694-123.047 62.421-217.167 62.421-456.436Z" style="fill:#bee034"/><clipPath id="b"><path d="M92.755 480.888c0-257.059 208.718-465.779 465.779-465.779 257.102 0 465.822 208.72 465.822 465.779 0 133.713-55.806 271.139-193.404 385.355-166.779 138.45-390.389 157.35-736.149 134.525-102.653-6.785-117.502-24.319-64.469-63.444 166.694-123.047 62.421-217.167 62.421-456.436Z"/></clipPath><g clip-path="url(#b)"><path d="M1091.82-224.97c797.25 0 797.25 2059 0 2059-797.243 0-628.543-457.19-628.543-1185.86 0-728.671-168.7-873.142 628.543-873.142Z" style="fill:#feb000;filter:blur(200px)"/></g><path d="m879.165 486.306 29.353 32.597c9.984 11.051 27.094 11.947 38.187 1.963 11.092-9.984 11.946-27.092 1.963-38.186l-72.575-80.51a27.05 27.05 0 0 0-20.095-8.916 27.028 27.028 0 0 0-20.054 8.916l-72.616 80.51c-9.983 11.094-9.088 28.202 2.005 38.186 11.051 9.984 28.159 9.088 38.143-1.963l29.311-32.553c-2.089 142.033-112.337 258.04-251.982 269.176-12.756 1.024-22.271 12.203-21.247 24.917.981 12.758 12.159 22.272 24.916 21.248 163.494-13.056 292.6-149.032 294.691-315.385ZM446.707 676.211c-35.071-20.267-79.954-8.235-100.221 26.836-20.223 35.072-8.192 79.955 26.879 100.222 35.071 20.224 79.955 8.192 100.222-26.837 20.224-35.071 8.192-79.997-26.88-100.221Z" style="fill:#fff"/></g></svg>
|
package/dist/package.json
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "n8n-nodes-lime-crm",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"description": "n8n node to connect to Lime CRM",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "tsc && find nodes -name '*.svg' -exec cp {} dist/{} \\;",
|
|
9
|
-
"dev": "tsc --watch",
|
|
10
|
-
"dev:reload": "nodemon --watch dist --exec 'cp -R dist/* ~/.n8n/custom/dist/'",
|
|
11
|
-
"watch": "concurrently \"npm run dev\" \"npm run dev:reload\"",
|
|
12
|
-
"format": "prettier --write ."
|
|
13
|
-
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"n8n",
|
|
16
|
-
"n8n-node",
|
|
17
|
-
"lime-crm",
|
|
18
|
-
"crm"
|
|
19
|
-
],
|
|
20
|
-
"n8n": {
|
|
21
|
-
"n8nNodesApiVersion": 1,
|
|
22
|
-
"credentials": [
|
|
23
|
-
"dist/credentials/LimeCrmApi.credentials.js",
|
|
24
|
-
"dist/credentials/LimeGoApi.credentials.js"
|
|
25
|
-
],
|
|
26
|
-
"nodes": [
|
|
27
|
-
"dist/nodes/lime-crm/LimeCrm.node.js",
|
|
28
|
-
"dist/nodes/lime-go/LimeGo.node.js"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@types/node": "^16.11.10",
|
|
33
|
-
"@types/request-promise-native": "^1.0.18",
|
|
34
|
-
"concurrently": "^7.0.0",
|
|
35
|
-
"nodemon": "^2.0.15",
|
|
36
|
-
"prettier": "^2.5.0",
|
|
37
|
-
"typescript": "~4.8.0",
|
|
38
|
-
"@typescript-eslint/parser": "^7.15.0",
|
|
39
|
-
"eslint": "^8.56.0",
|
|
40
|
-
"eslint-plugin-n8n-nodes-base": "^1.16.1"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"request": "^2.88.2",
|
|
44
|
-
"request-promise-native": "^1.0.9"
|
|
45
|
-
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"n8n-workflow": "*"
|
|
48
|
-
}
|
|
49
|
-
}
|
package/docker-compose.yml
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
version: '3'
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
n8n:
|
|
5
|
-
image: n8nio/n8n
|
|
6
|
-
ports:
|
|
7
|
-
- "5678:5678"
|
|
8
|
-
environment:
|
|
9
|
-
- N8N_HOST=localhost
|
|
10
|
-
- N8N_PORT=5678
|
|
11
|
-
- N8N_PROTOCOL=http
|
|
12
|
-
- NODE_ENV=development
|
|
13
|
-
- DB_TYPE=postgresdb
|
|
14
|
-
- DB_POSTGRESDB_HOST=postgres
|
|
15
|
-
- DB_POSTGRESDB_PORT=5432
|
|
16
|
-
- DB_POSTGRESDB_DATABASE=n8n
|
|
17
|
-
- DB_POSTGRESDB_USER=n8n
|
|
18
|
-
- DB_POSTGRESDB_PASSWORD=n8n
|
|
19
|
-
- N8N_SECURE_COOKIE=false
|
|
20
|
-
- N8N_CUSTOM_EXTENSIONS=/home/node/.n8n/custom
|
|
21
|
-
- N8N_LOG_LEVEL=debug
|
|
22
|
-
volumes:
|
|
23
|
-
- ~/.n8n:/home/node/.n8n
|
|
24
|
-
- ./dist:/home/node/.n8n/custom/dist
|
|
25
|
-
depends_on:
|
|
26
|
-
- postgres
|
|
27
|
-
restart: unless-stopped
|
|
28
|
-
|
|
29
|
-
postgres:
|
|
30
|
-
image: postgres:14
|
|
31
|
-
ports:
|
|
32
|
-
- "5432:5432"
|
|
33
|
-
environment:
|
|
34
|
-
- POSTGRES_USER=n8n
|
|
35
|
-
- POSTGRES_PASSWORD=n8n
|
|
36
|
-
- POSTGRES_DB=n8n
|
|
37
|
-
volumes:
|
|
38
|
-
- postgres_data:/var/lib/postgresql/data
|
|
39
|
-
restart: unless-stopped
|
|
40
|
-
networks:
|
|
41
|
-
- default
|
|
42
|
-
|
|
43
|
-
volumes:
|
|
44
|
-
postgres_data:
|
package/index.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { IDataObject } from 'n8n-workflow';
|
|
2
|
-
|
|
3
|
-
// This file contains shared types and interfaces used across the Lime CRM node
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Basic operation parameters shared across resources
|
|
7
|
-
*/
|
|
8
|
-
export interface IOperationParams {
|
|
9
|
-
operation: string;
|
|
10
|
-
i: number; // Item index
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Common structure for all API responses
|
|
15
|
-
*/
|
|
16
|
-
export interface ILimeCrmResponse {
|
|
17
|
-
// Common response properties can be defined here
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Define LimeType for making typings stronger
|
|
23
|
-
*/
|
|
24
|
-
export interface ILimeTypeObject {
|
|
25
|
-
id?: number | string;
|
|
26
|
-
// Other common limetype properties can go here
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Define Webhook for making typings stronger
|
|
32
|
-
*/
|
|
33
|
-
export interface IWebhookObject {
|
|
34
|
-
name: string;
|
|
35
|
-
events: string[];
|
|
36
|
-
target_url: string;
|
|
37
|
-
enabled: boolean;
|
|
38
|
-
headers?: Array<{ name: string; value: string; secret_value?: string; type: string }>;
|
|
39
|
-
secret?: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Define webhook event data structure
|
|
44
|
-
*/
|
|
45
|
-
export interface IWebhookEventData {
|
|
46
|
-
event: string;
|
|
47
|
-
body: {
|
|
48
|
-
id: string;
|
|
49
|
-
values: IDataObject;
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
};
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Define LimeType response structure
|
|
57
|
-
*/
|
|
58
|
-
export interface ILimeTypeResponse {
|
|
59
|
-
_embedded?: {
|
|
60
|
-
properties?: ILimeTypeProperty[];
|
|
61
|
-
};
|
|
62
|
-
_links?: {
|
|
63
|
-
limetypes?: ILimeTypeLink[];
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface ILimeTypeLink {
|
|
68
|
-
name: string;
|
|
69
|
-
href: string;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface ILimeTypeProperty {
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
localizedname: string;
|
|
76
|
-
propertytype: string;
|
|
77
|
-
readonly: boolean;
|
|
78
|
-
required: boolean;
|
|
79
|
-
[key: string]: any;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Define LimeObject response structure
|
|
84
|
-
*/
|
|
85
|
-
export interface ILimeObjectResponse {
|
|
86
|
-
_embedded?: {
|
|
87
|
-
limeobjects?: ILimeObject[];
|
|
88
|
-
};
|
|
89
|
-
_links?: {
|
|
90
|
-
next?: {
|
|
91
|
-
href: string;
|
|
92
|
-
};
|
|
93
|
-
self?: {
|
|
94
|
-
href: string;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface ILimeObject {
|
|
100
|
-
id: string;
|
|
101
|
-
[key: string]: any;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Define query parameters that can be used with the API
|
|
106
|
-
*/
|
|
107
|
-
export interface IQueryParams {
|
|
108
|
-
_limit?: number;
|
|
109
|
-
_offset?: number;
|
|
110
|
-
_sort?: string;
|
|
111
|
-
[key: string]: any;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export class GenericTypes { }
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IExecuteFunctions,
|
|
3
|
-
INodeExecutionData,
|
|
4
|
-
INodeType,
|
|
5
|
-
INodeTypeDescription,
|
|
6
|
-
NodeOperationError,
|
|
7
|
-
NodeConnectionType,
|
|
8
|
-
INodeProperties,
|
|
9
|
-
NodePropertyTypes,
|
|
10
|
-
} from 'n8n-workflow';
|
|
11
|
-
|
|
12
|
-
// Import resources
|
|
13
|
-
import { limeTypeFields, limeTypeOperations } from './resources/limeType';
|
|
14
|
-
import { limeObjectFields, limeObjectOperations } from './resources/limeObject';
|
|
15
|
-
import { queryApiFields, queryApiOperations } from './resources/queryApi';
|
|
16
|
-
|
|
17
|
-
// Import method loaders
|
|
18
|
-
import {
|
|
19
|
-
getLimeTypes,
|
|
20
|
-
getLimeTypeProperties,
|
|
21
|
-
getLimeTypeRelations,
|
|
22
|
-
getRelatedTypeProperties,
|
|
23
|
-
getAllSortableFields,
|
|
24
|
-
} from './methods';
|
|
25
|
-
|
|
26
|
-
// Import LimeCrmTrigger
|
|
27
|
-
import { LimeCrmTrigger } from './LimeCrmTrigger/LimeCrmTrigger.node';
|
|
28
|
-
|
|
29
|
-
export class LimeCrmNode implements INodeType {
|
|
30
|
-
description: INodeTypeDescription = {
|
|
31
|
-
displayName: 'Lime CRM',
|
|
32
|
-
name: 'limeCrm',
|
|
33
|
-
icon: 'file:lime-crm.svg',
|
|
34
|
-
group: ['transform'],
|
|
35
|
-
version: 1,
|
|
36
|
-
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
37
|
-
description: 'Consume the Lime CRM API',
|
|
38
|
-
defaults: {
|
|
39
|
-
name: 'Lime CRM',
|
|
40
|
-
},
|
|
41
|
-
inputs: [NodeConnectionType.Main],
|
|
42
|
-
outputs: [NodeConnectionType.Main],
|
|
43
|
-
credentials: [
|
|
44
|
-
{
|
|
45
|
-
name: 'limeCrmApi',
|
|
46
|
-
required: true,
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
properties: [
|
|
50
|
-
// Select API resource to work with
|
|
51
|
-
{
|
|
52
|
-
displayName: 'Resource',
|
|
53
|
-
name: 'resource',
|
|
54
|
-
type: 'options' as NodePropertyTypes,
|
|
55
|
-
noDataExpression: true,
|
|
56
|
-
options: [
|
|
57
|
-
{
|
|
58
|
-
name: 'Lime Type',
|
|
59
|
-
value: 'limeType',
|
|
60
|
-
description: 'Work with entity type definitions',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'Lime Object',
|
|
64
|
-
value: 'limeObject',
|
|
65
|
-
description: 'Work with actual data records',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'Query API',
|
|
69
|
-
value: 'queryApi',
|
|
70
|
-
description: 'Execute custom queries against the database',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
default: 'limeObject',
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
// Import operations for each resource - ensure they all match INodeProperties[]
|
|
77
|
-
...(limeTypeFields as INodeProperties[]),
|
|
78
|
-
...(limeObjectFields as INodeProperties[]),
|
|
79
|
-
...(queryApiFields as INodeProperties[]),
|
|
80
|
-
],
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
// This method will expose all dynamic functions for loading options
|
|
84
|
-
methods = {
|
|
85
|
-
loadOptions: {
|
|
86
|
-
// Method to load Lime types for dropdown selection
|
|
87
|
-
getLimeTypes,
|
|
88
|
-
|
|
89
|
-
// Method to load properties for a selected Lime type
|
|
90
|
-
getLimeTypeProperties,
|
|
91
|
-
|
|
92
|
-
// Method to load relations for a selected Lime type
|
|
93
|
-
getLimeTypeRelations,
|
|
94
|
-
|
|
95
|
-
// Method to load properties for a related Lime type
|
|
96
|
-
getRelatedTypeProperties,
|
|
97
|
-
|
|
98
|
-
// Method to get all sortable fields
|
|
99
|
-
getAllSortableFields,
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
|
104
|
-
const items = this.getInputData();
|
|
105
|
-
const returnData = [];
|
|
106
|
-
let responseData;
|
|
107
|
-
|
|
108
|
-
// Get the selected resource and operation
|
|
109
|
-
const resource = this.getNodeParameter('resource', 0) as string;
|
|
110
|
-
const operation = this.getNodeParameter('operation', 0) as string;
|
|
111
|
-
|
|
112
|
-
// Process each input item
|
|
113
|
-
for (let i = 0; i < items.length; i++) {
|
|
114
|
-
try {
|
|
115
|
-
// Route to the appropriate resource handler
|
|
116
|
-
if (resource === 'limeType') {
|
|
117
|
-
responseData = await limeTypeOperations.call(this, { operation, i });
|
|
118
|
-
} else if (resource === 'limeObject') {
|
|
119
|
-
responseData = await limeObjectOperations.call(this, { operation, i });
|
|
120
|
-
} else if (resource === 'queryApi') {
|
|
121
|
-
responseData = await queryApiOperations.call(this, { operation, i });
|
|
122
|
-
} else {
|
|
123
|
-
throw new NodeOperationError(this.getNode(), `The resource "${resource}" is not supported!`);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// If the response is an array, add each item individually
|
|
127
|
-
if (Array.isArray(responseData)) {
|
|
128
|
-
returnData.push(...responseData);
|
|
129
|
-
} else if (responseData !== undefined) {
|
|
130
|
-
// Otherwise, add the single response item
|
|
131
|
-
returnData.push(responseData);
|
|
132
|
-
}
|
|
133
|
-
} catch (error) {
|
|
134
|
-
// If an error occurs, handle it appropriately
|
|
135
|
-
if (this.continueOnFail()) {
|
|
136
|
-
// If continueOnFail is enabled, add the error as an item and continue
|
|
137
|
-
returnData.push({
|
|
138
|
-
error: error.message,
|
|
139
|
-
json: { error: error.message },
|
|
140
|
-
});
|
|
141
|
-
continue;
|
|
142
|
-
}
|
|
143
|
-
// Otherwise, throw the error to stop execution
|
|
144
|
-
throw error;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// Return the processed data as an array of input items
|
|
149
|
-
return [this.helpers.returnJsonArray(returnData)];
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// Export LimeCrmTrigger
|
|
154
|
-
export { LimeCrmTrigger };
|