@ixiam/n8n-nodes-civicrm 1.0.6 → 1.0.7
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.
|
@@ -9,8 +9,8 @@ export class CiviCrmApi implements ICredentialType {
|
|
|
9
9
|
displayName = 'CiviCRM API';
|
|
10
10
|
documentationUrl = 'https://docs.civicrm.org/dev/en/latest/api/';
|
|
11
11
|
|
|
12
|
-
// ✔ NECESARIO PARA QUE N8N
|
|
13
|
-
extends = ['genericApi'];
|
|
12
|
+
// ✔ NECESARIO PARA QUE N8N ACEPTE EL TEST
|
|
13
|
+
extends = ['genericApi' as const];
|
|
14
14
|
|
|
15
15
|
authenticate = {
|
|
16
16
|
type: 'generic' as const,
|
|
@@ -21,7 +21,6 @@ export class CiviCrmApi implements ICredentialType {
|
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
// ✔ TEST reconocido por el validador
|
|
25
24
|
test = {
|
|
26
25
|
request: {
|
|
27
26
|
method: 'POST' as IHttpRequestMethods,
|
|
@@ -6,6 +6,8 @@ class CiviCrmApi {
|
|
|
6
6
|
this.name = 'civiCrmApi';
|
|
7
7
|
this.displayName = 'CiviCRM API';
|
|
8
8
|
this.documentationUrl = 'https://docs.civicrm.org/dev/en/latest/api/';
|
|
9
|
+
// ✔ NECESARIO PARA QUE N8N ACEPTE EL TEST
|
|
10
|
+
this.extends = ['genericApi'];
|
|
9
11
|
this.authenticate = {
|
|
10
12
|
type: 'generic',
|
|
11
13
|
properties: {
|
|
@@ -14,7 +16,6 @@ class CiviCrmApi {
|
|
|
14
16
|
},
|
|
15
17
|
},
|
|
16
18
|
};
|
|
17
|
-
// Credential test button (requerido por n8n)
|
|
18
19
|
this.test = {
|
|
19
20
|
request: {
|
|
20
21
|
method: 'POST',
|
|
@@ -26,7 +27,6 @@ class CiviCrmApi {
|
|
|
26
27
|
body: {
|
|
27
28
|
limit: 1,
|
|
28
29
|
},
|
|
29
|
-
// IMPORTANTE: no pongas json: true aquí, rompe el tipo de test
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
this.properties = [
|
|
@@ -36,8 +36,6 @@ class CiviCrmApi {
|
|
|
36
36
|
type: 'string',
|
|
37
37
|
default: '',
|
|
38
38
|
required: true,
|
|
39
|
-
placeholder: 'https://crm.example.org',
|
|
40
|
-
description: 'Base URL without a trailing slash.',
|
|
41
39
|
},
|
|
42
40
|
{
|
|
43
41
|
displayName: 'API Token',
|
|
@@ -46,7 +44,6 @@ class CiviCrmApi {
|
|
|
46
44
|
typeOptions: { password: true },
|
|
47
45
|
default: '',
|
|
48
46
|
required: true,
|
|
49
|
-
description: 'Sent as "X-Civi-Auth: Bearer <token>"',
|
|
50
47
|
},
|
|
51
48
|
];
|
|
52
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixiam/n8n-nodes-civicrm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Full-featured CiviCRM API v4 integration for n8n with support for Contacts, Memberships, Groups, Relationships, Activities and structured sub-entities like Email, Phone, and Address.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|