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
@@ -1,894 +0,0 @@
1
- "use strict";
2
- // This file is auto-generated. Do not edit manually.
3
- // Generated on 2025-09-28T22:48:12.168Z
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.getAdditionalFieldsForTool = exports.additionalFieldsDefinitions = exports.toolFields = exports.toolOptions = void 0;
6
- exports.toolOptions = [
7
- {
8
- name: 'Create Company',
9
- value: 'createCompany',
10
- description: 'Create a new company in the CRM'
11
- },
12
- {
13
- name: 'Create Contact',
14
- value: 'createContact',
15
- description: 'Create a new contact in the CRM'
16
- },
17
- {
18
- name: 'Create Deal',
19
- value: 'createDeal',
20
- description: 'Create a new deal/opportunity in the CRM'
21
- },
22
- {
23
- name: 'Create Task',
24
- value: 'createTask',
25
- description: 'Create a new task/activity in the CRM'
26
- },
27
- {
28
- name: 'Delete Company',
29
- value: 'deleteCompany',
30
- },
31
- {
32
- name: 'Delete Contact',
33
- value: 'deleteContact',
34
- },
35
- {
36
- name: 'Delete Deal',
37
- value: 'deleteDeal',
38
- },
39
- {
40
- name: 'Get Company',
41
- value: 'getCompany',
42
- description: 'Retrieve detailed information about a specific company by ID'
43
- },
44
- {
45
- name: 'Get Contact',
46
- value: 'getContact',
47
- description: 'Retrieve detailed information about a specific contact by ID'
48
- },
49
- {
50
- name: 'Get Current Time',
51
- value: 'getCurrentTime',
52
- description: 'Returns the current date and time with user timezone awareness and relative dates'
53
- },
54
- {
55
- name: 'Get Current User',
56
- value: 'getCurrentUser',
57
- },
58
- {
59
- name: 'Get Deal',
60
- value: 'getDeal',
61
- description: 'Retrieve detailed information about a specific deal by ID'
62
- },
63
- {
64
- name: 'Get Task',
65
- value: 'getTask',
66
- description: 'Retrieve detailed information about a specific task by ID'
67
- },
68
- {
69
- name: 'List Activity Types',
70
- value: 'listActivityTypes',
71
- },
72
- {
73
- name: 'List Companies',
74
- value: 'listCompanies',
75
- description: 'List all companies with pagination. Use this when you want to see all companies.'
76
- },
77
- {
78
- name: 'List Contacts',
79
- value: 'listContacts',
80
- description: 'List all contacts or search for specific contacts'
81
- },
82
- {
83
- name: 'List Deals',
84
- value: 'listDeals',
85
- description: 'List all deals with filtering and pagination support'
86
- },
87
- {
88
- name: 'List Deals By Stage',
89
- value: 'listDealsByStage',
90
- },
91
- {
92
- name: 'List Pipelines',
93
- value: 'listPipelines',
94
- },
95
- {
96
- name: 'List Tasks',
97
- value: 'listTasks',
98
- description: 'List tasks with automatic optimization to prevent timeouts'
99
- },
100
- {
101
- name: 'Mark Deal Lost',
102
- value: 'markDealLost',
103
- description: 'Mark deal as lost'
104
- },
105
- {
106
- name: 'Mark Deal Won',
107
- value: 'markDealWon',
108
- description: 'Mark deal as won'
109
- },
110
- {
111
- name: 'Search Companies',
112
- value: 'searchCompanies',
113
- description: 'Search for specific companies by name. Returns companies matching the search query.'
114
- },
115
- {
116
- name: 'Update Company',
117
- value: 'updateCompany',
118
- },
119
- {
120
- name: 'Update Contact',
121
- value: 'updateContact',
122
- },
123
- {
124
- name: 'Update Deal',
125
- value: 'updateDeal',
126
- }
127
- ];
128
- exports.toolFields = [
129
- {
130
- "displayName": "Name",
131
- "name": "name",
132
- "type": "string",
133
- "default": "",
134
- "required": true,
135
- "description": "",
136
- "displayOptions": {
137
- "show": {
138
- "tool": [
139
- "createCompany"
140
- ]
141
- }
142
- }
143
- },
144
- {
145
- "displayName": "Last name",
146
- "name": "last_name",
147
- "type": "string",
148
- "default": "",
149
- "required": true,
150
- "description": "",
151
- "displayOptions": {
152
- "show": {
153
- "tool": [
154
- "createContact"
155
- ]
156
- }
157
- }
158
- },
159
- {
160
- "displayName": "First name",
161
- "name": "first_name",
162
- "type": "string",
163
- "default": "",
164
- "required": true,
165
- "description": "",
166
- "displayOptions": {
167
- "show": {
168
- "tool": [
169
- "createContact"
170
- ]
171
- }
172
- }
173
- },
174
- {
175
- "displayName": "Name",
176
- "name": "name",
177
- "type": "string",
178
- "default": "",
179
- "required": true,
180
- "description": "",
181
- "displayOptions": {
182
- "show": {
183
- "tool": [
184
- "createDeal"
185
- ]
186
- }
187
- }
188
- },
189
- {
190
- "displayName": "Company",
191
- "name": "company",
192
- "type": "string",
193
- "default": "",
194
- "required": true,
195
- "description": "",
196
- "displayOptions": {
197
- "show": {
198
- "tool": [
199
- "createDeal"
200
- ]
201
- }
202
- }
203
- },
204
- {
205
- "displayName": "Priority",
206
- "name": "priority",
207
- "type": "number",
208
- "default": 0,
209
- "required": true,
210
- "description": "",
211
- "displayOptions": {
212
- "show": {
213
- "tool": [
214
- "createTask"
215
- ]
216
- }
217
- }
218
- },
219
- {
220
- "displayName": "Name",
221
- "name": "name",
222
- "type": "string",
223
- "default": "",
224
- "required": true,
225
- "description": "",
226
- "displayOptions": {
227
- "show": {
228
- "tool": [
229
- "createTask"
230
- ]
231
- }
232
- }
233
- },
234
- {
235
- "displayName": "Company Id",
236
- "name": "companyId",
237
- "type": "number",
238
- "default": 0,
239
- "required": true,
240
- "description": "",
241
- "displayOptions": {
242
- "show": {
243
- "tool": [
244
- "deleteCompany"
245
- ]
246
- }
247
- }
248
- },
249
- {
250
- "displayName": "Contact Id",
251
- "name": "contactId",
252
- "type": "number",
253
- "default": 0,
254
- "required": true,
255
- "description": "",
256
- "displayOptions": {
257
- "show": {
258
- "tool": [
259
- "deleteContact"
260
- ]
261
- }
262
- }
263
- },
264
- {
265
- "displayName": "Deal Id",
266
- "name": "dealId",
267
- "type": "number",
268
- "default": 0,
269
- "required": true,
270
- "description": "",
271
- "displayOptions": {
272
- "show": {
273
- "tool": [
274
- "deleteDeal"
275
- ]
276
- }
277
- }
278
- },
279
- {
280
- "displayName": "Company Id",
281
- "name": "companyId",
282
- "type": "number",
283
- "default": 0,
284
- "required": true,
285
- "description": "",
286
- "displayOptions": {
287
- "show": {
288
- "tool": [
289
- "getCompany"
290
- ]
291
- }
292
- }
293
- },
294
- {
295
- "displayName": "Contact Id",
296
- "name": "contactId",
297
- "type": "number",
298
- "default": 0,
299
- "required": true,
300
- "description": "",
301
- "displayOptions": {
302
- "show": {
303
- "tool": [
304
- "getContact"
305
- ]
306
- }
307
- }
308
- },
309
- {
310
- "displayName": "Deal Id",
311
- "name": "dealId",
312
- "type": "number",
313
- "default": 0,
314
- "required": true,
315
- "description": "",
316
- "displayOptions": {
317
- "show": {
318
- "tool": [
319
- "getDeal"
320
- ]
321
- }
322
- }
323
- },
324
- {
325
- "displayName": "Task Id",
326
- "name": "taskId",
327
- "type": "number",
328
- "default": 0,
329
- "required": true,
330
- "description": "",
331
- "displayOptions": {
332
- "show": {
333
- "tool": [
334
- "getTask"
335
- ]
336
- }
337
- }
338
- },
339
- {
340
- "displayName": "Deal Id",
341
- "name": "dealId",
342
- "type": "number",
343
- "default": 0,
344
- "required": true,
345
- "description": "",
346
- "displayOptions": {
347
- "show": {
348
- "tool": [
349
- "markDealLost"
350
- ]
351
- }
352
- }
353
- },
354
- {
355
- "displayName": "Deal Id",
356
- "name": "dealId",
357
- "type": "number",
358
- "default": 0,
359
- "required": true,
360
- "description": "",
361
- "displayOptions": {
362
- "show": {
363
- "tool": [
364
- "markDealWon"
365
- ]
366
- }
367
- }
368
- },
369
- {
370
- "displayName": "Query",
371
- "name": "query",
372
- "type": "string",
373
- "default": "",
374
- "required": true,
375
- "description": "",
376
- "displayOptions": {
377
- "show": {
378
- "tool": [
379
- "searchCompanies"
380
- ]
381
- }
382
- }
383
- },
384
- {
385
- "displayName": "Company Id",
386
- "name": "companyId",
387
- "type": "number",
388
- "default": 0,
389
- "required": true,
390
- "description": "",
391
- "displayOptions": {
392
- "show": {
393
- "tool": [
394
- "updateCompany"
395
- ]
396
- }
397
- }
398
- },
399
- {
400
- "displayName": "Contact Id",
401
- "name": "contactId",
402
- "type": "number",
403
- "default": 0,
404
- "required": true,
405
- "description": "",
406
- "displayOptions": {
407
- "show": {
408
- "tool": [
409
- "updateContact"
410
- ]
411
- }
412
- }
413
- },
414
- {
415
- "displayName": "Deal Id",
416
- "name": "dealId",
417
- "type": "number",
418
- "default": 0,
419
- "required": true,
420
- "description": "",
421
- "displayOptions": {
422
- "show": {
423
- "tool": [
424
- "updateDeal"
425
- ]
426
- }
427
- }
428
- }
429
- ];
430
- exports.additionalFieldsDefinitions = {
431
- 'createContact': [
432
- {
433
- "displayName": "Company id",
434
- "name": "company_id",
435
- "type": "number",
436
- "default": 0,
437
- "required": false,
438
- "description": ""
439
- },
440
- {
441
- "displayName": "Email",
442
- "name": "email",
443
- "type": "string",
444
- "default": "",
445
- "required": false,
446
- "description": ""
447
- },
448
- {
449
- "displayName": "Phone",
450
- "name": "phone",
451
- "type": "string",
452
- "default": "",
453
- "required": false,
454
- "description": ""
455
- }
456
- ],
457
- 'createDeal': [
458
- {
459
- "displayName": "Contact",
460
- "name": "contact",
461
- "type": "string",
462
- "default": "",
463
- "required": false,
464
- "description": ""
465
- },
466
- {
467
- "displayName": "Stage id",
468
- "name": "stage_id",
469
- "type": "number",
470
- "default": 0,
471
- "required": false,
472
- "description": ""
473
- },
474
- {
475
- "displayName": "Amount",
476
- "name": "amount",
477
- "type": "number",
478
- "default": 0,
479
- "required": false,
480
- "description": ""
481
- }
482
- ],
483
- 'createTask': [
484
- {
485
- "displayName": "Related companies",
486
- "name": "related_companies",
487
- "type": "string",
488
- "default": "",
489
- "required": false,
490
- "description": ""
491
- },
492
- {
493
- "displayName": "Activity type",
494
- "name": "activity_type",
495
- "type": "number",
496
- "default": 0,
497
- "required": false,
498
- "description": ""
499
- },
500
- {
501
- "displayName": "Description",
502
- "name": "description",
503
- "type": "string",
504
- "default": "",
505
- "required": false,
506
- "description": ""
507
- },
508
- {
509
- "displayName": "Due date",
510
- "name": "due_date",
511
- "type": "string",
512
- "default": "",
513
- "required": false,
514
- "description": ""
515
- }
516
- ],
517
- 'getCurrentTime': [
518
- {
519
- "displayName": "Timezone",
520
- "name": "timezone",
521
- "type": "string",
522
- "default": "",
523
- "required": false,
524
- "description": ""
525
- }
526
- ],
527
- 'listCompanies': [
528
- {
529
- "displayName": "Page",
530
- "name": "page",
531
- "type": "number",
532
- "default": 0,
533
- "required": false,
534
- "description": ""
535
- },
536
- {
537
- "displayName": "Page size",
538
- "name": "page_size",
539
- "type": "number",
540
- "default": 0,
541
- "required": false,
542
- "description": ""
543
- }
544
- ],
545
- 'listContacts': [
546
- {
547
- "displayName": "Page size",
548
- "name": "page_size",
549
- "type": "number",
550
- "default": 0,
551
- "required": false,
552
- "description": ""
553
- },
554
- {
555
- "displayName": "Search",
556
- "name": "search",
557
- "type": "string",
558
- "default": "",
559
- "required": false,
560
- "description": ""
561
- },
562
- {
563
- "displayName": "Modified after",
564
- "name": "modified_after",
565
- "type": "string",
566
- "default": "",
567
- "required": false,
568
- "description": ""
569
- },
570
- {
571
- "displayName": "Owner id",
572
- "name": "owner_id",
573
- "type": "number",
574
- "default": 0,
575
- "required": false,
576
- "description": ""
577
- },
578
- {
579
- "displayName": "Company id",
580
- "name": "company_id",
581
- "type": "number",
582
- "default": 0,
583
- "required": false,
584
- "description": ""
585
- },
586
- {
587
- "displayName": "Page",
588
- "name": "page",
589
- "type": "number",
590
- "default": 0,
591
- "required": false,
592
- "description": ""
593
- },
594
- {
595
- "displayName": "Created after",
596
- "name": "created_after",
597
- "type": "string",
598
- "default": "",
599
- "required": false,
600
- "description": ""
601
- },
602
- {
603
- "displayName": "Created before",
604
- "name": "created_before",
605
- "type": "string",
606
- "default": "",
607
- "required": false,
608
- "description": ""
609
- },
610
- {
611
- "displayName": "Status id",
612
- "name": "status_id",
613
- "type": "number",
614
- "default": 0,
615
- "required": false,
616
- "description": ""
617
- },
618
- {
619
- "displayName": "Order by",
620
- "name": "order_by",
621
- "type": "string",
622
- "default": "",
623
- "required": false,
624
- "description": ""
625
- }
626
- ],
627
- 'listDeals': [
628
- {
629
- "displayName": "Expected close before",
630
- "name": "expected_close_before",
631
- "type": "string",
632
- "default": "",
633
- "required": false,
634
- "description": ""
635
- },
636
- {
637
- "displayName": "Created after",
638
- "name": "created_after",
639
- "type": "string",
640
- "default": "",
641
- "required": false,
642
- "description": ""
643
- },
644
- {
645
- "displayName": "Page",
646
- "name": "page",
647
- "type": "number",
648
- "default": 0,
649
- "required": false,
650
- "description": ""
651
- },
652
- {
653
- "displayName": "Page size",
654
- "name": "page_size",
655
- "type": "number",
656
- "default": 0,
657
- "required": false,
658
- "description": ""
659
- },
660
- {
661
- "displayName": "Search",
662
- "name": "search",
663
- "type": "string",
664
- "default": "",
665
- "required": false,
666
- "description": ""
667
- },
668
- {
669
- "displayName": "Pipeline id",
670
- "name": "pipeline_id",
671
- "type": "number",
672
- "default": 0,
673
- "required": false,
674
- "description": ""
675
- },
676
- {
677
- "displayName": "Stage id",
678
- "name": "stage_id",
679
- "type": "number",
680
- "default": 0,
681
- "required": false,
682
- "description": ""
683
- },
684
- {
685
- "displayName": "Owner id",
686
- "name": "owner_id",
687
- "type": "number",
688
- "default": 0,
689
- "required": false,
690
- "description": ""
691
- },
692
- {
693
- "displayName": "Expected close after",
694
- "name": "expected_close_after",
695
- "type": "string",
696
- "default": "",
697
- "required": false,
698
- "description": ""
699
- },
700
- {
701
- "displayName": "Order by",
702
- "name": "order_by",
703
- "type": "string",
704
- "default": "",
705
- "required": false,
706
- "description": ""
707
- },
708
- {
709
- "displayName": "Status",
710
- "name": "status",
711
- "type": "string",
712
- "default": "",
713
- "required": false,
714
- "description": ""
715
- },
716
- {
717
- "displayName": "Company id",
718
- "name": "company_id",
719
- "type": "number",
720
- "default": 0,
721
- "required": false,
722
- "description": ""
723
- },
724
- {
725
- "displayName": "Min amount",
726
- "name": "min_amount",
727
- "type": "number",
728
- "default": 0,
729
- "required": false,
730
- "description": ""
731
- },
732
- {
733
- "displayName": "Max amount",
734
- "name": "max_amount",
735
- "type": "number",
736
- "default": 0,
737
- "required": false,
738
- "description": ""
739
- }
740
- ],
741
- 'listDealsByStage': [
742
- {
743
- "displayName": "Pipeline id",
744
- "name": "pipeline_id",
745
- "type": "number",
746
- "default": 0,
747
- "required": false,
748
- "description": ""
749
- }
750
- ],
751
- 'listTasks': [
752
- {
753
- "displayName": "Company",
754
- "name": "company",
755
- "type": "number",
756
- "default": 0,
757
- "required": false,
758
- "description": ""
759
- }
760
- ],
761
- 'searchCompanies': [
762
- {
763
- "displayName": "Broad search",
764
- "name": "broad_search",
765
- "type": "boolean",
766
- "default": false,
767
- "required": false,
768
- "description": ""
769
- },
770
- {
771
- "displayName": "Page",
772
- "name": "page",
773
- "type": "number",
774
- "default": 0,
775
- "required": false,
776
- "description": ""
777
- },
778
- {
779
- "displayName": "Page size",
780
- "name": "page_size",
781
- "type": "number",
782
- "default": 0,
783
- "required": false,
784
- "description": ""
785
- }
786
- ],
787
- 'updateCompany': [
788
- {
789
- "displayName": "Name",
790
- "name": "name",
791
- "type": "string",
792
- "default": "",
793
- "required": false,
794
- "description": ""
795
- },
796
- {
797
- "displayName": "Description",
798
- "name": "description",
799
- "type": "string",
800
- "default": "",
801
- "required": false,
802
- "description": ""
803
- }
804
- ],
805
- 'updateContact': [
806
- {
807
- "displayName": "Phone",
808
- "name": "phone",
809
- "type": "string",
810
- "default": "",
811
- "required": false,
812
- "description": ""
813
- },
814
- {
815
- "displayName": "Company id",
816
- "name": "company_id",
817
- "type": "number",
818
- "default": 0,
819
- "required": false,
820
- "description": ""
821
- },
822
- {
823
- "displayName": "Email",
824
- "name": "email",
825
- "type": "string",
826
- "default": "",
827
- "required": false,
828
- "description": ""
829
- },
830
- {
831
- "displayName": "First name",
832
- "name": "first_name",
833
- "type": "string",
834
- "default": "",
835
- "required": false,
836
- "description": ""
837
- },
838
- {
839
- "displayName": "Last name",
840
- "name": "last_name",
841
- "type": "string",
842
- "default": "",
843
- "required": false,
844
- "description": ""
845
- }
846
- ],
847
- 'updateDeal': [
848
- {
849
- "displayName": "Amount",
850
- "name": "amount",
851
- "type": "number",
852
- "default": 0,
853
- "required": false,
854
- "description": ""
855
- },
856
- {
857
- "displayName": "Name",
858
- "name": "name",
859
- "type": "string",
860
- "default": "",
861
- "required": false,
862
- "description": ""
863
- },
864
- {
865
- "displayName": "Stage id",
866
- "name": "stage_id",
867
- "type": "number",
868
- "default": 0,
869
- "required": false,
870
- "description": ""
871
- }
872
- ]
873
- };
874
- // Helper function to get additional fields for a tool
875
- function getAdditionalFieldsForTool(toolName) {
876
- const fields = exports.additionalFieldsDefinitions[toolName] || [];
877
- if (fields.length === 0) {
878
- return null;
879
- }
880
- return {
881
- displayName: 'Additional Fields',
882
- name: 'additionalFields',
883
- type: 'collection',
884
- placeholder: 'Add Field',
885
- default: {},
886
- displayOptions: {
887
- show: {
888
- tool: [toolName]
889
- }
890
- },
891
- options: fields
892
- };
893
- }
894
- exports.getAdditionalFieldsForTool = getAdditionalFieldsForTool;