n8n-nodes-clientify 0.2.4 → 0.2.5

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 (185) hide show
  1. package/README.md +31 -338
  2. package/dist/README.md +31 -338
  3. package/dist/appmixer/clientify/crm/AddCompanyAddress/AddCompanyAddress.js +33 -0
  4. package/dist/appmixer/clientify/crm/AddCompanyAddress/component.json +115 -0
  5. package/dist/appmixer/clientify/crm/AddCompanyCall/AddCompanyCall.js +32 -0
  6. package/dist/appmixer/clientify/crm/AddCompanyCall/component.json +109 -0
  7. package/dist/appmixer/clientify/crm/AddCompanyCheckin/AddCompanyCheckin.js +31 -0
  8. package/dist/appmixer/clientify/crm/AddCompanyCheckin/component.json +98 -0
  9. package/dist/appmixer/clientify/crm/AddCompanyEmail/AddCompanyEmail.js +25 -0
  10. package/dist/appmixer/clientify/crm/AddCompanyEmail/component.json +84 -0
  11. package/dist/appmixer/clientify/crm/AddCompanyEmployee/AddCompanyEmployee.js +22 -0
  12. package/dist/appmixer/clientify/crm/AddCompanyEmployee/component.json +65 -0
  13. package/dist/appmixer/clientify/crm/AddCompanyNote/AddCompanyNote.js +25 -0
  14. package/dist/appmixer/clientify/crm/AddCompanyNote/component.json +75 -0
  15. package/dist/appmixer/clientify/crm/AddCompanyPhone/AddCompanyPhone.js +25 -0
  16. package/dist/appmixer/clientify/crm/AddCompanyPhone/component.json +87 -0
  17. package/dist/appmixer/clientify/crm/AddCompanyTag/AddCompanyTag.js +23 -0
  18. package/dist/appmixer/clientify/crm/AddCompanyTag/component.json +71 -0
  19. package/dist/appmixer/clientify/crm/AddCompanyWebsite/AddCompanyWebsite.js +23 -0
  20. package/dist/appmixer/clientify/crm/AddCompanyWebsite/component.json +65 -0
  21. package/dist/appmixer/clientify/crm/AddContactAddress/AddContactAddress.js +33 -0
  22. package/dist/appmixer/clientify/crm/AddContactAddress/component.json +115 -0
  23. package/dist/appmixer/clientify/crm/AddContactCall/AddContactCall.js +20 -0
  24. package/dist/appmixer/clientify/crm/AddContactCall/component.json +55 -0
  25. package/dist/appmixer/clientify/crm/AddContactCheckin/AddContactCheckin.js +33 -0
  26. package/dist/appmixer/clientify/crm/AddContactCheckin/component.json +109 -0
  27. package/dist/appmixer/clientify/crm/AddContactEmail/AddContactEmail.js +25 -0
  28. package/dist/appmixer/clientify/crm/AddContactEmail/component.json +85 -0
  29. package/dist/appmixer/clientify/crm/AddContactNote/AddContactNote.js +25 -0
  30. package/dist/appmixer/clientify/crm/AddContactNote/component.json +75 -0
  31. package/dist/appmixer/clientify/crm/AddContactOtherCompany/AddContactOtherCompany.js +23 -0
  32. package/dist/appmixer/clientify/crm/AddContactOtherCompany/component.json +65 -0
  33. package/dist/appmixer/clientify/crm/AddContactPhone/AddContactPhone.js +25 -0
  34. package/dist/appmixer/clientify/crm/AddContactPhone/component.json +88 -0
  35. package/dist/appmixer/clientify/crm/AddContactTag/AddContactTag.js +23 -0
  36. package/dist/appmixer/clientify/crm/AddContactTag/component.json +71 -0
  37. package/dist/appmixer/clientify/crm/AssignContactOwner/AssignContactOwner.js +23 -0
  38. package/dist/appmixer/clientify/crm/AssignContactOwner/component.json +93 -0
  39. package/dist/appmixer/clientify/crm/BatchCreateContacts/BatchCreateContacts.js +23 -0
  40. package/dist/appmixer/clientify/crm/BatchCreateContacts/component.json +90 -0
  41. package/dist/appmixer/clientify/crm/CompleteTask/CompleteTask.js +24 -0
  42. package/dist/appmixer/clientify/crm/CompleteTask/component.json +69 -0
  43. package/dist/appmixer/clientify/crm/CreateCompany/CreateCompany.js +19 -0
  44. package/dist/appmixer/clientify/crm/CreateCompany/component.json +58 -0
  45. package/dist/appmixer/clientify/crm/CreateContact/CreateContact.js +19 -0
  46. package/dist/appmixer/clientify/crm/CreateContact/component.json +88 -0
  47. package/dist/appmixer/clientify/crm/CreateTask/CreateTask.js +19 -0
  48. package/dist/appmixer/clientify/crm/CreateTask/component.json +167 -0
  49. package/dist/appmixer/clientify/crm/DeleteCompany/DeleteCompany.js +22 -0
  50. package/dist/appmixer/clientify/crm/DeleteCompany/component.json +51 -0
  51. package/dist/appmixer/clientify/crm/DeleteCompanyAddress/DeleteCompanyAddress.js +22 -0
  52. package/dist/appmixer/clientify/crm/DeleteCompanyAddress/component.json +62 -0
  53. package/dist/appmixer/clientify/crm/DeleteCompanyEmail/DeleteCompanyEmail.js +22 -0
  54. package/dist/appmixer/clientify/crm/DeleteCompanyEmail/component.json +62 -0
  55. package/dist/appmixer/clientify/crm/DeleteCompanyPhone/DeleteCompanyPhone.js +22 -0
  56. package/dist/appmixer/clientify/crm/DeleteCompanyPhone/component.json +62 -0
  57. package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/DeleteCompanyWebsite.js +22 -0
  58. package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/component.json +62 -0
  59. package/dist/appmixer/clientify/crm/DeleteContact/DeleteContact.js +22 -0
  60. package/dist/appmixer/clientify/crm/DeleteContact/component.json +51 -0
  61. package/dist/appmixer/clientify/crm/DeleteContactAddress/DeleteContactAddress.js +22 -0
  62. package/dist/appmixer/clientify/crm/DeleteContactAddress/component.json +62 -0
  63. package/dist/appmixer/clientify/crm/DeleteContactEmail/DeleteContactEmail.js +22 -0
  64. package/dist/appmixer/clientify/crm/DeleteContactEmail/component.json +62 -0
  65. package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/DeleteContactOtherCompany.js +22 -0
  66. package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/component.json +62 -0
  67. package/dist/appmixer/clientify/crm/DeleteContactPhone/DeleteContactPhone.js +22 -0
  68. package/dist/appmixer/clientify/crm/DeleteContactPhone/component.json +62 -0
  69. package/dist/appmixer/clientify/crm/GetCompany/GetCompany.js +24 -0
  70. package/dist/appmixer/clientify/crm/GetCompany/component.json +69 -0
  71. package/dist/appmixer/clientify/crm/GetContact/GetContact.js +24 -0
  72. package/dist/appmixer/clientify/crm/GetContact/component.json +90 -0
  73. package/dist/appmixer/clientify/crm/GetCurrentUser/GetCurrentUser.js +17 -0
  74. package/dist/appmixer/clientify/crm/GetCurrentUser/component.json +49 -0
  75. package/dist/appmixer/clientify/crm/GetTask/GetTask.js +24 -0
  76. package/dist/appmixer/clientify/crm/GetTask/component.json +78 -0
  77. package/dist/appmixer/clientify/crm/ListAllCompanyTags/ListAllCompanyTags.js +16 -0
  78. package/dist/appmixer/clientify/crm/ListAllCompanyTags/component.json +67 -0
  79. package/dist/appmixer/clientify/crm/ListAllContactTags/ListAllContactTags.js +16 -0
  80. package/dist/appmixer/clientify/crm/ListAllContactTags/component.json +67 -0
  81. package/dist/appmixer/clientify/crm/ListCompanies/ListCompanies.js +26 -0
  82. package/dist/appmixer/clientify/crm/ListCompanies/component.json +117 -0
  83. package/dist/appmixer/clientify/crm/ListCompanyAddresses/ListCompanyAddresses.js +20 -0
  84. package/dist/appmixer/clientify/crm/ListCompanyAddresses/component.json +79 -0
  85. package/dist/appmixer/clientify/crm/ListCompanyCustomfields/ListCompanyCustomfields.js +20 -0
  86. package/dist/appmixer/clientify/crm/ListCompanyCustomfields/component.json +79 -0
  87. package/dist/appmixer/clientify/crm/ListCompanyEmails/ListCompanyEmails.js +20 -0
  88. package/dist/appmixer/clientify/crm/ListCompanyEmails/component.json +88 -0
  89. package/dist/appmixer/clientify/crm/ListCompanyEmployees/ListCompanyEmployees.js +20 -0
  90. package/dist/appmixer/clientify/crm/ListCompanyEmployees/component.json +79 -0
  91. package/dist/appmixer/clientify/crm/ListCompanyPhones/ListCompanyPhones.js +20 -0
  92. package/dist/appmixer/clientify/crm/ListCompanyPhones/component.json +91 -0
  93. package/dist/appmixer/clientify/crm/ListCompanySectors/ListCompanySectors.js +16 -0
  94. package/dist/appmixer/clientify/crm/ListCompanySectors/component.json +64 -0
  95. package/dist/appmixer/clientify/crm/ListCompanyTags/ListCompanyTags.js +20 -0
  96. package/dist/appmixer/clientify/crm/ListCompanyTags/component.json +85 -0
  97. package/dist/appmixer/clientify/crm/ListCompanyTasks/ListCompanyTasks.js +20 -0
  98. package/dist/appmixer/clientify/crm/ListCompanyTasks/component.json +79 -0
  99. package/dist/appmixer/clientify/crm/ListCompanyWallentries/ListCompanyWallentries.js +20 -0
  100. package/dist/appmixer/clientify/crm/ListCompanyWallentries/component.json +79 -0
  101. package/dist/appmixer/clientify/crm/ListCompanyWebsites/ListCompanyWebsites.js +20 -0
  102. package/dist/appmixer/clientify/crm/ListCompanyWebsites/component.json +79 -0
  103. package/dist/appmixer/clientify/crm/ListContactAddresses/ListContactAddresses.js +20 -0
  104. package/dist/appmixer/clientify/crm/ListContactAddresses/component.json +79 -0
  105. package/dist/appmixer/clientify/crm/ListContactCustomfields/ListContactCustomfields.js +20 -0
  106. package/dist/appmixer/clientify/crm/ListContactCustomfields/component.json +79 -0
  107. package/dist/appmixer/clientify/crm/ListContactEmails/ListContactEmails.js +20 -0
  108. package/dist/appmixer/clientify/crm/ListContactEmails/component.json +88 -0
  109. package/dist/appmixer/clientify/crm/ListContactOtherCompanies/ListContactOtherCompanies.js +20 -0
  110. package/dist/appmixer/clientify/crm/ListContactOtherCompanies/component.json +85 -0
  111. package/dist/appmixer/clientify/crm/ListContactPhones/ListContactPhones.js +20 -0
  112. package/dist/appmixer/clientify/crm/ListContactPhones/component.json +91 -0
  113. package/dist/appmixer/clientify/crm/ListContactTags/ListContactTags.js +20 -0
  114. package/dist/appmixer/clientify/crm/ListContactTags/component.json +85 -0
  115. package/dist/appmixer/clientify/crm/ListContactTasks/ListContactTasks.js +20 -0
  116. package/dist/appmixer/clientify/crm/ListContactTasks/component.json +79 -0
  117. package/dist/appmixer/clientify/crm/ListContactWallentries/ListContactWallentries.js +20 -0
  118. package/dist/appmixer/clientify/crm/ListContactWallentries/component.json +79 -0
  119. package/dist/appmixer/clientify/crm/ListContacts/ListContacts.js +26 -0
  120. package/dist/appmixer/clientify/crm/ListContacts/component.json +138 -0
  121. package/dist/appmixer/clientify/crm/ListCustomFieldValues/ListCustomFieldValues.js +19 -0
  122. package/dist/appmixer/clientify/crm/ListCustomFieldValues/component.json +77 -0
  123. package/dist/appmixer/clientify/crm/ListCustomFields/ListCustomFields.js +19 -0
  124. package/dist/appmixer/clientify/crm/ListCustomFields/component.json +77 -0
  125. package/dist/appmixer/clientify/crm/ListTaskStages/ListTaskStages.js +19 -0
  126. package/dist/appmixer/clientify/crm/ListTaskStages/component.json +87 -0
  127. package/dist/appmixer/clientify/crm/ListTaskTypes/ListTaskTypes.js +19 -0
  128. package/dist/appmixer/clientify/crm/ListTaskTypes/component.json +87 -0
  129. package/dist/appmixer/clientify/crm/ListTasks/ListTasks.js +25 -0
  130. package/dist/appmixer/clientify/crm/ListTasks/component.json +102 -0
  131. package/dist/appmixer/clientify/crm/ListUsers/ListUsers.js +24 -0
  132. package/dist/appmixer/clientify/crm/ListUsers/component.json +93 -0
  133. package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/RemoveCompanyEmployee.js +22 -0
  134. package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/component.json +62 -0
  135. package/dist/appmixer/clientify/crm/RemoveCompanyTag/RemoveCompanyTag.js +22 -0
  136. package/dist/appmixer/clientify/crm/RemoveCompanyTag/component.json +62 -0
  137. package/dist/appmixer/clientify/crm/RemoveContactTag/RemoveContactTag.js +22 -0
  138. package/dist/appmixer/clientify/crm/RemoveContactTag/component.json +62 -0
  139. package/dist/appmixer/clientify/crm/SearchCompanies/SearchCompanies.js +29 -0
  140. package/dist/appmixer/clientify/crm/SearchCompanies/component.json +111 -0
  141. package/dist/appmixer/clientify/crm/UpdateCompany/UpdateCompany.js +24 -0
  142. package/dist/appmixer/clientify/crm/UpdateCompany/component.json +60 -0
  143. package/dist/appmixer/clientify/crm/UpdateCompanyAddress/UpdateCompanyAddress.js +35 -0
  144. package/dist/appmixer/clientify/crm/UpdateCompanyAddress/component.json +131 -0
  145. package/dist/appmixer/clientify/crm/UpdateCompanyEmail/UpdateCompanyEmail.js +27 -0
  146. package/dist/appmixer/clientify/crm/UpdateCompanyEmail/component.json +91 -0
  147. package/dist/appmixer/clientify/crm/UpdateCompanyPhone/UpdateCompanyPhone.js +27 -0
  148. package/dist/appmixer/clientify/crm/UpdateCompanyPhone/component.json +91 -0
  149. package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/UpdateCompanyWebsite.js +25 -0
  150. package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/component.json +81 -0
  151. package/dist/appmixer/clientify/crm/UpdateContact/UpdateContact.js +24 -0
  152. package/dist/appmixer/clientify/crm/UpdateContact/component.json +81 -0
  153. package/dist/appmixer/clientify/crm/UpdateContactAddress/UpdateContactAddress.js +35 -0
  154. package/dist/appmixer/clientify/crm/UpdateContactAddress/component.json +152 -0
  155. package/dist/appmixer/clientify/crm/UpdateContactEmail/UpdateContactEmail.js +27 -0
  156. package/dist/appmixer/clientify/crm/UpdateContactEmail/component.json +112 -0
  157. package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/UpdateContactMarketingStatus.js +25 -0
  158. package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/component.json +92 -0
  159. package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/UpdateContactOtherCompany.js +25 -0
  160. package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/component.json +102 -0
  161. package/dist/appmixer/clientify/crm/UpdateContactPhone/UpdateContactPhone.js +27 -0
  162. package/dist/appmixer/clientify/crm/UpdateContactPhone/component.json +112 -0
  163. package/dist/appmixer/clientify/crm/UpdateTask/UpdateTask.js +24 -0
  164. package/dist/appmixer/clientify/crm/UpdateTask/component.json +69 -0
  165. package/dist/appmixer/clientify/crm/clientify.js +49 -0
  166. package/dist/appmixer/clientify/crm/fields.js +24 -0
  167. package/dist/appmixer/clientify/crm/module.json +7 -0
  168. package/dist/credentials/{ClientifyMcpApi.credentials.d.ts → ClientifyApi.credentials.d.ts} +1 -1
  169. package/dist/credentials/ClientifyApi.credentials.js +33 -0
  170. package/dist/nodes/{ClientifyMcp/ClientifyMcpDynamic.node.d.ts → ClientifyApi/ClientifyApi.node.d.ts} +1 -1
  171. package/dist/nodes/ClientifyApi/ClientifyApi.node.js +139 -0
  172. package/dist/nodes/ClientifyApi/ClientifyApiCatalog.d.ts +23 -0
  173. package/dist/nodes/ClientifyApi/ClientifyApiCatalog.js +217 -0
  174. package/dist/nodes/{ClientifyMcp/ClientifyMcpTrigger.node.d.ts → ClientifyTrigger/ClientifyTrigger.node.d.ts} +1 -1
  175. package/dist/nodes/{ClientifyMcp/ClientifyMcpTrigger.node.js → ClientifyTrigger/ClientifyTrigger.node.js} +6 -12
  176. package/dist/nodes/ClientifyTrigger/clientify.png +0 -0
  177. package/dist/nodes/ClientifyTrigger/clientify.svg +5 -0
  178. package/dist/package.json +13 -6
  179. package/package.json +13 -6
  180. package/dist/credentials/ClientifyMcpApi.credentials.js +0 -25
  181. package/dist/nodes/ClientifyMcp/ClientifyMcpDynamic.node.js +0 -211
  182. package/dist/nodes/ClientifyMcp/ClientifyMcpFields.d.ts +0 -15
  183. package/dist/nodes/ClientifyMcp/ClientifyMcpFields.js +0 -894
  184. /package/dist/nodes/{ClientifyMcp → ClientifyApi}/clientify.png +0 -0
  185. /package/dist/nodes/{ClientifyMcp → ClientifyApi}/clientify.svg +0 -0
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.ListCustomFieldValues",
3
+ "author": "Clientify",
4
+ "label": "List Custom Field Values",
5
+ "description": "List possible values for custom fields (use object_type to filter).",
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
+ "object_type": {
19
+ "type": "string",
20
+ "description": "Example: contacts or companies (depends on API)."
21
+ }
22
+ }
23
+ },
24
+ "inspector": {
25
+ "inputs": {
26
+ "object_type": {
27
+ "type": "text",
28
+ "label": "Object Type",
29
+ "tooltip": "Set Object Type (can be mapped from previous steps).",
30
+ "index": 1
31
+ }
32
+ }
33
+ }
34
+ }
35
+ ],
36
+ "outPorts": [
37
+ {
38
+ "name": "out",
39
+ "schema": {
40
+ "type": "object",
41
+ "additionalProperties": true,
42
+ "properties": {
43
+ "count": {
44
+ "type": "number"
45
+ },
46
+ "next": {
47
+ "type": [
48
+ "string",
49
+ "null"
50
+ ]
51
+ },
52
+ "previous": {
53
+ "type": [
54
+ "string",
55
+ "null"
56
+ ]
57
+ },
58
+ "results": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "object",
62
+ "additionalProperties": true,
63
+ "properties": {
64
+ "id": {
65
+ "type": "number"
66
+ }
67
+ },
68
+ "required": [
69
+ "id"
70
+ ]
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ ]
77
+ }
@@ -0,0 +1,19 @@
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
+
8
+ const { data } = await clientifyRequest(context, {
9
+ apiKey,
10
+ baseUrl,
11
+ method: 'GET',
12
+ path: '/custom-fields/',
13
+ query: { object_type: input.object_type },
14
+ });
15
+
16
+ return context.sendJson(data, 'out');
17
+ },
18
+ };
19
+
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.ListCustomFields",
3
+ "author": "Clientify",
4
+ "label": "List Custom Fields",
5
+ "description": "List custom fields (use object_type to filter).",
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
+ "object_type": {
19
+ "type": "string",
20
+ "description": "Example: contacts or companies (depends on API)."
21
+ }
22
+ }
23
+ },
24
+ "inspector": {
25
+ "inputs": {
26
+ "object_type": {
27
+ "type": "text",
28
+ "label": "Object Type",
29
+ "tooltip": "Set Object Type (can be mapped from previous steps).",
30
+ "index": 1
31
+ }
32
+ }
33
+ }
34
+ }
35
+ ],
36
+ "outPorts": [
37
+ {
38
+ "name": "out",
39
+ "schema": {
40
+ "type": "object",
41
+ "additionalProperties": true,
42
+ "properties": {
43
+ "count": {
44
+ "type": "number"
45
+ },
46
+ "next": {
47
+ "type": [
48
+ "string",
49
+ "null"
50
+ ]
51
+ },
52
+ "previous": {
53
+ "type": [
54
+ "string",
55
+ "null"
56
+ ]
57
+ },
58
+ "results": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "object",
62
+ "additionalProperties": true,
63
+ "properties": {
64
+ "id": {
65
+ "type": "number"
66
+ }
67
+ },
68
+ "required": [
69
+ "id"
70
+ ]
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ ]
77
+ }
@@ -0,0 +1,19 @@
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
+
8
+ const { data } = await clientifyRequest(context, {
9
+ apiKey,
10
+ baseUrl,
11
+ method: 'GET',
12
+ path: '/tasks/stages/',
13
+ query: { page: input.page, page_size: input.page_size },
14
+ });
15
+
16
+ return context.sendJson(data, 'out');
17
+ },
18
+ };
19
+
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.ListTaskStages",
3
+ "author": "Clientify",
4
+ "label": "List Task Stages",
5
+ "description": "List task stages (picklist helper).",
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
+ "page": {
18
+ "type": "number"
19
+ },
20
+ "page_size": {
21
+ "type": "number"
22
+ }
23
+ }
24
+ },
25
+ "inspector": {
26
+ "inputs": {
27
+ "page": {
28
+ "type": "number",
29
+ "label": "Page",
30
+ "tooltip": "Set Page (can be mapped from previous steps).",
31
+ "index": 1
32
+ },
33
+ "page_size": {
34
+ "type": "number",
35
+ "label": "Page Size",
36
+ "tooltip": "Set Page Size (can be mapped from previous steps).",
37
+ "index": 2
38
+ }
39
+ }
40
+ }
41
+ }
42
+ ],
43
+ "outPorts": [
44
+ {
45
+ "name": "out",
46
+ "schema": {
47
+ "type": "object",
48
+ "additionalProperties": true,
49
+ "properties": {
50
+ "count": {
51
+ "type": "number"
52
+ },
53
+ "next": {
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ]
58
+ },
59
+ "previous": {
60
+ "type": [
61
+ "string",
62
+ "null"
63
+ ]
64
+ },
65
+ "results": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "object",
69
+ "additionalProperties": true,
70
+ "properties": {
71
+ "id": {
72
+ "type": "number"
73
+ },
74
+ "name": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "required": [
79
+ "id"
80
+ ]
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ ]
87
+ }
@@ -0,0 +1,19 @@
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
+
8
+ const { data } = await clientifyRequest(context, {
9
+ apiKey,
10
+ baseUrl,
11
+ method: 'GET',
12
+ path: '/tasks/types/',
13
+ query: { page: input.page, page_size: input.page_size },
14
+ });
15
+
16
+ return context.sendJson(data, 'out');
17
+ },
18
+ };
19
+
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.ListTaskTypes",
3
+ "author": "Clientify",
4
+ "label": "List Task Types",
5
+ "description": "List task/activity types (picklist helper).",
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
+ "page": {
18
+ "type": "number"
19
+ },
20
+ "page_size": {
21
+ "type": "number"
22
+ }
23
+ }
24
+ },
25
+ "inspector": {
26
+ "inputs": {
27
+ "page": {
28
+ "type": "number",
29
+ "label": "Page",
30
+ "tooltip": "Set Page (can be mapped from previous steps).",
31
+ "index": 1
32
+ },
33
+ "page_size": {
34
+ "type": "number",
35
+ "label": "Page Size",
36
+ "tooltip": "Set Page Size (can be mapped from previous steps).",
37
+ "index": 2
38
+ }
39
+ }
40
+ }
41
+ }
42
+ ],
43
+ "outPorts": [
44
+ {
45
+ "name": "out",
46
+ "schema": {
47
+ "type": "object",
48
+ "additionalProperties": true,
49
+ "properties": {
50
+ "count": {
51
+ "type": "number"
52
+ },
53
+ "next": {
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ]
58
+ },
59
+ "previous": {
60
+ "type": [
61
+ "string",
62
+ "null"
63
+ ]
64
+ },
65
+ "results": {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "object",
69
+ "additionalProperties": true,
70
+ "properties": {
71
+ "id": {
72
+ "type": "number"
73
+ },
74
+ "name": {
75
+ "type": "string"
76
+ }
77
+ },
78
+ "required": [
79
+ "id"
80
+ ]
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ ]
87
+ }
@@ -0,0 +1,25 @@
1
+ const { clientifyRequest } = require('../clientify');
2
+ const fields = require('../fields');
3
+
4
+ module.exports = {
5
+ async receive(context) {
6
+ const { apiKey, baseUrl } = context.auth;
7
+ const input = (context.messages.in && context.messages.in.content) || {};
8
+
9
+ const { data } = await clientifyRequest(context, {
10
+ apiKey,
11
+ baseUrl,
12
+ method: 'GET',
13
+ path: '/tasks/',
14
+ query: {
15
+ page: input.page,
16
+ page_size: input.page_size,
17
+ ordering: input.ordering,
18
+ fields: input.fields || fields.tasks.list,
19
+ },
20
+ });
21
+
22
+ return context.sendJson(data, 'out');
23
+ },
24
+ };
25
+
@@ -0,0 +1,102 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.ListTasks",
3
+ "author": "Clientify",
4
+ "label": "List Tasks",
5
+ "description": "List tasks from Clientify.",
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
+ "page": {
18
+ "type": "number"
19
+ },
20
+ "page_size": {
21
+ "type": "number"
22
+ },
23
+ "ordering": {
24
+ "type": "string"
25
+ },
26
+ "fields": {
27
+ "type": "string"
28
+ }
29
+ }
30
+ },
31
+ "inspector": {
32
+ "inputs": {
33
+ "page": {
34
+ "type": "number",
35
+ "label": "Page",
36
+ "tooltip": "Set Page (can be mapped from previous steps).",
37
+ "index": 1
38
+ },
39
+ "page_size": {
40
+ "type": "number",
41
+ "label": "Page Size",
42
+ "tooltip": "Set Page Size (can be mapped from previous steps).",
43
+ "index": 2
44
+ },
45
+ "ordering": {
46
+ "type": "text",
47
+ "label": "Ordering",
48
+ "tooltip": "Set Ordering (can be mapped from previous steps).",
49
+ "index": 3
50
+ },
51
+ "fields": {
52
+ "type": "text",
53
+ "label": "Fields",
54
+ "tooltip": "Set Fields (can be mapped from previous steps).",
55
+ "index": 4
56
+ }
57
+ }
58
+ }
59
+ }
60
+ ],
61
+ "outPorts": [
62
+ {
63
+ "name": "out",
64
+ "schema": {
65
+ "type": "object",
66
+ "additionalProperties": true,
67
+ "properties": {
68
+ "count": {
69
+ "type": "number"
70
+ },
71
+ "next": {
72
+ "type": [
73
+ "string",
74
+ "null"
75
+ ]
76
+ },
77
+ "previous": {
78
+ "type": [
79
+ "string",
80
+ "null"
81
+ ]
82
+ },
83
+ "results": {
84
+ "type": "array",
85
+ "items": {
86
+ "type": "object",
87
+ "additionalProperties": true,
88
+ "properties": {
89
+ "id": {
90
+ "type": "number"
91
+ }
92
+ },
93
+ "required": [
94
+ "id"
95
+ ]
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ ]
102
+ }
@@ -0,0 +1,24 @@
1
+ const { clientifyRequest } = require('../clientify');
2
+ const fields = require('../fields');
3
+
4
+ module.exports = {
5
+ async receive(context) {
6
+ const { apiKey, baseUrl } = context.auth;
7
+ const input = (context.messages.in && context.messages.in.content) || {};
8
+
9
+ const { data } = await clientifyRequest(context, {
10
+ apiKey,
11
+ baseUrl,
12
+ method: 'GET',
13
+ path: '/users/',
14
+ query: {
15
+ page: input.page,
16
+ page_size: input.page_size,
17
+ fields: input.fields || fields.users.list,
18
+ },
19
+ });
20
+
21
+ return context.sendJson(data, 'out');
22
+ },
23
+ };
24
+
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "appmixer.clientify.crm.ListUsers",
3
+ "author": "Clientify",
4
+ "label": "List Users",
5
+ "description": "List users from Clientify (for assignment/routing).",
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
+ "page": {
18
+ "type": "number"
19
+ },
20
+ "page_size": {
21
+ "type": "number"
22
+ },
23
+ "fields": {
24
+ "type": "string"
25
+ }
26
+ }
27
+ },
28
+ "inspector": {
29
+ "inputs": {
30
+ "page": {
31
+ "type": "number",
32
+ "label": "Page",
33
+ "tooltip": "Set Page (can be mapped from previous steps).",
34
+ "index": 1
35
+ },
36
+ "page_size": {
37
+ "type": "number",
38
+ "label": "Page Size",
39
+ "tooltip": "Set Page Size (can be mapped from previous steps).",
40
+ "index": 2
41
+ },
42
+ "fields": {
43
+ "type": "text",
44
+ "label": "Fields",
45
+ "tooltip": "Set Fields (can be mapped from previous steps).",
46
+ "index": 3
47
+ }
48
+ }
49
+ }
50
+ }
51
+ ],
52
+ "outPorts": [
53
+ {
54
+ "name": "out",
55
+ "schema": {
56
+ "type": "object",
57
+ "additionalProperties": true,
58
+ "properties": {
59
+ "count": {
60
+ "type": "number"
61
+ },
62
+ "next": {
63
+ "type": [
64
+ "string",
65
+ "null"
66
+ ]
67
+ },
68
+ "previous": {
69
+ "type": [
70
+ "string",
71
+ "null"
72
+ ]
73
+ },
74
+ "results": {
75
+ "type": "array",
76
+ "items": {
77
+ "type": "object",
78
+ "additionalProperties": true,
79
+ "properties": {
80
+ "id": {
81
+ "type": "number"
82
+ }
83
+ },
84
+ "required": [
85
+ "id"
86
+ ]
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ ]
93
+ }
@@ -0,0 +1,22 @@
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 companyId = input.companyId;
8
+ const contactId = input.contactId;
9
+ if (!companyId) throw new context.CancelError('companyId is required');
10
+ if (!contactId) throw new context.CancelError('contactId is required');
11
+
12
+ const { data } = await clientifyRequest(context, {
13
+ apiKey,
14
+ baseUrl,
15
+ method: 'DELETE',
16
+ path: `/companies/${companyId}/employees/${contactId}/`,
17
+ });
18
+
19
+ return context.sendJson(data || { ok: true }, 'out');
20
+ },
21
+ };
22
+