n8n-nodes-clientify 0.2.4 → 0.2.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.
Files changed (186) hide show
  1. package/README.md +31 -338
  2. package/dist/README.md +31 -338
  3. package/dist/TRIGGERS_REFERENCE.md +1 -1
  4. package/dist/appmixer/clientify/crm/AddCompanyAddress/AddCompanyAddress.js +33 -0
  5. package/dist/appmixer/clientify/crm/AddCompanyAddress/component.json +115 -0
  6. package/dist/appmixer/clientify/crm/AddCompanyCall/AddCompanyCall.js +32 -0
  7. package/dist/appmixer/clientify/crm/AddCompanyCall/component.json +109 -0
  8. package/dist/appmixer/clientify/crm/AddCompanyCheckin/AddCompanyCheckin.js +31 -0
  9. package/dist/appmixer/clientify/crm/AddCompanyCheckin/component.json +98 -0
  10. package/dist/appmixer/clientify/crm/AddCompanyEmail/AddCompanyEmail.js +25 -0
  11. package/dist/appmixer/clientify/crm/AddCompanyEmail/component.json +84 -0
  12. package/dist/appmixer/clientify/crm/AddCompanyEmployee/AddCompanyEmployee.js +22 -0
  13. package/dist/appmixer/clientify/crm/AddCompanyEmployee/component.json +65 -0
  14. package/dist/appmixer/clientify/crm/AddCompanyNote/AddCompanyNote.js +25 -0
  15. package/dist/appmixer/clientify/crm/AddCompanyNote/component.json +75 -0
  16. package/dist/appmixer/clientify/crm/AddCompanyPhone/AddCompanyPhone.js +25 -0
  17. package/dist/appmixer/clientify/crm/AddCompanyPhone/component.json +87 -0
  18. package/dist/appmixer/clientify/crm/AddCompanyTag/AddCompanyTag.js +23 -0
  19. package/dist/appmixer/clientify/crm/AddCompanyTag/component.json +71 -0
  20. package/dist/appmixer/clientify/crm/AddCompanyWebsite/AddCompanyWebsite.js +23 -0
  21. package/dist/appmixer/clientify/crm/AddCompanyWebsite/component.json +65 -0
  22. package/dist/appmixer/clientify/crm/AddContactAddress/AddContactAddress.js +33 -0
  23. package/dist/appmixer/clientify/crm/AddContactAddress/component.json +115 -0
  24. package/dist/appmixer/clientify/crm/AddContactCall/AddContactCall.js +20 -0
  25. package/dist/appmixer/clientify/crm/AddContactCall/component.json +55 -0
  26. package/dist/appmixer/clientify/crm/AddContactCheckin/AddContactCheckin.js +33 -0
  27. package/dist/appmixer/clientify/crm/AddContactCheckin/component.json +109 -0
  28. package/dist/appmixer/clientify/crm/AddContactEmail/AddContactEmail.js +25 -0
  29. package/dist/appmixer/clientify/crm/AddContactEmail/component.json +85 -0
  30. package/dist/appmixer/clientify/crm/AddContactNote/AddContactNote.js +25 -0
  31. package/dist/appmixer/clientify/crm/AddContactNote/component.json +75 -0
  32. package/dist/appmixer/clientify/crm/AddContactOtherCompany/AddContactOtherCompany.js +23 -0
  33. package/dist/appmixer/clientify/crm/AddContactOtherCompany/component.json +65 -0
  34. package/dist/appmixer/clientify/crm/AddContactPhone/AddContactPhone.js +25 -0
  35. package/dist/appmixer/clientify/crm/AddContactPhone/component.json +88 -0
  36. package/dist/appmixer/clientify/crm/AddContactTag/AddContactTag.js +23 -0
  37. package/dist/appmixer/clientify/crm/AddContactTag/component.json +71 -0
  38. package/dist/appmixer/clientify/crm/AssignContactOwner/AssignContactOwner.js +23 -0
  39. package/dist/appmixer/clientify/crm/AssignContactOwner/component.json +93 -0
  40. package/dist/appmixer/clientify/crm/BatchCreateContacts/BatchCreateContacts.js +23 -0
  41. package/dist/appmixer/clientify/crm/BatchCreateContacts/component.json +90 -0
  42. package/dist/appmixer/clientify/crm/CompleteTask/CompleteTask.js +24 -0
  43. package/dist/appmixer/clientify/crm/CompleteTask/component.json +69 -0
  44. package/dist/appmixer/clientify/crm/CreateCompany/CreateCompany.js +19 -0
  45. package/dist/appmixer/clientify/crm/CreateCompany/component.json +58 -0
  46. package/dist/appmixer/clientify/crm/CreateContact/CreateContact.js +19 -0
  47. package/dist/appmixer/clientify/crm/CreateContact/component.json +88 -0
  48. package/dist/appmixer/clientify/crm/CreateTask/CreateTask.js +19 -0
  49. package/dist/appmixer/clientify/crm/CreateTask/component.json +167 -0
  50. package/dist/appmixer/clientify/crm/DeleteCompany/DeleteCompany.js +22 -0
  51. package/dist/appmixer/clientify/crm/DeleteCompany/component.json +51 -0
  52. package/dist/appmixer/clientify/crm/DeleteCompanyAddress/DeleteCompanyAddress.js +22 -0
  53. package/dist/appmixer/clientify/crm/DeleteCompanyAddress/component.json +62 -0
  54. package/dist/appmixer/clientify/crm/DeleteCompanyEmail/DeleteCompanyEmail.js +22 -0
  55. package/dist/appmixer/clientify/crm/DeleteCompanyEmail/component.json +62 -0
  56. package/dist/appmixer/clientify/crm/DeleteCompanyPhone/DeleteCompanyPhone.js +22 -0
  57. package/dist/appmixer/clientify/crm/DeleteCompanyPhone/component.json +62 -0
  58. package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/DeleteCompanyWebsite.js +22 -0
  59. package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/component.json +62 -0
  60. package/dist/appmixer/clientify/crm/DeleteContact/DeleteContact.js +22 -0
  61. package/dist/appmixer/clientify/crm/DeleteContact/component.json +51 -0
  62. package/dist/appmixer/clientify/crm/DeleteContactAddress/DeleteContactAddress.js +22 -0
  63. package/dist/appmixer/clientify/crm/DeleteContactAddress/component.json +62 -0
  64. package/dist/appmixer/clientify/crm/DeleteContactEmail/DeleteContactEmail.js +22 -0
  65. package/dist/appmixer/clientify/crm/DeleteContactEmail/component.json +62 -0
  66. package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/DeleteContactOtherCompany.js +22 -0
  67. package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/component.json +62 -0
  68. package/dist/appmixer/clientify/crm/DeleteContactPhone/DeleteContactPhone.js +22 -0
  69. package/dist/appmixer/clientify/crm/DeleteContactPhone/component.json +62 -0
  70. package/dist/appmixer/clientify/crm/GetCompany/GetCompany.js +24 -0
  71. package/dist/appmixer/clientify/crm/GetCompany/component.json +69 -0
  72. package/dist/appmixer/clientify/crm/GetContact/GetContact.js +24 -0
  73. package/dist/appmixer/clientify/crm/GetContact/component.json +90 -0
  74. package/dist/appmixer/clientify/crm/GetCurrentUser/GetCurrentUser.js +17 -0
  75. package/dist/appmixer/clientify/crm/GetCurrentUser/component.json +49 -0
  76. package/dist/appmixer/clientify/crm/GetTask/GetTask.js +24 -0
  77. package/dist/appmixer/clientify/crm/GetTask/component.json +78 -0
  78. package/dist/appmixer/clientify/crm/ListAllCompanyTags/ListAllCompanyTags.js +16 -0
  79. package/dist/appmixer/clientify/crm/ListAllCompanyTags/component.json +67 -0
  80. package/dist/appmixer/clientify/crm/ListAllContactTags/ListAllContactTags.js +16 -0
  81. package/dist/appmixer/clientify/crm/ListAllContactTags/component.json +67 -0
  82. package/dist/appmixer/clientify/crm/ListCompanies/ListCompanies.js +26 -0
  83. package/dist/appmixer/clientify/crm/ListCompanies/component.json +117 -0
  84. package/dist/appmixer/clientify/crm/ListCompanyAddresses/ListCompanyAddresses.js +20 -0
  85. package/dist/appmixer/clientify/crm/ListCompanyAddresses/component.json +79 -0
  86. package/dist/appmixer/clientify/crm/ListCompanyCustomfields/ListCompanyCustomfields.js +20 -0
  87. package/dist/appmixer/clientify/crm/ListCompanyCustomfields/component.json +79 -0
  88. package/dist/appmixer/clientify/crm/ListCompanyEmails/ListCompanyEmails.js +20 -0
  89. package/dist/appmixer/clientify/crm/ListCompanyEmails/component.json +88 -0
  90. package/dist/appmixer/clientify/crm/ListCompanyEmployees/ListCompanyEmployees.js +20 -0
  91. package/dist/appmixer/clientify/crm/ListCompanyEmployees/component.json +79 -0
  92. package/dist/appmixer/clientify/crm/ListCompanyPhones/ListCompanyPhones.js +20 -0
  93. package/dist/appmixer/clientify/crm/ListCompanyPhones/component.json +91 -0
  94. package/dist/appmixer/clientify/crm/ListCompanySectors/ListCompanySectors.js +16 -0
  95. package/dist/appmixer/clientify/crm/ListCompanySectors/component.json +64 -0
  96. package/dist/appmixer/clientify/crm/ListCompanyTags/ListCompanyTags.js +20 -0
  97. package/dist/appmixer/clientify/crm/ListCompanyTags/component.json +85 -0
  98. package/dist/appmixer/clientify/crm/ListCompanyTasks/ListCompanyTasks.js +20 -0
  99. package/dist/appmixer/clientify/crm/ListCompanyTasks/component.json +79 -0
  100. package/dist/appmixer/clientify/crm/ListCompanyWallentries/ListCompanyWallentries.js +20 -0
  101. package/dist/appmixer/clientify/crm/ListCompanyWallentries/component.json +79 -0
  102. package/dist/appmixer/clientify/crm/ListCompanyWebsites/ListCompanyWebsites.js +20 -0
  103. package/dist/appmixer/clientify/crm/ListCompanyWebsites/component.json +79 -0
  104. package/dist/appmixer/clientify/crm/ListContactAddresses/ListContactAddresses.js +20 -0
  105. package/dist/appmixer/clientify/crm/ListContactAddresses/component.json +79 -0
  106. package/dist/appmixer/clientify/crm/ListContactCustomfields/ListContactCustomfields.js +20 -0
  107. package/dist/appmixer/clientify/crm/ListContactCustomfields/component.json +79 -0
  108. package/dist/appmixer/clientify/crm/ListContactEmails/ListContactEmails.js +20 -0
  109. package/dist/appmixer/clientify/crm/ListContactEmails/component.json +88 -0
  110. package/dist/appmixer/clientify/crm/ListContactOtherCompanies/ListContactOtherCompanies.js +20 -0
  111. package/dist/appmixer/clientify/crm/ListContactOtherCompanies/component.json +85 -0
  112. package/dist/appmixer/clientify/crm/ListContactPhones/ListContactPhones.js +20 -0
  113. package/dist/appmixer/clientify/crm/ListContactPhones/component.json +91 -0
  114. package/dist/appmixer/clientify/crm/ListContactTags/ListContactTags.js +20 -0
  115. package/dist/appmixer/clientify/crm/ListContactTags/component.json +85 -0
  116. package/dist/appmixer/clientify/crm/ListContactTasks/ListContactTasks.js +20 -0
  117. package/dist/appmixer/clientify/crm/ListContactTasks/component.json +79 -0
  118. package/dist/appmixer/clientify/crm/ListContactWallentries/ListContactWallentries.js +20 -0
  119. package/dist/appmixer/clientify/crm/ListContactWallentries/component.json +79 -0
  120. package/dist/appmixer/clientify/crm/ListContacts/ListContacts.js +26 -0
  121. package/dist/appmixer/clientify/crm/ListContacts/component.json +138 -0
  122. package/dist/appmixer/clientify/crm/ListCustomFieldValues/ListCustomFieldValues.js +19 -0
  123. package/dist/appmixer/clientify/crm/ListCustomFieldValues/component.json +77 -0
  124. package/dist/appmixer/clientify/crm/ListCustomFields/ListCustomFields.js +19 -0
  125. package/dist/appmixer/clientify/crm/ListCustomFields/component.json +77 -0
  126. package/dist/appmixer/clientify/crm/ListTaskStages/ListTaskStages.js +19 -0
  127. package/dist/appmixer/clientify/crm/ListTaskStages/component.json +87 -0
  128. package/dist/appmixer/clientify/crm/ListTaskTypes/ListTaskTypes.js +19 -0
  129. package/dist/appmixer/clientify/crm/ListTaskTypes/component.json +87 -0
  130. package/dist/appmixer/clientify/crm/ListTasks/ListTasks.js +25 -0
  131. package/dist/appmixer/clientify/crm/ListTasks/component.json +102 -0
  132. package/dist/appmixer/clientify/crm/ListUsers/ListUsers.js +24 -0
  133. package/dist/appmixer/clientify/crm/ListUsers/component.json +93 -0
  134. package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/RemoveCompanyEmployee.js +22 -0
  135. package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/component.json +62 -0
  136. package/dist/appmixer/clientify/crm/RemoveCompanyTag/RemoveCompanyTag.js +22 -0
  137. package/dist/appmixer/clientify/crm/RemoveCompanyTag/component.json +62 -0
  138. package/dist/appmixer/clientify/crm/RemoveContactTag/RemoveContactTag.js +22 -0
  139. package/dist/appmixer/clientify/crm/RemoveContactTag/component.json +62 -0
  140. package/dist/appmixer/clientify/crm/SearchCompanies/SearchCompanies.js +29 -0
  141. package/dist/appmixer/clientify/crm/SearchCompanies/component.json +111 -0
  142. package/dist/appmixer/clientify/crm/UpdateCompany/UpdateCompany.js +24 -0
  143. package/dist/appmixer/clientify/crm/UpdateCompany/component.json +60 -0
  144. package/dist/appmixer/clientify/crm/UpdateCompanyAddress/UpdateCompanyAddress.js +35 -0
  145. package/dist/appmixer/clientify/crm/UpdateCompanyAddress/component.json +131 -0
  146. package/dist/appmixer/clientify/crm/UpdateCompanyEmail/UpdateCompanyEmail.js +27 -0
  147. package/dist/appmixer/clientify/crm/UpdateCompanyEmail/component.json +91 -0
  148. package/dist/appmixer/clientify/crm/UpdateCompanyPhone/UpdateCompanyPhone.js +27 -0
  149. package/dist/appmixer/clientify/crm/UpdateCompanyPhone/component.json +91 -0
  150. package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/UpdateCompanyWebsite.js +25 -0
  151. package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/component.json +81 -0
  152. package/dist/appmixer/clientify/crm/UpdateContact/UpdateContact.js +24 -0
  153. package/dist/appmixer/clientify/crm/UpdateContact/component.json +81 -0
  154. package/dist/appmixer/clientify/crm/UpdateContactAddress/UpdateContactAddress.js +35 -0
  155. package/dist/appmixer/clientify/crm/UpdateContactAddress/component.json +152 -0
  156. package/dist/appmixer/clientify/crm/UpdateContactEmail/UpdateContactEmail.js +27 -0
  157. package/dist/appmixer/clientify/crm/UpdateContactEmail/component.json +112 -0
  158. package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/UpdateContactMarketingStatus.js +25 -0
  159. package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/component.json +92 -0
  160. package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/UpdateContactOtherCompany.js +25 -0
  161. package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/component.json +102 -0
  162. package/dist/appmixer/clientify/crm/UpdateContactPhone/UpdateContactPhone.js +27 -0
  163. package/dist/appmixer/clientify/crm/UpdateContactPhone/component.json +112 -0
  164. package/dist/appmixer/clientify/crm/UpdateTask/UpdateTask.js +24 -0
  165. package/dist/appmixer/clientify/crm/UpdateTask/component.json +69 -0
  166. package/dist/appmixer/clientify/crm/clientify.js +49 -0
  167. package/dist/appmixer/clientify/crm/fields.js +24 -0
  168. package/dist/appmixer/clientify/crm/module.json +7 -0
  169. package/dist/credentials/{ClientifyMcpApi.credentials.d.ts → ClientifyApi.credentials.d.ts} +1 -1
  170. package/dist/credentials/ClientifyApi.credentials.js +33 -0
  171. package/dist/nodes/{ClientifyMcp/ClientifyMcpDynamic.node.d.ts → ClientifyApi/ClientifyApi.node.d.ts} +1 -1
  172. package/dist/nodes/ClientifyApi/ClientifyApi.node.js +139 -0
  173. package/dist/nodes/ClientifyApi/ClientifyApiCatalog.d.ts +23 -0
  174. package/dist/nodes/ClientifyApi/ClientifyApiCatalog.js +217 -0
  175. package/dist/nodes/{ClientifyMcp/ClientifyMcpTrigger.node.d.ts → ClientifyTrigger/ClientifyTrigger.node.d.ts} +1 -1
  176. package/dist/nodes/{ClientifyMcp/ClientifyMcpTrigger.node.js → ClientifyTrigger/ClientifyTrigger.node.js} +6 -12
  177. package/dist/nodes/ClientifyTrigger/clientify.png +0 -0
  178. package/dist/nodes/ClientifyTrigger/clientify.svg +5 -0
  179. package/dist/package.json +13 -6
  180. package/package.json +13 -6
  181. package/dist/credentials/ClientifyMcpApi.credentials.js +0 -25
  182. package/dist/nodes/ClientifyMcp/ClientifyMcpDynamic.node.js +0 -211
  183. package/dist/nodes/ClientifyMcp/ClientifyMcpFields.d.ts +0 -15
  184. package/dist/nodes/ClientifyMcp/ClientifyMcpFields.js +0 -894
  185. /package/dist/nodes/{ClientifyMcp → ClientifyApi}/clientify.png +0 -0
  186. /package/dist/nodes/{ClientifyMcp → ClientifyApi}/clientify.svg +0 -0
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.UpdateContactEmail",
3
+ "author": "Clientify",
4
+ "label": "Update Contact Email",
5
+ "description": "Update a contact email entry.",
6
+ "private": false,
7
+ "version": "0.1.0",
8
+ "auth": {
9
+ "service": "appmixer:clientify"
10
+ },
11
+ "inPorts": [
12
+ {
13
+ "name": "in",
14
+ "schema": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "contactId": {
19
+ "type": "number"
20
+ },
21
+ "emailId": {
22
+ "type": "number"
23
+ },
24
+ "email": {
25
+ "type": "string"
26
+ },
27
+ "type": {
28
+ "type": "number"
29
+ }
30
+ },
31
+ "required": [
32
+ "contactId",
33
+ "emailId",
34
+ "email",
35
+ "type"
36
+ ]
37
+ },
38
+ "inspector": {
39
+ "inputs": {
40
+ "contactId": {
41
+ "type": "number",
42
+ "label": "Contact ID",
43
+ "tooltip": "Set Contact ID (can be mapped from previous steps).",
44
+ "index": 1
45
+ },
46
+ "emailId": {
47
+ "type": "number",
48
+ "label": "Email ID",
49
+ "tooltip": "Set Email ID (can be mapped from previous steps).",
50
+ "index": 2
51
+ },
52
+ "email": {
53
+ "type": "text",
54
+ "label": "Email",
55
+ "tooltip": "Set Email (can be mapped from previous steps).",
56
+ "index": 3
57
+ },
58
+ "type": {
59
+ "type": "number",
60
+ "label": "Type",
61
+ "tooltip": "Set Type (can be mapped from previous steps).",
62
+ "index": 4
63
+ }
64
+ }
65
+ }
66
+ }
67
+ ],
68
+ "outPorts": [
69
+ {
70
+ "name": "out",
71
+ "schema": {
72
+ "type": "object",
73
+ "additionalProperties": true,
74
+ "properties": {
75
+ "id": {
76
+ "type": "number"
77
+ },
78
+ "url": {
79
+ "type": "string"
80
+ },
81
+ "first_name": {
82
+ "type": "string"
83
+ },
84
+ "last_name": {
85
+ "type": "string"
86
+ },
87
+ "email": {
88
+ "type": [
89
+ "string",
90
+ "null"
91
+ ]
92
+ },
93
+ "company_id": {
94
+ "type": [
95
+ "number",
96
+ "null"
97
+ ]
98
+ },
99
+ "company_name": {
100
+ "type": [
101
+ "string",
102
+ "null"
103
+ ]
104
+ }
105
+ },
106
+ "required": [
107
+ "id"
108
+ ]
109
+ }
110
+ }
111
+ ]
112
+ }
@@ -0,0 +1,25 @@
1
+ const { clientifyRequest } = require('../clientify');
2
+
3
+ module.exports = {
4
+ async receive(context) {
5
+ const { apiKey, baseUrl } = context.auth;
6
+ const input = (context.messages.in && context.messages.in.content) || {};
7
+ const contactId = input.contactId;
8
+ const marketingStatus = input.marketing_status;
9
+ if (!contactId) throw new context.CancelError('contactId is required');
10
+ if (typeof marketingStatus !== 'boolean') {
11
+ throw new context.CancelError('marketing_status must be a boolean');
12
+ }
13
+
14
+ const { data } = await clientifyRequest(context, {
15
+ apiKey,
16
+ baseUrl,
17
+ method: 'PUT',
18
+ path: `/contacts/${contactId}/marketing_status/`,
19
+ data: { marketing_status: marketingStatus },
20
+ });
21
+
22
+ return context.sendJson(data || { ok: true }, 'out');
23
+ },
24
+ };
25
+
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.UpdateContactMarketingStatus",
3
+ "author": "Clientify",
4
+ "label": "Update Contact Marketing Status",
5
+ "description": "Update a contact marketing status.",
6
+ "private": false,
7
+ "version": "0.1.0",
8
+ "auth": {
9
+ "service": "appmixer:clientify"
10
+ },
11
+ "inPorts": [
12
+ {
13
+ "name": "in",
14
+ "schema": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "contactId": {
19
+ "type": "number"
20
+ },
21
+ "marketing_status": {
22
+ "type": "boolean"
23
+ }
24
+ },
25
+ "required": [
26
+ "contactId",
27
+ "marketing_status"
28
+ ]
29
+ },
30
+ "inspector": {
31
+ "inputs": {
32
+ "contactId": {
33
+ "type": "number",
34
+ "label": "Contact ID",
35
+ "tooltip": "Set Contact ID (can be mapped from previous steps).",
36
+ "index": 1
37
+ },
38
+ "marketing_status": {
39
+ "type": "toggle",
40
+ "label": "Marketing Status",
41
+ "tooltip": "Set Marketing Status (can be mapped from previous steps).",
42
+ "index": 2
43
+ }
44
+ }
45
+ }
46
+ }
47
+ ],
48
+ "outPorts": [
49
+ {
50
+ "name": "out",
51
+ "schema": {
52
+ "type": "object",
53
+ "additionalProperties": true,
54
+ "properties": {
55
+ "id": {
56
+ "type": "number"
57
+ },
58
+ "url": {
59
+ "type": "string"
60
+ },
61
+ "first_name": {
62
+ "type": "string"
63
+ },
64
+ "last_name": {
65
+ "type": "string"
66
+ },
67
+ "email": {
68
+ "type": [
69
+ "string",
70
+ "null"
71
+ ]
72
+ },
73
+ "company_id": {
74
+ "type": [
75
+ "number",
76
+ "null"
77
+ ]
78
+ },
79
+ "company_name": {
80
+ "type": [
81
+ "string",
82
+ "null"
83
+ ]
84
+ }
85
+ },
86
+ "required": [
87
+ "id"
88
+ ]
89
+ }
90
+ }
91
+ ]
92
+ }
@@ -0,0 +1,25 @@
1
+ const { clientifyRequest } = require('../clientify');
2
+
3
+ module.exports = {
4
+ async receive(context) {
5
+ const { apiKey, baseUrl } = context.auth;
6
+ const input = (context.messages.in && context.messages.in.content) || {};
7
+ const contactId = input.contactId;
8
+ const otherCompanyId = input.otherCompanyId;
9
+ const title = input.title;
10
+ if (!contactId) throw new context.CancelError('contactId is required');
11
+ if (!otherCompanyId) throw new context.CancelError('otherCompanyId is required');
12
+ if (!title) throw new context.CancelError('title is required');
13
+
14
+ const { data } = await clientifyRequest(context, {
15
+ apiKey,
16
+ baseUrl,
17
+ method: 'PUT',
18
+ path: `/contacts/${contactId}/other_companies/${otherCompanyId}/`,
19
+ data: { title },
20
+ });
21
+
22
+ return context.sendJson(data, 'out');
23
+ },
24
+ };
25
+
@@ -0,0 +1,102 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.UpdateContactOtherCompany",
3
+ "author": "Clientify",
4
+ "label": "Update Contact Other Company",
5
+ "description": "Update a contact other-company relationship.",
6
+ "private": false,
7
+ "version": "0.1.0",
8
+ "auth": {
9
+ "service": "appmixer:clientify"
10
+ },
11
+ "inPorts": [
12
+ {
13
+ "name": "in",
14
+ "schema": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "contactId": {
19
+ "type": "number"
20
+ },
21
+ "otherCompanyId": {
22
+ "type": "number"
23
+ },
24
+ "title": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "required": [
29
+ "contactId",
30
+ "otherCompanyId",
31
+ "title"
32
+ ]
33
+ },
34
+ "inspector": {
35
+ "inputs": {
36
+ "contactId": {
37
+ "type": "number",
38
+ "label": "Contact ID",
39
+ "tooltip": "Set Contact ID (can be mapped from previous steps).",
40
+ "index": 1
41
+ },
42
+ "otherCompanyId": {
43
+ "type": "number",
44
+ "label": "Other Company ID",
45
+ "tooltip": "Set Other Company ID (can be mapped from previous steps).",
46
+ "index": 2
47
+ },
48
+ "title": {
49
+ "type": "text",
50
+ "label": "Title",
51
+ "tooltip": "Set Title (can be mapped from previous steps).",
52
+ "index": 3
53
+ }
54
+ }
55
+ }
56
+ }
57
+ ],
58
+ "outPorts": [
59
+ {
60
+ "name": "out",
61
+ "schema": {
62
+ "type": "object",
63
+ "additionalProperties": true,
64
+ "properties": {
65
+ "id": {
66
+ "type": "number"
67
+ },
68
+ "url": {
69
+ "type": "string"
70
+ },
71
+ "first_name": {
72
+ "type": "string"
73
+ },
74
+ "last_name": {
75
+ "type": "string"
76
+ },
77
+ "email": {
78
+ "type": [
79
+ "string",
80
+ "null"
81
+ ]
82
+ },
83
+ "company_id": {
84
+ "type": [
85
+ "number",
86
+ "null"
87
+ ]
88
+ },
89
+ "company_name": {
90
+ "type": [
91
+ "string",
92
+ "null"
93
+ ]
94
+ }
95
+ },
96
+ "required": [
97
+ "id"
98
+ ]
99
+ }
100
+ }
101
+ ]
102
+ }
@@ -0,0 +1,27 @@
1
+ const { clientifyRequest } = require('../clientify');
2
+
3
+ module.exports = {
4
+ async receive(context) {
5
+ const { apiKey, baseUrl } = context.auth;
6
+ const input = (context.messages.in && context.messages.in.content) || {};
7
+ const contactId = input.contactId;
8
+ const phoneId = input.phoneId;
9
+ const phone = input.phone;
10
+ const type = input.type;
11
+ if (!contactId) throw new context.CancelError('contactId is required');
12
+ if (!phoneId) throw new context.CancelError('phoneId is required');
13
+ if (!phone) throw new context.CancelError('phone is required');
14
+ if (!type) throw new context.CancelError('type is required');
15
+
16
+ const { data } = await clientifyRequest(context, {
17
+ apiKey,
18
+ baseUrl,
19
+ method: 'PUT',
20
+ path: `/contacts/${contactId}/phones/${phoneId}/`,
21
+ data: { phone, type },
22
+ });
23
+
24
+ return context.sendJson(data || { ok: true }, 'out');
25
+ },
26
+ };
27
+
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.UpdateContactPhone",
3
+ "author": "Clientify",
4
+ "label": "Update Contact Phone",
5
+ "description": "Update a contact phone entry.",
6
+ "private": false,
7
+ "version": "0.1.0",
8
+ "auth": {
9
+ "service": "appmixer:clientify"
10
+ },
11
+ "inPorts": [
12
+ {
13
+ "name": "in",
14
+ "schema": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "properties": {
18
+ "contactId": {
19
+ "type": "number"
20
+ },
21
+ "phoneId": {
22
+ "type": "number"
23
+ },
24
+ "phone": {
25
+ "type": "string"
26
+ },
27
+ "type": {
28
+ "type": "number"
29
+ }
30
+ },
31
+ "required": [
32
+ "contactId",
33
+ "phoneId",
34
+ "phone",
35
+ "type"
36
+ ]
37
+ },
38
+ "inspector": {
39
+ "inputs": {
40
+ "contactId": {
41
+ "type": "number",
42
+ "label": "Contact ID",
43
+ "tooltip": "Set Contact ID (can be mapped from previous steps).",
44
+ "index": 1
45
+ },
46
+ "phoneId": {
47
+ "type": "number",
48
+ "label": "Phone ID",
49
+ "tooltip": "Set Phone ID (can be mapped from previous steps).",
50
+ "index": 2
51
+ },
52
+ "phone": {
53
+ "type": "text",
54
+ "label": "Phone",
55
+ "tooltip": "Set Phone (can be mapped from previous steps).",
56
+ "index": 3
57
+ },
58
+ "type": {
59
+ "type": "number",
60
+ "label": "Type",
61
+ "tooltip": "Set Type (can be mapped from previous steps).",
62
+ "index": 4
63
+ }
64
+ }
65
+ }
66
+ }
67
+ ],
68
+ "outPorts": [
69
+ {
70
+ "name": "out",
71
+ "schema": {
72
+ "type": "object",
73
+ "additionalProperties": true,
74
+ "properties": {
75
+ "id": {
76
+ "type": "number"
77
+ },
78
+ "url": {
79
+ "type": "string"
80
+ },
81
+ "first_name": {
82
+ "type": "string"
83
+ },
84
+ "last_name": {
85
+ "type": "string"
86
+ },
87
+ "email": {
88
+ "type": [
89
+ "string",
90
+ "null"
91
+ ]
92
+ },
93
+ "company_id": {
94
+ "type": [
95
+ "number",
96
+ "null"
97
+ ]
98
+ },
99
+ "company_name": {
100
+ "type": [
101
+ "string",
102
+ "null"
103
+ ]
104
+ }
105
+ },
106
+ "required": [
107
+ "id"
108
+ ]
109
+ }
110
+ }
111
+ ]
112
+ }
@@ -0,0 +1,24 @@
1
+ const { clientifyRequest } = require('../clientify');
2
+
3
+ module.exports = {
4
+ async receive(context) {
5
+ const { apiKey, baseUrl } = context.auth;
6
+ const input = (context.messages.in && context.messages.in.content) || {};
7
+ const taskId = input.taskId;
8
+ if (!taskId) {
9
+ throw new context.CancelError('taskId is required');
10
+ }
11
+
12
+ const { taskId: _ignored, ...body } = input;
13
+ const { data } = await clientifyRequest(context, {
14
+ apiKey,
15
+ baseUrl,
16
+ method: 'PUT',
17
+ path: `/tasks/${taskId}/`,
18
+ data: body,
19
+ });
20
+
21
+ return context.sendJson(data, 'out');
22
+ },
23
+ };
24
+
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.UpdateTask",
3
+ "author": "Clientify",
4
+ "label": "Update Task",
5
+ "description": "Update an existing task.",
6
+ "private": false,
7
+ "version": "0.1.0",
8
+ "auth": {
9
+ "service": "appmixer:clientify"
10
+ },
11
+ "inPorts": [
12
+ {
13
+ "name": "in",
14
+ "schema": {
15
+ "type": "object",
16
+ "properties": {
17
+ "taskId": {
18
+ "type": "number"
19
+ }
20
+ },
21
+ "required": [
22
+ "taskId"
23
+ ]
24
+ },
25
+ "inspector": {
26
+ "inputs": {
27
+ "taskId": {
28
+ "type": "number",
29
+ "label": "Task ID",
30
+ "tooltip": "Set Task ID (can be mapped from previous steps).",
31
+ "index": 1
32
+ }
33
+ }
34
+ }
35
+ }
36
+ ],
37
+ "outPorts": [
38
+ {
39
+ "name": "out",
40
+ "schema": {
41
+ "type": "object",
42
+ "additionalProperties": true,
43
+ "properties": {
44
+ "id": {
45
+ "type": "number"
46
+ },
47
+ "url": {
48
+ "type": "string"
49
+ },
50
+ "name": {
51
+ "type": "string"
52
+ },
53
+ "status": {
54
+ "type": "string"
55
+ },
56
+ "due_date": {
57
+ "type": [
58
+ "string",
59
+ "null"
60
+ ]
61
+ }
62
+ },
63
+ "required": [
64
+ "id"
65
+ ]
66
+ }
67
+ }
68
+ ]
69
+ }
@@ -0,0 +1,49 @@
1
+ const DEFAULT_BASE_URL = 'https://api-plus.clientify.com/v2';
2
+
3
+ function normalizeBaseUrl(baseUrl) {
4
+ const raw = String(baseUrl || DEFAULT_BASE_URL).trim();
5
+ return raw.endsWith('/') ? raw.slice(0, -1) : raw;
6
+ }
7
+
8
+ function buildUrl(baseUrl, path, query) {
9
+ const base = normalizeBaseUrl(baseUrl);
10
+ const p = path.startsWith('/') ? path : `/${path}`;
11
+ const url = new URL(`${base}${p}`);
12
+ if (query && typeof query === 'object') {
13
+ for (const [key, value] of Object.entries(query)) {
14
+ if (value === undefined || value === null) continue;
15
+ url.searchParams.set(key, String(value));
16
+ }
17
+ }
18
+ return url.toString();
19
+ }
20
+
21
+ /**
22
+ * Minimal Clientify request helper for AppMixer components.
23
+ *
24
+ * We prefer `context.httpRequest()` so AppMixer can handle retries/logging.
25
+ */
26
+ async function clientifyRequest(context, { apiKey, baseUrl, method, path, query, data }) {
27
+ if (!context?.httpRequest) {
28
+ throw new Error('Expected AppMixer context.httpRequest to exist.');
29
+ }
30
+ if (!apiKey) {
31
+ throw new Error('Missing apiKey in AppMixer connection.');
32
+ }
33
+ const url = buildUrl(baseUrl || DEFAULT_BASE_URL, path, query);
34
+ return context.httpRequest({
35
+ method,
36
+ url,
37
+ headers: {
38
+ Authorization: `Token ${apiKey}`,
39
+ 'Content-Type': 'application/json',
40
+ Accept: 'application/json',
41
+ },
42
+ data,
43
+ });
44
+ }
45
+
46
+ module.exports = {
47
+ DEFAULT_BASE_URL,
48
+ clientifyRequest,
49
+ };
@@ -0,0 +1,24 @@
1
+ module.exports = {
2
+ contacts: {
3
+ list:
4
+ 'id,owner_id,first_name,last_name,status,title,company_id,contact_type,contact_source,picture_url,description,remarks,summary,created',
5
+ detail:
6
+ 'id,owner_id,first_name,last_name,status,title,company_id,company_name,company_picture,contact_type,contact_source,picture_url,description,remarks,summary',
7
+ },
8
+ companies: {
9
+ list:
10
+ 'id,name,sector,company_sector,business_name,taxpayer_identification_number,fax,number_of_employees,number_of_employees_desc,owner,owner_name,rank,rank_manual,picture_url,facebook_url,linkedin_url,twitter_url,private,last_viewed,last_interaction,facebook_id,twitter_id,linkedin_id,founded,online_since,full_contact_extra,approx_employees,description,remarks,summary,linkedin_picture_url,created,modified,youtube_url,instagram_url,owner_picture,industry',
11
+ detail:
12
+ 'id,name,sector,company_sector,business_name,taxpayer_identification_number,fax,number_of_employees,number_of_employees_desc,owner,owner_name,rank,rank_manual,picture_url,facebook_url,linkedin_url,twitter_url,private,last_viewed,last_interaction,facebook_id,twitter_id,linkedin_id,founded,online_since,full_contact_extra,approx_employees,description,remarks,summary,linkedin_picture_url,created,modified,youtube_url,instagram_url,owner_picture,industry',
13
+ },
14
+ tasks: {
15
+ list:
16
+ 'url,id,owner,owner_name,owner_id,assigned_to,assigned_to_name,assigned_to_id,name,description,remarks,due_date,start_datetime,end_datetime,duration,type,status,status_desc,task_type,type_desc,task_stage,related_companies,additional_option,location,guest_users,created,modified,related_contacts,priority,recurring_type,recurring_end_date,recurring_interval,tags,activity_type,url_meeting,assigned_to_picture,parent_task_id,colors,recurring_days_of_week,recurring_days_of_month,recurring_days_of_year,number_of_repetitions,outcome,meeting_goal,is_holiday',
17
+ detail:
18
+ 'url,id,owner,owner_name,owner_id,assigned_to,assigned_to_name,assigned_to_id,assigned_to_picture,name,description,remarks,due_date,start_datetime,end_datetime,duration,type,status,status_desc,deals,task_type,type_desc,task_stage,priority,related_companies,related_companies_names,related_companies_data,related_contacts,related_contacts_names,related_contacts_data,related_deals_data,tags,notes,phone_number,colors,additional_option,location,guest_users,created,modified,completed_date,activity_type,parent_task,parent_task_id,recurring_days_of_week,recurring_days_of_month,recurring_days_of_year,recurring_type,recurring_end_date,recurring_interval,meeting_goal,url_meeting,number_of_repetitions,outcome,is_holiday',
19
+ },
20
+ users: {
21
+ list: 'id,username,full_name',
22
+ me: 'id,email,username,full_name',
23
+ },
24
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "appmixer.clientify.crm",
3
+ "label": "CRM",
4
+ "category": "crm",
5
+ "icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48cmVjdCB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHJ4PSIxMiIgZmlsbD0iIzBlYTVlOSIvPjx0ZXh0IHg9IjMyIiB5PSI0MSIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMjgiIHRleHQtYW5jaG9yPSJtaWRkbGUiIGZpbGw9IiNmZmYiPkM8L3RleHQ+PC9zdmc+",
6
+ "description": "Clientify CRM actions."
7
+ }
@@ -1,5 +1,5 @@
1
1
  import { ICredentialType, INodeProperties } from 'n8n-workflow';
2
- export declare class ClientifyMcpApi implements ICredentialType {
2
+ export declare class ClientifyApi implements ICredentialType {
3
3
  name: string;
4
4
  displayName: string;
5
5
  documentationUrl: string;