@ixiam/n8n-nodes-civicrm 1.0.5 → 1.0.6

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,6 +9,9 @@ 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 DETECTE EL TEST
13
+ extends = ['genericApi'];
14
+
12
15
  authenticate = {
13
16
  type: 'generic' as const,
14
17
  properties: {
@@ -18,7 +21,7 @@ export class CiviCrmApi implements ICredentialType {
18
21
  },
19
22
  };
20
23
 
21
- // Credential test button (requerido por n8n)
24
+ // TEST reconocido por el validador
22
25
  test = {
23
26
  request: {
24
27
  method: 'POST' as IHttpRequestMethods,
@@ -30,7 +33,6 @@ export class CiviCrmApi implements ICredentialType {
30
33
  body: {
31
34
  limit: 1,
32
35
  },
33
- // IMPORTANTE: no pongas json: true aquí, rompe el tipo de test
34
36
  },
35
37
  };
36
38
 
@@ -41,8 +43,6 @@ export class CiviCrmApi implements ICredentialType {
41
43
  type: 'string',
42
44
  default: '',
43
45
  required: true,
44
- placeholder: 'https://crm.example.org',
45
- description: 'Base URL without a trailing slash.',
46
46
  },
47
47
  {
48
48
  displayName: 'API Token',
@@ -51,7 +51,6 @@ export class CiviCrmApi implements ICredentialType {
51
51
  typeOptions: { password: true },
52
52
  default: '',
53
53
  required: true,
54
- description: 'Sent as "X-Civi-Auth: Bearer <token>"',
55
54
  },
56
55
  ];
57
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixiam/n8n-nodes-civicrm",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
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": [