n8n-nodes-clientify 0.2.8 → 0.2.9

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