n8n-nodes-clientify 0.2.7 → 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 -3
  2. package/dist/README.md +2 -3
  3. package/dist/nodes/ClientifyApi/ClientifyApi.node.js +2 -2
  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,60 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.UpdateCompany",
3
- "author": "Clientify",
4
- "label": "Update Company",
5
- "description": "Update an existing 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
- "properties": {
17
- "companyId": {
18
- "type": "number"
19
- }
20
- },
21
- "required": [
22
- "companyId"
23
- ]
24
- },
25
- "inspector": {
26
- "inputs": {
27
- "companyId": {
28
- "type": "number",
29
- "label": "Company ID",
30
- "tooltip": "Set Company ID (can be mapped from previous steps).",
31
- "index": 1
32
- }
33
- }
34
- }
35
- }
36
- ],
37
- "outPorts": [
38
- {
39
- "name": "out",
40
- "schema": {
41
- "type": "object",
42
- "additionalProperties": true,
43
- "properties": {
44
- "id": {
45
- "type": "number"
46
- },
47
- "name": {
48
- "type": "string"
49
- },
50
- "url": {
51
- "type": "string"
52
- }
53
- },
54
- "required": [
55
- "id"
56
- ]
57
- }
58
- }
59
- ]
60
- }
@@ -1,35 +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 addressId = input.addressId;
9
- if (!companyId) throw new context.CancelError('companyId is required');
10
- if (!addressId) throw new context.CancelError('addressId is required');
11
-
12
- const payload = {
13
- type: input.type,
14
- street: input.street,
15
- city: input.city,
16
- state: input.state,
17
- country: input.country,
18
- postal_code: input.postal_code,
19
- };
20
- for (const key of ['type', 'street', 'city', 'state', 'country', 'postal_code']) {
21
- if (!payload[key]) throw new context.CancelError(`${key} is required`);
22
- }
23
-
24
- const { data } = await clientifyRequest(context, {
25
- apiKey,
26
- baseUrl,
27
- method: 'PUT',
28
- path: `/companies/${companyId}/addresses/${addressId}/`,
29
- data: payload,
30
- });
31
-
32
- return context.sendJson(data || { ok: true }, 'out');
33
- },
34
- };
35
-
@@ -1,131 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.UpdateCompanyAddress",
3
- "author": "Clientify",
4
- "label": "Update Company Address",
5
- "description": "Update a company address entry.",
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
- "addressId": {
22
- "type": "number"
23
- },
24
- "type": {
25
- "type": "number"
26
- },
27
- "street": {
28
- "type": "string"
29
- },
30
- "city": {
31
- "type": "string"
32
- },
33
- "state": {
34
- "type": "string"
35
- },
36
- "country": {
37
- "type": "string"
38
- },
39
- "postal_code": {
40
- "type": "string"
41
- }
42
- },
43
- "required": [
44
- "companyId",
45
- "addressId",
46
- "type",
47
- "street",
48
- "city",
49
- "state",
50
- "country",
51
- "postal_code"
52
- ]
53
- },
54
- "inspector": {
55
- "inputs": {
56
- "companyId": {
57
- "type": "number",
58
- "label": "Company ID",
59
- "tooltip": "Set Company ID (can be mapped from previous steps).",
60
- "index": 1
61
- },
62
- "addressId": {
63
- "type": "number",
64
- "label": "Address ID",
65
- "tooltip": "Set Address ID (can be mapped from previous steps).",
66
- "index": 2
67
- },
68
- "type": {
69
- "type": "number",
70
- "label": "Type",
71
- "tooltip": "Set Type (can be mapped from previous steps).",
72
- "index": 3
73
- },
74
- "street": {
75
- "type": "text",
76
- "label": "Street",
77
- "tooltip": "Set Street (can be mapped from previous steps).",
78
- "index": 4
79
- },
80
- "city": {
81
- "type": "text",
82
- "label": "City",
83
- "tooltip": "Set City (can be mapped from previous steps).",
84
- "index": 5
85
- },
86
- "state": {
87
- "type": "text",
88
- "label": "State",
89
- "tooltip": "Set State (can be mapped from previous steps).",
90
- "index": 6
91
- },
92
- "country": {
93
- "type": "text",
94
- "label": "Country",
95
- "tooltip": "Set Country (can be mapped from previous steps).",
96
- "index": 7
97
- },
98
- "postal_code": {
99
- "type": "text",
100
- "label": "Postal Code",
101
- "tooltip": "Set Postal Code (can be mapped from previous steps).",
102
- "index": 8
103
- }
104
- }
105
- }
106
- }
107
- ],
108
- "outPorts": [
109
- {
110
- "name": "out",
111
- "schema": {
112
- "type": "object",
113
- "additionalProperties": true,
114
- "properties": {
115
- "id": {
116
- "type": "number"
117
- },
118
- "name": {
119
- "type": "string"
120
- },
121
- "url": {
122
- "type": "string"
123
- }
124
- },
125
- "required": [
126
- "id"
127
- ]
128
- }
129
- }
130
- ]
131
- }
@@ -1,27 +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 emailId = input.emailId;
9
- const email = input.email;
10
- const type = input.type;
11
- if (!companyId) throw new context.CancelError('companyId is required');
12
- if (!emailId) throw new context.CancelError('emailId is required');
13
- if (!email) throw new context.CancelError('email is required');
14
- if (!type) throw new context.CancelError('type is required');
15
-
16
- const { data } = await clientifyRequest(context, {
17
- apiKey,
18
- baseUrl,
19
- method: 'PUT',
20
- path: `/companies/${companyId}/emails/${emailId}/`,
21
- data: { email, type },
22
- });
23
-
24
- return context.sendJson(data || { ok: true }, 'out');
25
- },
26
- };
27
-
@@ -1,91 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.UpdateCompanyEmail",
3
- "author": "Clientify",
4
- "label": "Update Company Email",
5
- "description": "Update a company email entry.",
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
- "emailId": {
22
- "type": "number"
23
- },
24
- "email": {
25
- "type": "string"
26
- },
27
- "type": {
28
- "type": "number"
29
- }
30
- },
31
- "required": [
32
- "companyId",
33
- "emailId",
34
- "email",
35
- "type"
36
- ]
37
- },
38
- "inspector": {
39
- "inputs": {
40
- "companyId": {
41
- "type": "number",
42
- "label": "Company ID",
43
- "tooltip": "Set Company ID (can be mapped from previous steps).",
44
- "index": 1
45
- },
46
- "emailId": {
47
- "type": "number",
48
- "label": "Email ID",
49
- "tooltip": "Set Email ID (can be mapped from previous steps).",
50
- "index": 2
51
- },
52
- "email": {
53
- "type": "text",
54
- "label": "Email",
55
- "tooltip": "Set Email (can be mapped from previous steps).",
56
- "index": 3
57
- },
58
- "type": {
59
- "type": "number",
60
- "label": "Type",
61
- "tooltip": "Set Type (can be mapped from previous steps).",
62
- "index": 4
63
- }
64
- }
65
- }
66
- }
67
- ],
68
- "outPorts": [
69
- {
70
- "name": "out",
71
- "schema": {
72
- "type": "object",
73
- "additionalProperties": true,
74
- "properties": {
75
- "id": {
76
- "type": "number"
77
- },
78
- "name": {
79
- "type": "string"
80
- },
81
- "url": {
82
- "type": "string"
83
- }
84
- },
85
- "required": [
86
- "id"
87
- ]
88
- }
89
- }
90
- ]
91
- }
@@ -1,27 +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 phoneId = input.phoneId;
9
- const phone = input.phone;
10
- const type = input.type;
11
- if (!companyId) throw new context.CancelError('companyId is required');
12
- if (!phoneId) throw new context.CancelError('phoneId is required');
13
- if (!phone) throw new context.CancelError('phone is required');
14
- if (!type) throw new context.CancelError('type is required');
15
-
16
- const { data } = await clientifyRequest(context, {
17
- apiKey,
18
- baseUrl,
19
- method: 'PUT',
20
- path: `/companies/${companyId}/phones/${phoneId}/`,
21
- data: { phone, type },
22
- });
23
-
24
- return context.sendJson(data || { ok: true }, 'out');
25
- },
26
- };
27
-
@@ -1,91 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.UpdateCompanyPhone",
3
- "author": "Clientify",
4
- "label": "Update Company Phone",
5
- "description": "Update a company phone entry.",
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
- "phoneId": {
22
- "type": "number"
23
- },
24
- "phone": {
25
- "type": "string"
26
- },
27
- "type": {
28
- "type": "number"
29
- }
30
- },
31
- "required": [
32
- "companyId",
33
- "phoneId",
34
- "phone",
35
- "type"
36
- ]
37
- },
38
- "inspector": {
39
- "inputs": {
40
- "companyId": {
41
- "type": "number",
42
- "label": "Company ID",
43
- "tooltip": "Set Company ID (can be mapped from previous steps).",
44
- "index": 1
45
- },
46
- "phoneId": {
47
- "type": "number",
48
- "label": "Phone ID",
49
- "tooltip": "Set Phone ID (can be mapped from previous steps).",
50
- "index": 2
51
- },
52
- "phone": {
53
- "type": "text",
54
- "label": "Phone",
55
- "tooltip": "Set Phone (can be mapped from previous steps).",
56
- "index": 3
57
- },
58
- "type": {
59
- "type": "number",
60
- "label": "Type",
61
- "tooltip": "Set Type (can be mapped from previous steps).",
62
- "index": 4
63
- }
64
- }
65
- }
66
- }
67
- ],
68
- "outPorts": [
69
- {
70
- "name": "out",
71
- "schema": {
72
- "type": "object",
73
- "additionalProperties": true,
74
- "properties": {
75
- "id": {
76
- "type": "number"
77
- },
78
- "name": {
79
- "type": "string"
80
- },
81
- "url": {
82
- "type": "string"
83
- }
84
- },
85
- "required": [
86
- "id"
87
- ]
88
- }
89
- }
90
- ]
91
- }
@@ -1,25 +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 websiteId = input.websiteId;
9
- const website = input.website;
10
- if (!companyId) throw new context.CancelError('companyId is required');
11
- if (!websiteId) throw new context.CancelError('websiteId is required');
12
- if (!website) throw new context.CancelError('website is required');
13
-
14
- const { data } = await clientifyRequest(context, {
15
- apiKey,
16
- baseUrl,
17
- method: 'PUT',
18
- path: `/companies/${companyId}/websites/${websiteId}/`,
19
- data: { website },
20
- });
21
-
22
- return context.sendJson(data || { ok: true }, 'out');
23
- },
24
- };
25
-
@@ -1,81 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.UpdateCompanyWebsite",
3
- "author": "Clientify",
4
- "label": "Update Company Website",
5
- "description": "Update a company website entry.",
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
- "websiteId": {
22
- "type": "number"
23
- },
24
- "website": {
25
- "type": "string"
26
- }
27
- },
28
- "required": [
29
- "companyId",
30
- "websiteId",
31
- "website"
32
- ]
33
- },
34
- "inspector": {
35
- "inputs": {
36
- "companyId": {
37
- "type": "number",
38
- "label": "Company ID",
39
- "tooltip": "Set Company ID (can be mapped from previous steps).",
40
- "index": 1
41
- },
42
- "websiteId": {
43
- "type": "number",
44
- "label": "Website ID",
45
- "tooltip": "Set Website ID (can be mapped from previous steps).",
46
- "index": 2
47
- },
48
- "website": {
49
- "type": "text",
50
- "label": "Website",
51
- "tooltip": "Set Website (can be mapped from previous steps).",
52
- "index": 3
53
- }
54
- }
55
- }
56
- }
57
- ],
58
- "outPorts": [
59
- {
60
- "name": "out",
61
- "schema": {
62
- "type": "object",
63
- "additionalProperties": true,
64
- "properties": {
65
- "id": {
66
- "type": "number"
67
- },
68
- "name": {
69
- "type": "string"
70
- },
71
- "url": {
72
- "type": "string"
73
- }
74
- },
75
- "required": [
76
- "id"
77
- ]
78
- }
79
- }
80
- ]
81
- }
@@ -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 contactId = input.contactId;
8
- if (!contactId) {
9
- throw new context.CancelError('contactId is required');
10
- }
11
-
12
- const { contactId: _ignored, ...body } = input;
13
- const { data } = await clientifyRequest(context, {
14
- apiKey,
15
- baseUrl,
16
- method: 'PUT',
17
- path: `/contacts/${contactId}/`,
18
- data: body,
19
- });
20
-
21
- return context.sendJson(data, 'out');
22
- },
23
- };
24
-
@@ -1,81 +0,0 @@
1
- {
2
- "name": "appmixer.clientify.crm.UpdateContact",
3
- "author": "Clientify",
4
- "label": "Update Contact",
5
- "description": "Update an existing 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
- "properties": {
17
- "contactId": {
18
- "type": "number"
19
- }
20
- },
21
- "required": [
22
- "contactId"
23
- ]
24
- },
25
- "inspector": {
26
- "inputs": {
27
- "contactId": {
28
- "type": "number",
29
- "label": "Contact ID",
30
- "tooltip": "Set Contact ID (can be mapped from previous steps).",
31
- "index": 1
32
- }
33
- }
34
- }
35
- }
36
- ],
37
- "outPorts": [
38
- {
39
- "name": "out",
40
- "schema": {
41
- "type": "object",
42
- "additionalProperties": true,
43
- "properties": {
44
- "id": {
45
- "type": "number"
46
- },
47
- "url": {
48
- "type": "string"
49
- },
50
- "first_name": {
51
- "type": "string"
52
- },
53
- "last_name": {
54
- "type": "string"
55
- },
56
- "email": {
57
- "type": [
58
- "string",
59
- "null"
60
- ]
61
- },
62
- "company_id": {
63
- "type": [
64
- "number",
65
- "null"
66
- ]
67
- },
68
- "company_name": {
69
- "type": [
70
- "string",
71
- "null"
72
- ]
73
- }
74
- },
75
- "required": [
76
- "id"
77
- ]
78
- }
79
- }
80
- ]
81
- }