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,79 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.ListContactWallentries",
3
- "author": "Clientify",
4
- "label": "List Contact Wall Entries",
5
- "description": "Get the contact wall entries (timeline context).",
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
- },
22
- "required": [
23
- "contactId"
24
- ]
25
- },
26
- "inspector": {
27
- "inputs": {
28
- "contactId": {
29
- "type": "number",
30
- "label": "Contact ID",
31
- "tooltip": "Set Contact 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,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: '/contacts/',
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.contacts.list,
20
- },
21
- });
22
-
23
- return context.sendJson(data, 'out');
24
- },
25
- };
26
-
@@ -1,138 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.ListContacts",
3
- "author": "Clientify",
4
- "label": "List Contacts",
5
- "description": "List contacts 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
- "url": {
102
- "type": "string"
103
- },
104
- "first_name": {
105
- "type": "string"
106
- },
107
- "last_name": {
108
- "type": "string"
109
- },
110
- "email": {
111
- "type": [
112
- "string",
113
- "null"
114
- ]
115
- },
116
- "company_id": {
117
- "type": [
118
- "number",
119
- "null"
120
- ]
121
- },
122
- "company_name": {
123
- "type": [
124
- "string",
125
- "null"
126
- ]
127
- }
128
- },
129
- "required": [
130
- "id"
131
- ]
132
- }
133
- }
134
- }
135
- }
136
- }
137
- ]
138
- }
@@ -1,19 +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
-
8
- const { data } = await clientifyRequest(context, {
9
- apiKey,
10
- baseUrl,
11
- method: 'GET',
12
- path: '/custom-fields-values/',
13
- query: { object_type: input.object_type },
14
- });
15
-
16
- return context.sendJson(data, 'out');
17
- },
18
- };
19
-
@@ -1,77 +0,0 @@
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
- }
@@ -1,19 +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
-
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
-
@@ -1,77 +0,0 @@
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
- }
@@ -1,19 +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
-
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
-
@@ -1,87 +0,0 @@
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
- }
@@ -1,19 +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
-
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
-
@@ -1,87 +0,0 @@
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
- }
@@ -1,25 +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: '/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
-