@ixiam/n8n-nodes-civicrm 1.1.32 → 1.1.34

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.
@@ -42,14 +42,15 @@ export class CiviCrmApi implements ICredentialType {
42
42
 
43
43
  test: ICredentialTestRequest = {
44
44
  request: {
45
- url: '={{ $credentials.baseUrl }}/civicrm/ajax/api4/Contact/get',
45
+ baseURL: '={{$credentials.baseUrl}}',
46
+ url: '/civicrm/ajax/api4/Contact/get',
46
47
  method: 'POST',
48
+ headers: {
49
+ 'Content-Type': 'application/x-www-form-urlencoded',
50
+ },
47
51
  body: {
48
- version: 4,
49
- select: ['id'],
50
- limit: 1,
52
+ params: JSON.stringify({ select: ['id'], limit: 1 }),
51
53
  },
52
- ignoreHttpStatusErrors: false,
53
54
  },
54
55
  };
55
56
  }
@@ -36,14 +36,15 @@ class CiviCrmApi {
36
36
  };
37
37
  this.test = {
38
38
  request: {
39
- url: '={{ $credentials.baseUrl }}/civicrm/ajax/api4/Contact/get',
39
+ baseURL: '={{$credentials.baseUrl}}',
40
+ url: '/civicrm/ajax/api4/Contact/get',
40
41
  method: 'POST',
42
+ headers: {
43
+ 'Content-Type': 'application/x-www-form-urlencoded',
44
+ },
41
45
  body: {
42
- version: 4,
43
- select: ['id'],
44
- limit: 1,
46
+ params: JSON.stringify({ select: ['id'], limit: 1 }),
45
47
  },
46
- ignoreHttpStatusErrors: false,
47
48
  },
48
49
  };
49
50
  }
@@ -617,6 +617,8 @@ class CiviCrm {
617
617
  'display_name',
618
618
  'first_name',
619
619
  'last_name',
620
+ 'organization_name',
621
+ 'legal_name',
620
622
  'contact_type',
621
623
  'gender_id',
622
624
  'gender_id:name',
@@ -666,6 +668,8 @@ class CiviCrm {
666
668
  'display_name',
667
669
  'first_name',
668
670
  'last_name',
671
+ 'organization_name',
672
+ 'legal_name',
669
673
  'contact_type',
670
674
  'gender_id',
671
675
  'gender_id:name',
@@ -898,6 +902,8 @@ class CiviCrm {
898
902
  'display_name',
899
903
  'first_name',
900
904
  'last_name',
905
+ 'organization_name',
906
+ 'legal_name',
901
907
  'contact_type',
902
908
  'gender_id',
903
909
  'gender_id:name',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixiam/n8n-nodes-civicrm",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
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": [
@@ -684,6 +684,8 @@ export class CiviCrm implements INodeType {
684
684
  'display_name',
685
685
  'first_name',
686
686
  'last_name',
687
+ 'organization_name',
688
+ 'legal_name',
687
689
  'contact_type',
688
690
  'gender_id',
689
691
  'gender_id:name',
@@ -743,6 +745,8 @@ export class CiviCrm implements INodeType {
743
745
  'display_name',
744
746
  'first_name',
745
747
  'last_name',
748
+ 'organization_name',
749
+ 'legal_name',
746
750
  'contact_type',
747
751
  'gender_id',
748
752
  'gender_id:name',
@@ -1028,6 +1032,8 @@ export class CiviCrm implements INodeType {
1028
1032
  'display_name',
1029
1033
  'first_name',
1030
1034
  'last_name',
1035
+ 'organization_name',
1036
+ 'legal_name',
1031
1037
  'contact_type',
1032
1038
  'gender_id',
1033
1039
  'gender_id:name',