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