n8n-nodes-clientify 0.2.8 → 0.2.10

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 (172) hide show
  1. package/README.md +2 -2
  2. package/dist/README.md +2 -2
  3. package/dist/credentials/ClientifyApi.credentials.d.ts +14 -0
  4. package/dist/credentials/ClientifyApi.credentials.js +14 -0
  5. package/dist/nodes/ClientifyApi/ClientifyApi.node.js +1 -1
  6. package/dist/package.json +2 -2
  7. package/package.json +2 -2
  8. package/dist/appmixer/clientify/crm/AddCompanyAddress/AddCompanyAddress.js +0 -33
  9. package/dist/appmixer/clientify/crm/AddCompanyAddress/component.json +0 -115
  10. package/dist/appmixer/clientify/crm/AddCompanyCall/AddCompanyCall.js +0 -32
  11. package/dist/appmixer/clientify/crm/AddCompanyCall/component.json +0 -109
  12. package/dist/appmixer/clientify/crm/AddCompanyCheckin/AddCompanyCheckin.js +0 -31
  13. package/dist/appmixer/clientify/crm/AddCompanyCheckin/component.json +0 -98
  14. package/dist/appmixer/clientify/crm/AddCompanyEmail/AddCompanyEmail.js +0 -25
  15. package/dist/appmixer/clientify/crm/AddCompanyEmail/component.json +0 -84
  16. package/dist/appmixer/clientify/crm/AddCompanyEmployee/AddCompanyEmployee.js +0 -22
  17. package/dist/appmixer/clientify/crm/AddCompanyEmployee/component.json +0 -65
  18. package/dist/appmixer/clientify/crm/AddCompanyNote/AddCompanyNote.js +0 -25
  19. package/dist/appmixer/clientify/crm/AddCompanyNote/component.json +0 -75
  20. package/dist/appmixer/clientify/crm/AddCompanyPhone/AddCompanyPhone.js +0 -25
  21. package/dist/appmixer/clientify/crm/AddCompanyPhone/component.json +0 -87
  22. package/dist/appmixer/clientify/crm/AddCompanyTag/AddCompanyTag.js +0 -23
  23. package/dist/appmixer/clientify/crm/AddCompanyTag/component.json +0 -71
  24. package/dist/appmixer/clientify/crm/AddCompanyWebsite/AddCompanyWebsite.js +0 -23
  25. package/dist/appmixer/clientify/crm/AddCompanyWebsite/component.json +0 -65
  26. package/dist/appmixer/clientify/crm/AddContactAddress/AddContactAddress.js +0 -33
  27. package/dist/appmixer/clientify/crm/AddContactAddress/component.json +0 -115
  28. package/dist/appmixer/clientify/crm/AddContactCall/AddContactCall.js +0 -20
  29. package/dist/appmixer/clientify/crm/AddContactCall/component.json +0 -55
  30. package/dist/appmixer/clientify/crm/AddContactCheckin/AddContactCheckin.js +0 -33
  31. package/dist/appmixer/clientify/crm/AddContactCheckin/component.json +0 -109
  32. package/dist/appmixer/clientify/crm/AddContactEmail/AddContactEmail.js +0 -25
  33. package/dist/appmixer/clientify/crm/AddContactEmail/component.json +0 -85
  34. package/dist/appmixer/clientify/crm/AddContactNote/AddContactNote.js +0 -25
  35. package/dist/appmixer/clientify/crm/AddContactNote/component.json +0 -75
  36. package/dist/appmixer/clientify/crm/AddContactOtherCompany/AddContactOtherCompany.js +0 -23
  37. package/dist/appmixer/clientify/crm/AddContactOtherCompany/component.json +0 -65
  38. package/dist/appmixer/clientify/crm/AddContactPhone/AddContactPhone.js +0 -25
  39. package/dist/appmixer/clientify/crm/AddContactPhone/component.json +0 -88
  40. package/dist/appmixer/clientify/crm/AddContactTag/AddContactTag.js +0 -23
  41. package/dist/appmixer/clientify/crm/AddContactTag/component.json +0 -71
  42. package/dist/appmixer/clientify/crm/AssignContactOwner/AssignContactOwner.js +0 -23
  43. package/dist/appmixer/clientify/crm/AssignContactOwner/component.json +0 -93
  44. package/dist/appmixer/clientify/crm/BatchCreateContacts/BatchCreateContacts.js +0 -23
  45. package/dist/appmixer/clientify/crm/BatchCreateContacts/component.json +0 -90
  46. package/dist/appmixer/clientify/crm/CompleteTask/CompleteTask.js +0 -24
  47. package/dist/appmixer/clientify/crm/CompleteTask/component.json +0 -69
  48. package/dist/appmixer/clientify/crm/CreateCompany/CreateCompany.js +0 -19
  49. package/dist/appmixer/clientify/crm/CreateCompany/component.json +0 -58
  50. package/dist/appmixer/clientify/crm/CreateContact/CreateContact.js +0 -19
  51. package/dist/appmixer/clientify/crm/CreateContact/component.json +0 -88
  52. package/dist/appmixer/clientify/crm/CreateTask/CreateTask.js +0 -19
  53. package/dist/appmixer/clientify/crm/CreateTask/component.json +0 -167
  54. package/dist/appmixer/clientify/crm/DeleteCompany/DeleteCompany.js +0 -22
  55. package/dist/appmixer/clientify/crm/DeleteCompany/component.json +0 -51
  56. package/dist/appmixer/clientify/crm/DeleteCompanyAddress/DeleteCompanyAddress.js +0 -22
  57. package/dist/appmixer/clientify/crm/DeleteCompanyAddress/component.json +0 -62
  58. package/dist/appmixer/clientify/crm/DeleteCompanyEmail/DeleteCompanyEmail.js +0 -22
  59. package/dist/appmixer/clientify/crm/DeleteCompanyEmail/component.json +0 -62
  60. package/dist/appmixer/clientify/crm/DeleteCompanyPhone/DeleteCompanyPhone.js +0 -22
  61. package/dist/appmixer/clientify/crm/DeleteCompanyPhone/component.json +0 -62
  62. package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/DeleteCompanyWebsite.js +0 -22
  63. package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/component.json +0 -62
  64. package/dist/appmixer/clientify/crm/DeleteContact/DeleteContact.js +0 -22
  65. package/dist/appmixer/clientify/crm/DeleteContact/component.json +0 -51
  66. package/dist/appmixer/clientify/crm/DeleteContactAddress/DeleteContactAddress.js +0 -22
  67. package/dist/appmixer/clientify/crm/DeleteContactAddress/component.json +0 -62
  68. package/dist/appmixer/clientify/crm/DeleteContactEmail/DeleteContactEmail.js +0 -22
  69. package/dist/appmixer/clientify/crm/DeleteContactEmail/component.json +0 -62
  70. package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/DeleteContactOtherCompany.js +0 -22
  71. package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/component.json +0 -62
  72. package/dist/appmixer/clientify/crm/DeleteContactPhone/DeleteContactPhone.js +0 -22
  73. package/dist/appmixer/clientify/crm/DeleteContactPhone/component.json +0 -62
  74. package/dist/appmixer/clientify/crm/GetCompany/GetCompany.js +0 -24
  75. package/dist/appmixer/clientify/crm/GetCompany/component.json +0 -69
  76. package/dist/appmixer/clientify/crm/GetContact/GetContact.js +0 -24
  77. package/dist/appmixer/clientify/crm/GetContact/component.json +0 -90
  78. package/dist/appmixer/clientify/crm/GetCurrentUser/GetCurrentUser.js +0 -17
  79. package/dist/appmixer/clientify/crm/GetCurrentUser/component.json +0 -49
  80. package/dist/appmixer/clientify/crm/GetTask/GetTask.js +0 -24
  81. package/dist/appmixer/clientify/crm/GetTask/component.json +0 -78
  82. package/dist/appmixer/clientify/crm/ListAllCompanyTags/ListAllCompanyTags.js +0 -16
  83. package/dist/appmixer/clientify/crm/ListAllCompanyTags/component.json +0 -67
  84. package/dist/appmixer/clientify/crm/ListAllContactTags/ListAllContactTags.js +0 -16
  85. package/dist/appmixer/clientify/crm/ListAllContactTags/component.json +0 -67
  86. package/dist/appmixer/clientify/crm/ListCompanies/ListCompanies.js +0 -26
  87. package/dist/appmixer/clientify/crm/ListCompanies/component.json +0 -117
  88. package/dist/appmixer/clientify/crm/ListCompanyAddresses/ListCompanyAddresses.js +0 -20
  89. package/dist/appmixer/clientify/crm/ListCompanyAddresses/component.json +0 -79
  90. package/dist/appmixer/clientify/crm/ListCompanyCustomfields/ListCompanyCustomfields.js +0 -20
  91. package/dist/appmixer/clientify/crm/ListCompanyCustomfields/component.json +0 -79
  92. package/dist/appmixer/clientify/crm/ListCompanyEmails/ListCompanyEmails.js +0 -20
  93. package/dist/appmixer/clientify/crm/ListCompanyEmails/component.json +0 -88
  94. package/dist/appmixer/clientify/crm/ListCompanyEmployees/ListCompanyEmployees.js +0 -20
  95. package/dist/appmixer/clientify/crm/ListCompanyEmployees/component.json +0 -79
  96. package/dist/appmixer/clientify/crm/ListCompanyPhones/ListCompanyPhones.js +0 -20
  97. package/dist/appmixer/clientify/crm/ListCompanyPhones/component.json +0 -91
  98. package/dist/appmixer/clientify/crm/ListCompanySectors/ListCompanySectors.js +0 -16
  99. package/dist/appmixer/clientify/crm/ListCompanySectors/component.json +0 -64
  100. package/dist/appmixer/clientify/crm/ListCompanyTags/ListCompanyTags.js +0 -20
  101. package/dist/appmixer/clientify/crm/ListCompanyTags/component.json +0 -85
  102. package/dist/appmixer/clientify/crm/ListCompanyTasks/ListCompanyTasks.js +0 -20
  103. package/dist/appmixer/clientify/crm/ListCompanyTasks/component.json +0 -79
  104. package/dist/appmixer/clientify/crm/ListCompanyWallentries/ListCompanyWallentries.js +0 -20
  105. package/dist/appmixer/clientify/crm/ListCompanyWallentries/component.json +0 -79
  106. package/dist/appmixer/clientify/crm/ListCompanyWebsites/ListCompanyWebsites.js +0 -20
  107. package/dist/appmixer/clientify/crm/ListCompanyWebsites/component.json +0 -79
  108. package/dist/appmixer/clientify/crm/ListContactAddresses/ListContactAddresses.js +0 -20
  109. package/dist/appmixer/clientify/crm/ListContactAddresses/component.json +0 -79
  110. package/dist/appmixer/clientify/crm/ListContactCustomfields/ListContactCustomfields.js +0 -20
  111. package/dist/appmixer/clientify/crm/ListContactCustomfields/component.json +0 -79
  112. package/dist/appmixer/clientify/crm/ListContactEmails/ListContactEmails.js +0 -20
  113. package/dist/appmixer/clientify/crm/ListContactEmails/component.json +0 -88
  114. package/dist/appmixer/clientify/crm/ListContactOtherCompanies/ListContactOtherCompanies.js +0 -20
  115. package/dist/appmixer/clientify/crm/ListContactOtherCompanies/component.json +0 -85
  116. package/dist/appmixer/clientify/crm/ListContactPhones/ListContactPhones.js +0 -20
  117. package/dist/appmixer/clientify/crm/ListContactPhones/component.json +0 -91
  118. package/dist/appmixer/clientify/crm/ListContactTags/ListContactTags.js +0 -20
  119. package/dist/appmixer/clientify/crm/ListContactTags/component.json +0 -85
  120. package/dist/appmixer/clientify/crm/ListContactTasks/ListContactTasks.js +0 -20
  121. package/dist/appmixer/clientify/crm/ListContactTasks/component.json +0 -79
  122. package/dist/appmixer/clientify/crm/ListContactWallentries/ListContactWallentries.js +0 -20
  123. package/dist/appmixer/clientify/crm/ListContactWallentries/component.json +0 -79
  124. package/dist/appmixer/clientify/crm/ListContacts/ListContacts.js +0 -26
  125. package/dist/appmixer/clientify/crm/ListContacts/component.json +0 -138
  126. package/dist/appmixer/clientify/crm/ListCustomFieldValues/ListCustomFieldValues.js +0 -19
  127. package/dist/appmixer/clientify/crm/ListCustomFieldValues/component.json +0 -77
  128. package/dist/appmixer/clientify/crm/ListCustomFields/ListCustomFields.js +0 -19
  129. package/dist/appmixer/clientify/crm/ListCustomFields/component.json +0 -77
  130. package/dist/appmixer/clientify/crm/ListTaskStages/ListTaskStages.js +0 -19
  131. package/dist/appmixer/clientify/crm/ListTaskStages/component.json +0 -87
  132. package/dist/appmixer/clientify/crm/ListTaskTypes/ListTaskTypes.js +0 -19
  133. package/dist/appmixer/clientify/crm/ListTaskTypes/component.json +0 -87
  134. package/dist/appmixer/clientify/crm/ListTasks/ListTasks.js +0 -25
  135. package/dist/appmixer/clientify/crm/ListTasks/component.json +0 -102
  136. package/dist/appmixer/clientify/crm/ListUsers/ListUsers.js +0 -24
  137. package/dist/appmixer/clientify/crm/ListUsers/component.json +0 -93
  138. package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/RemoveCompanyEmployee.js +0 -22
  139. package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/component.json +0 -62
  140. package/dist/appmixer/clientify/crm/RemoveCompanyTag/RemoveCompanyTag.js +0 -22
  141. package/dist/appmixer/clientify/crm/RemoveCompanyTag/component.json +0 -62
  142. package/dist/appmixer/clientify/crm/RemoveContactTag/RemoveContactTag.js +0 -22
  143. package/dist/appmixer/clientify/crm/RemoveContactTag/component.json +0 -62
  144. package/dist/appmixer/clientify/crm/SearchCompanies/SearchCompanies.js +0 -29
  145. package/dist/appmixer/clientify/crm/SearchCompanies/component.json +0 -111
  146. package/dist/appmixer/clientify/crm/UpdateCompany/UpdateCompany.js +0 -24
  147. package/dist/appmixer/clientify/crm/UpdateCompany/component.json +0 -60
  148. package/dist/appmixer/clientify/crm/UpdateCompanyAddress/UpdateCompanyAddress.js +0 -35
  149. package/dist/appmixer/clientify/crm/UpdateCompanyAddress/component.json +0 -131
  150. package/dist/appmixer/clientify/crm/UpdateCompanyEmail/UpdateCompanyEmail.js +0 -27
  151. package/dist/appmixer/clientify/crm/UpdateCompanyEmail/component.json +0 -91
  152. package/dist/appmixer/clientify/crm/UpdateCompanyPhone/UpdateCompanyPhone.js +0 -27
  153. package/dist/appmixer/clientify/crm/UpdateCompanyPhone/component.json +0 -91
  154. package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/UpdateCompanyWebsite.js +0 -25
  155. package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/component.json +0 -81
  156. package/dist/appmixer/clientify/crm/UpdateContact/UpdateContact.js +0 -24
  157. package/dist/appmixer/clientify/crm/UpdateContact/component.json +0 -81
  158. package/dist/appmixer/clientify/crm/UpdateContactAddress/UpdateContactAddress.js +0 -35
  159. package/dist/appmixer/clientify/crm/UpdateContactAddress/component.json +0 -152
  160. package/dist/appmixer/clientify/crm/UpdateContactEmail/UpdateContactEmail.js +0 -27
  161. package/dist/appmixer/clientify/crm/UpdateContactEmail/component.json +0 -112
  162. package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/UpdateContactMarketingStatus.js +0 -25
  163. package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/component.json +0 -92
  164. package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/UpdateContactOtherCompany.js +0 -25
  165. package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/component.json +0 -102
  166. package/dist/appmixer/clientify/crm/UpdateContactPhone/UpdateContactPhone.js +0 -27
  167. package/dist/appmixer/clientify/crm/UpdateContactPhone/component.json +0 -112
  168. package/dist/appmixer/clientify/crm/UpdateTask/UpdateTask.js +0 -24
  169. package/dist/appmixer/clientify/crm/UpdateTask/component.json +0 -69
  170. package/dist/appmixer/clientify/crm/clientify.js +0 -49
  171. package/dist/appmixer/clientify/crm/fields.js +0 -24
  172. package/dist/appmixer/clientify/crm/module.json +0 -7
@@ -1,102 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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
-
@@ -1,93 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
-
@@ -1,62 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.RemoveCompanyEmployee",
3
- "author": "Clientify",
4
- "label": "Remove Company Employee",
5
- "description": "Unlink a contact from a company employees list.",
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
- "companyId": {
19
- "type": "number"
20
- },
21
- "contactId": {
22
- "type": "number"
23
- }
24
- },
25
- "required": [
26
- "companyId",
27
- "contactId"
28
- ]
29
- },
30
- "inspector": {
31
- "inputs": {
32
- "companyId": {
33
- "type": "number",
34
- "label": "Company ID",
35
- "tooltip": "Set Company ID (can be mapped from previous steps).",
36
- "index": 1
37
- },
38
- "contactId": {
39
- "type": "number",
40
- "label": "Contact ID",
41
- "tooltip": "Set Contact ID (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
- "ok": {
56
- "type": "boolean"
57
- }
58
- }
59
- }
60
- }
61
- ]
62
- }
@@ -1,22 +0,0 @@
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 tagId = input.tagId;
9
- if (!companyId) throw new context.CancelError('companyId is required');
10
- if (!tagId) throw new context.CancelError('tagId is required');
11
-
12
- const { data } = await clientifyRequest(context, {
13
- apiKey,
14
- baseUrl,
15
- method: 'DELETE',
16
- path: `/companies/${companyId}/tags/${tagId}/`,
17
- });
18
-
19
- return context.sendJson(data || { ok: true }, 'out');
20
- },
21
- };
22
-
@@ -1,62 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.RemoveCompanyTag",
3
- "author": "Clientify",
4
- "label": "Remove Company Tag",
5
- "description": "Remove a tag from a company.",
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
- "companyId": {
19
- "type": "number"
20
- },
21
- "tagId": {
22
- "type": "number"
23
- }
24
- },
25
- "required": [
26
- "companyId",
27
- "tagId"
28
- ]
29
- },
30
- "inspector": {
31
- "inputs": {
32
- "companyId": {
33
- "type": "number",
34
- "label": "Company ID",
35
- "tooltip": "Set Company ID (can be mapped from previous steps).",
36
- "index": 1
37
- },
38
- "tagId": {
39
- "type": "number",
40
- "label": "Tag ID",
41
- "tooltip": "Set Tag ID (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
- "ok": {
56
- "type": "boolean"
57
- }
58
- }
59
- }
60
- }
61
- ]
62
- }
@@ -1,22 +0,0 @@
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 tagId = input.tagId;
9
- if (!contactId) throw new context.CancelError('contactId is required');
10
- if (!tagId) throw new context.CancelError('tagId is required');
11
-
12
- const { data } = await clientifyRequest(context, {
13
- apiKey,
14
- baseUrl,
15
- method: 'DELETE',
16
- path: `/contacts/${contactId}/tags/${tagId}/`,
17
- });
18
-
19
- return context.sendJson(data || { ok: true }, 'out');
20
- },
21
- };
22
-
@@ -1,62 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.RemoveContactTag",
3
- "author": "Clientify",
4
- "label": "Remove Contact Tag",
5
- "description": "Remove a tag from a contact.",
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
- "tagId": {
22
- "type": "number"
23
- }
24
- },
25
- "required": [
26
- "contactId",
27
- "tagId"
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
- "tagId": {
39
- "type": "number",
40
- "label": "Tag ID",
41
- "tooltip": "Set Tag ID (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
- "ok": {
56
- "type": "boolean"
57
- }
58
- }
59
- }
60
- }
61
- ]
62
- }
@@ -1,29 +0,0 @@
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
- const query = input.query;
9
- if (!query) {
10
- throw new context.CancelError('query is required');
11
- }
12
-
13
- const { data } = await clientifyRequest(context, {
14
- apiKey,
15
- baseUrl,
16
- method: 'GET',
17
- path: '/companies/',
18
- query: {
19
- search: query,
20
- page: input.page,
21
- page_size: input.page_size,
22
- fields: input.fields || fields.companies.list,
23
- },
24
- });
25
-
26
- return context.sendJson(data, 'out');
27
- },
28
- };
29
-
@@ -1,111 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.SearchCompanies",
3
- "author": "Clientify",
4
- "label": "Search Companies",
5
- "description": "Search companies (wrapper over list with query params).",
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
- "query": {
18
- "type": "string"
19
- },
20
- "page": {
21
- "type": "number"
22
- },
23
- "page_size": {
24
- "type": "number"
25
- },
26
- "fields": {
27
- "type": "string"
28
- }
29
- },
30
- "required": [
31
- "query"
32
- ]
33
- },
34
- "inspector": {
35
- "inputs": {
36
- "query": {
37
- "type": "text",
38
- "label": "Query",
39
- "tooltip": "Set Query (can be mapped from previous steps).",
40
- "index": 1
41
- },
42
- "page": {
43
- "type": "number",
44
- "label": "Page",
45
- "tooltip": "Set Page (can be mapped from previous steps).",
46
- "index": 2
47
- },
48
- "page_size": {
49
- "type": "number",
50
- "label": "Page Size",
51
- "tooltip": "Set Page Size (can be mapped from previous steps).",
52
- "index": 3
53
- },
54
- "fields": {
55
- "type": "text",
56
- "label": "Fields",
57
- "tooltip": "Set Fields (can be mapped from previous steps).",
58
- "index": 4
59
- }
60
- }
61
- }
62
- }
63
- ],
64
- "outPorts": [
65
- {
66
- "name": "out",
67
- "schema": {
68
- "type": "object",
69
- "additionalProperties": true,
70
- "properties": {
71
- "count": {
72
- "type": "number"
73
- },
74
- "next": {
75
- "type": [
76
- "string",
77
- "null"
78
- ]
79
- },
80
- "previous": {
81
- "type": [
82
- "string",
83
- "null"
84
- ]
85
- },
86
- "results": {
87
- "type": "array",
88
- "items": {
89
- "type": "object",
90
- "additionalProperties": true,
91
- "properties": {
92
- "id": {
93
- "type": "number"
94
- },
95
- "name": {
96
- "type": "string"
97
- },
98
- "url": {
99
- "type": "string"
100
- }
101
- },
102
- "required": [
103
- "id"
104
- ]
105
- }
106
- }
107
- }
108
- }
109
- }
110
- ]
111
- }
@@ -1,24 +0,0 @@
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
- if (!companyId) {
9
- throw new context.CancelError('companyId is required');
10
- }
11
-
12
- const { companyId: _ignored, ...body } = input;
13
- const { data } = await clientifyRequest(context, {
14
- apiKey,
15
- baseUrl,
16
- method: 'PUT',
17
- path: `/companies/${companyId}/`,
18
- data: body,
19
- });
20
-
21
- return context.sendJson(data, 'out');
22
- },
23
- };
24
-