n8n-nodes-clientify 0.2.3 → 0.2.5
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.
- package/README.md +34 -504
- package/dist/README.md +34 -504
- package/dist/appmixer/clientify/crm/AddCompanyAddress/AddCompanyAddress.js +33 -0
- package/dist/appmixer/clientify/crm/AddCompanyAddress/component.json +115 -0
- package/dist/appmixer/clientify/crm/AddCompanyCall/AddCompanyCall.js +32 -0
- package/dist/appmixer/clientify/crm/AddCompanyCall/component.json +109 -0
- package/dist/appmixer/clientify/crm/AddCompanyCheckin/AddCompanyCheckin.js +31 -0
- package/dist/appmixer/clientify/crm/AddCompanyCheckin/component.json +98 -0
- package/dist/appmixer/clientify/crm/AddCompanyEmail/AddCompanyEmail.js +25 -0
- package/dist/appmixer/clientify/crm/AddCompanyEmail/component.json +84 -0
- package/dist/appmixer/clientify/crm/AddCompanyEmployee/AddCompanyEmployee.js +22 -0
- package/dist/appmixer/clientify/crm/AddCompanyEmployee/component.json +65 -0
- package/dist/appmixer/clientify/crm/AddCompanyNote/AddCompanyNote.js +25 -0
- package/dist/appmixer/clientify/crm/AddCompanyNote/component.json +75 -0
- package/dist/appmixer/clientify/crm/AddCompanyPhone/AddCompanyPhone.js +25 -0
- package/dist/appmixer/clientify/crm/AddCompanyPhone/component.json +87 -0
- package/dist/appmixer/clientify/crm/AddCompanyTag/AddCompanyTag.js +23 -0
- package/dist/appmixer/clientify/crm/AddCompanyTag/component.json +71 -0
- package/dist/appmixer/clientify/crm/AddCompanyWebsite/AddCompanyWebsite.js +23 -0
- package/dist/appmixer/clientify/crm/AddCompanyWebsite/component.json +65 -0
- package/dist/appmixer/clientify/crm/AddContactAddress/AddContactAddress.js +33 -0
- package/dist/appmixer/clientify/crm/AddContactAddress/component.json +115 -0
- package/dist/appmixer/clientify/crm/AddContactCall/AddContactCall.js +20 -0
- package/dist/appmixer/clientify/crm/AddContactCall/component.json +55 -0
- package/dist/appmixer/clientify/crm/AddContactCheckin/AddContactCheckin.js +33 -0
- package/dist/appmixer/clientify/crm/AddContactCheckin/component.json +109 -0
- package/dist/appmixer/clientify/crm/AddContactEmail/AddContactEmail.js +25 -0
- package/dist/appmixer/clientify/crm/AddContactEmail/component.json +85 -0
- package/dist/appmixer/clientify/crm/AddContactNote/AddContactNote.js +25 -0
- package/dist/appmixer/clientify/crm/AddContactNote/component.json +75 -0
- package/dist/appmixer/clientify/crm/AddContactOtherCompany/AddContactOtherCompany.js +23 -0
- package/dist/appmixer/clientify/crm/AddContactOtherCompany/component.json +65 -0
- package/dist/appmixer/clientify/crm/AddContactPhone/AddContactPhone.js +25 -0
- package/dist/appmixer/clientify/crm/AddContactPhone/component.json +88 -0
- package/dist/appmixer/clientify/crm/AddContactTag/AddContactTag.js +23 -0
- package/dist/appmixer/clientify/crm/AddContactTag/component.json +71 -0
- package/dist/appmixer/clientify/crm/AssignContactOwner/AssignContactOwner.js +23 -0
- package/dist/appmixer/clientify/crm/AssignContactOwner/component.json +93 -0
- package/dist/appmixer/clientify/crm/BatchCreateContacts/BatchCreateContacts.js +23 -0
- package/dist/appmixer/clientify/crm/BatchCreateContacts/component.json +90 -0
- package/dist/appmixer/clientify/crm/CompleteTask/CompleteTask.js +24 -0
- package/dist/appmixer/clientify/crm/CompleteTask/component.json +69 -0
- package/dist/appmixer/clientify/crm/CreateCompany/CreateCompany.js +19 -0
- package/dist/appmixer/clientify/crm/CreateCompany/component.json +58 -0
- package/dist/appmixer/clientify/crm/CreateContact/CreateContact.js +19 -0
- package/dist/appmixer/clientify/crm/CreateContact/component.json +88 -0
- package/dist/appmixer/clientify/crm/CreateTask/CreateTask.js +19 -0
- package/dist/appmixer/clientify/crm/CreateTask/component.json +167 -0
- package/dist/appmixer/clientify/crm/DeleteCompany/DeleteCompany.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteCompany/component.json +51 -0
- package/dist/appmixer/clientify/crm/DeleteCompanyAddress/DeleteCompanyAddress.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteCompanyAddress/component.json +62 -0
- package/dist/appmixer/clientify/crm/DeleteCompanyEmail/DeleteCompanyEmail.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteCompanyEmail/component.json +62 -0
- package/dist/appmixer/clientify/crm/DeleteCompanyPhone/DeleteCompanyPhone.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteCompanyPhone/component.json +62 -0
- package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/DeleteCompanyWebsite.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/component.json +62 -0
- package/dist/appmixer/clientify/crm/DeleteContact/DeleteContact.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteContact/component.json +51 -0
- package/dist/appmixer/clientify/crm/DeleteContactAddress/DeleteContactAddress.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteContactAddress/component.json +62 -0
- package/dist/appmixer/clientify/crm/DeleteContactEmail/DeleteContactEmail.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteContactEmail/component.json +62 -0
- package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/DeleteContactOtherCompany.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/component.json +62 -0
- package/dist/appmixer/clientify/crm/DeleteContactPhone/DeleteContactPhone.js +22 -0
- package/dist/appmixer/clientify/crm/DeleteContactPhone/component.json +62 -0
- package/dist/appmixer/clientify/crm/GetCompany/GetCompany.js +24 -0
- package/dist/appmixer/clientify/crm/GetCompany/component.json +69 -0
- package/dist/appmixer/clientify/crm/GetContact/GetContact.js +24 -0
- package/dist/appmixer/clientify/crm/GetContact/component.json +90 -0
- package/dist/appmixer/clientify/crm/GetCurrentUser/GetCurrentUser.js +17 -0
- package/dist/appmixer/clientify/crm/GetCurrentUser/component.json +49 -0
- package/dist/appmixer/clientify/crm/GetTask/GetTask.js +24 -0
- package/dist/appmixer/clientify/crm/GetTask/component.json +78 -0
- package/dist/appmixer/clientify/crm/ListAllCompanyTags/ListAllCompanyTags.js +16 -0
- package/dist/appmixer/clientify/crm/ListAllCompanyTags/component.json +67 -0
- package/dist/appmixer/clientify/crm/ListAllContactTags/ListAllContactTags.js +16 -0
- package/dist/appmixer/clientify/crm/ListAllContactTags/component.json +67 -0
- package/dist/appmixer/clientify/crm/ListCompanies/ListCompanies.js +26 -0
- package/dist/appmixer/clientify/crm/ListCompanies/component.json +117 -0
- package/dist/appmixer/clientify/crm/ListCompanyAddresses/ListCompanyAddresses.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyAddresses/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListCompanyCustomfields/ListCompanyCustomfields.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyCustomfields/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListCompanyEmails/ListCompanyEmails.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyEmails/component.json +88 -0
- package/dist/appmixer/clientify/crm/ListCompanyEmployees/ListCompanyEmployees.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyEmployees/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListCompanyPhones/ListCompanyPhones.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyPhones/component.json +91 -0
- package/dist/appmixer/clientify/crm/ListCompanySectors/ListCompanySectors.js +16 -0
- package/dist/appmixer/clientify/crm/ListCompanySectors/component.json +64 -0
- package/dist/appmixer/clientify/crm/ListCompanyTags/ListCompanyTags.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyTags/component.json +85 -0
- package/dist/appmixer/clientify/crm/ListCompanyTasks/ListCompanyTasks.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyTasks/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListCompanyWallentries/ListCompanyWallentries.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyWallentries/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListCompanyWebsites/ListCompanyWebsites.js +20 -0
- package/dist/appmixer/clientify/crm/ListCompanyWebsites/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListContactAddresses/ListContactAddresses.js +20 -0
- package/dist/appmixer/clientify/crm/ListContactAddresses/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListContactCustomfields/ListContactCustomfields.js +20 -0
- package/dist/appmixer/clientify/crm/ListContactCustomfields/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListContactEmails/ListContactEmails.js +20 -0
- package/dist/appmixer/clientify/crm/ListContactEmails/component.json +88 -0
- package/dist/appmixer/clientify/crm/ListContactOtherCompanies/ListContactOtherCompanies.js +20 -0
- package/dist/appmixer/clientify/crm/ListContactOtherCompanies/component.json +85 -0
- package/dist/appmixer/clientify/crm/ListContactPhones/ListContactPhones.js +20 -0
- package/dist/appmixer/clientify/crm/ListContactPhones/component.json +91 -0
- package/dist/appmixer/clientify/crm/ListContactTags/ListContactTags.js +20 -0
- package/dist/appmixer/clientify/crm/ListContactTags/component.json +85 -0
- package/dist/appmixer/clientify/crm/ListContactTasks/ListContactTasks.js +20 -0
- package/dist/appmixer/clientify/crm/ListContactTasks/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListContactWallentries/ListContactWallentries.js +20 -0
- package/dist/appmixer/clientify/crm/ListContactWallentries/component.json +79 -0
- package/dist/appmixer/clientify/crm/ListContacts/ListContacts.js +26 -0
- package/dist/appmixer/clientify/crm/ListContacts/component.json +138 -0
- package/dist/appmixer/clientify/crm/ListCustomFieldValues/ListCustomFieldValues.js +19 -0
- package/dist/appmixer/clientify/crm/ListCustomFieldValues/component.json +77 -0
- package/dist/appmixer/clientify/crm/ListCustomFields/ListCustomFields.js +19 -0
- package/dist/appmixer/clientify/crm/ListCustomFields/component.json +77 -0
- package/dist/appmixer/clientify/crm/ListTaskStages/ListTaskStages.js +19 -0
- package/dist/appmixer/clientify/crm/ListTaskStages/component.json +87 -0
- package/dist/appmixer/clientify/crm/ListTaskTypes/ListTaskTypes.js +19 -0
- package/dist/appmixer/clientify/crm/ListTaskTypes/component.json +87 -0
- package/dist/appmixer/clientify/crm/ListTasks/ListTasks.js +25 -0
- package/dist/appmixer/clientify/crm/ListTasks/component.json +102 -0
- package/dist/appmixer/clientify/crm/ListUsers/ListUsers.js +24 -0
- package/dist/appmixer/clientify/crm/ListUsers/component.json +93 -0
- package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/RemoveCompanyEmployee.js +22 -0
- package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/component.json +62 -0
- package/dist/appmixer/clientify/crm/RemoveCompanyTag/RemoveCompanyTag.js +22 -0
- package/dist/appmixer/clientify/crm/RemoveCompanyTag/component.json +62 -0
- package/dist/appmixer/clientify/crm/RemoveContactTag/RemoveContactTag.js +22 -0
- package/dist/appmixer/clientify/crm/RemoveContactTag/component.json +62 -0
- package/dist/appmixer/clientify/crm/SearchCompanies/SearchCompanies.js +29 -0
- package/dist/appmixer/clientify/crm/SearchCompanies/component.json +111 -0
- package/dist/appmixer/clientify/crm/UpdateCompany/UpdateCompany.js +24 -0
- package/dist/appmixer/clientify/crm/UpdateCompany/component.json +60 -0
- package/dist/appmixer/clientify/crm/UpdateCompanyAddress/UpdateCompanyAddress.js +35 -0
- package/dist/appmixer/clientify/crm/UpdateCompanyAddress/component.json +131 -0
- package/dist/appmixer/clientify/crm/UpdateCompanyEmail/UpdateCompanyEmail.js +27 -0
- package/dist/appmixer/clientify/crm/UpdateCompanyEmail/component.json +91 -0
- package/dist/appmixer/clientify/crm/UpdateCompanyPhone/UpdateCompanyPhone.js +27 -0
- package/dist/appmixer/clientify/crm/UpdateCompanyPhone/component.json +91 -0
- package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/UpdateCompanyWebsite.js +25 -0
- package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/component.json +81 -0
- package/dist/appmixer/clientify/crm/UpdateContact/UpdateContact.js +24 -0
- package/dist/appmixer/clientify/crm/UpdateContact/component.json +81 -0
- package/dist/appmixer/clientify/crm/UpdateContactAddress/UpdateContactAddress.js +35 -0
- package/dist/appmixer/clientify/crm/UpdateContactAddress/component.json +152 -0
- package/dist/appmixer/clientify/crm/UpdateContactEmail/UpdateContactEmail.js +27 -0
- package/dist/appmixer/clientify/crm/UpdateContactEmail/component.json +112 -0
- package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/UpdateContactMarketingStatus.js +25 -0
- package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/component.json +92 -0
- package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/UpdateContactOtherCompany.js +25 -0
- package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/component.json +102 -0
- package/dist/appmixer/clientify/crm/UpdateContactPhone/UpdateContactPhone.js +27 -0
- package/dist/appmixer/clientify/crm/UpdateContactPhone/component.json +112 -0
- package/dist/appmixer/clientify/crm/UpdateTask/UpdateTask.js +24 -0
- package/dist/appmixer/clientify/crm/UpdateTask/component.json +69 -0
- package/dist/appmixer/clientify/crm/clientify.js +49 -0
- package/dist/appmixer/clientify/crm/fields.js +24 -0
- package/dist/appmixer/clientify/crm/module.json +7 -0
- package/dist/credentials/{ClientifyMcpApi.credentials.d.ts → ClientifyApi.credentials.d.ts} +1 -1
- package/dist/credentials/ClientifyApi.credentials.js +33 -0
- package/dist/nodes/{ClientifyMcp/ClientifyMcpDynamic.node.d.ts → ClientifyApi/ClientifyApi.node.d.ts} +1 -1
- package/dist/nodes/ClientifyApi/ClientifyApi.node.js +139 -0
- package/dist/nodes/ClientifyApi/ClientifyApiCatalog.d.ts +23 -0
- package/dist/nodes/ClientifyApi/ClientifyApiCatalog.js +217 -0
- package/dist/nodes/{ClientifyMcp/ClientifyMcpTrigger.node.d.ts → ClientifyTrigger/ClientifyTrigger.node.d.ts} +1 -1
- package/dist/nodes/{ClientifyMcp/ClientifyMcpTrigger.node.js → ClientifyTrigger/ClientifyTrigger.node.js} +6 -14
- package/dist/nodes/ClientifyTrigger/clientify.png +0 -0
- package/dist/nodes/ClientifyTrigger/clientify.svg +5 -0
- package/dist/package.json +13 -6
- package/package.json +13 -6
- package/dist/credentials/ClientifyMcpApi.credentials.js +0 -25
- package/dist/nodes/ClientifyMcp/ClientifyMcpDynamic.node.js +0 -211
- package/dist/nodes/ClientifyMcp/ClientifyMcpFields.d.ts +0 -15
- package/dist/nodes/ClientifyMcp/ClientifyMcpFields.js +0 -894
- /package/dist/nodes/{ClientifyMcp → ClientifyApi}/clientify.png +0 -0
- /package/dist/nodes/{ClientifyMcp → ClientifyApi}/clientify.svg +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
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 phone = input.phone;
|
|
9
|
+
const type = input.type;
|
|
10
|
+
if (!companyId) throw new context.CancelError('companyId is required');
|
|
11
|
+
if (!phone) throw new context.CancelError('phone is required');
|
|
12
|
+
if (!type) throw new context.CancelError('type is required');
|
|
13
|
+
|
|
14
|
+
const { data } = await clientifyRequest(context, {
|
|
15
|
+
apiKey,
|
|
16
|
+
baseUrl,
|
|
17
|
+
method: 'POST',
|
|
18
|
+
path: `/companies/${companyId}/phones/`,
|
|
19
|
+
data: { phone, type },
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.AddCompanyPhone",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Add Company Phone",
|
|
5
|
+
"description": "Add a phone to 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
|
+
"phone": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"type": {
|
|
25
|
+
"type": "number"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"companyId",
|
|
30
|
+
"phone",
|
|
31
|
+
"type"
|
|
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
|
+
"phone": {
|
|
43
|
+
"type": "text",
|
|
44
|
+
"label": "Phone",
|
|
45
|
+
"tooltip": "Set Phone (can be mapped from previous steps).",
|
|
46
|
+
"index": 2
|
|
47
|
+
},
|
|
48
|
+
"type": {
|
|
49
|
+
"type": "number",
|
|
50
|
+
"label": "Type",
|
|
51
|
+
"tooltip": "Set Type (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
|
+
"type": {
|
|
69
|
+
"type": "number"
|
|
70
|
+
},
|
|
71
|
+
"phone": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"whatsapp": {
|
|
75
|
+
"type": "boolean"
|
|
76
|
+
},
|
|
77
|
+
"is_hard_bounce": {
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"required": [
|
|
82
|
+
"id"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 name = input.name;
|
|
9
|
+
if (!companyId) throw new context.CancelError('companyId is required');
|
|
10
|
+
if (!name) throw new context.CancelError('name is required');
|
|
11
|
+
|
|
12
|
+
const { data } = await clientifyRequest(context, {
|
|
13
|
+
apiKey,
|
|
14
|
+
baseUrl,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
path: `/companies/${companyId}/tags/`,
|
|
17
|
+
data: { name },
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.AddCompanyTag",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Add Company Tag",
|
|
5
|
+
"description": "Add a tag to a company (creates the tag if needed).",
|
|
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
|
+
"name": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"companyId",
|
|
27
|
+
"name"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"inspector": {
|
|
31
|
+
"inputs": {
|
|
32
|
+
"companyId": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"label": "Company ID",
|
|
35
|
+
"tooltip": "Set Company ID (can be mapped from previous steps).",
|
|
36
|
+
"index": 1
|
|
37
|
+
},
|
|
38
|
+
"name": {
|
|
39
|
+
"type": "text",
|
|
40
|
+
"label": "Name",
|
|
41
|
+
"tooltip": "Set Name (can be mapped from previous steps).",
|
|
42
|
+
"index": 2
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"outPorts": [
|
|
49
|
+
{
|
|
50
|
+
"name": "out",
|
|
51
|
+
"schema": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": true,
|
|
54
|
+
"properties": {
|
|
55
|
+
"id": {
|
|
56
|
+
"type": "number"
|
|
57
|
+
},
|
|
58
|
+
"name": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"color": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"id"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 website = input.website;
|
|
9
|
+
if (!companyId) throw new context.CancelError('companyId is required');
|
|
10
|
+
if (!website) throw new context.CancelError('website is required');
|
|
11
|
+
|
|
12
|
+
const { data } = await clientifyRequest(context, {
|
|
13
|
+
apiKey,
|
|
14
|
+
baseUrl,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
path: `/companies/${companyId}/websites/`,
|
|
17
|
+
data: { website },
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.AddCompanyWebsite",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Add Company Website",
|
|
5
|
+
"description": "Add a website to 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
|
+
"website": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"companyId",
|
|
27
|
+
"website"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"inspector": {
|
|
31
|
+
"inputs": {
|
|
32
|
+
"companyId": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"label": "Company ID",
|
|
35
|
+
"tooltip": "Set Company ID (can be mapped from previous steps).",
|
|
36
|
+
"index": 1
|
|
37
|
+
},
|
|
38
|
+
"website": {
|
|
39
|
+
"type": "text",
|
|
40
|
+
"label": "Website",
|
|
41
|
+
"tooltip": "Set Website (can be mapped from previous steps).",
|
|
42
|
+
"index": 2
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"outPorts": [
|
|
49
|
+
{
|
|
50
|
+
"name": "out",
|
|
51
|
+
"schema": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": true,
|
|
54
|
+
"properties": {
|
|
55
|
+
"id": {
|
|
56
|
+
"type": "number"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"id"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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) throw new context.CancelError('contactId is required');
|
|
9
|
+
|
|
10
|
+
const payload = {
|
|
11
|
+
type: input.type,
|
|
12
|
+
street: input.street,
|
|
13
|
+
city: input.city,
|
|
14
|
+
state: input.state,
|
|
15
|
+
country: input.country,
|
|
16
|
+
postal_code: input.postal_code,
|
|
17
|
+
};
|
|
18
|
+
for (const key of ['type', 'street', 'city', 'state', 'country', 'postal_code']) {
|
|
19
|
+
if (!payload[key]) throw new context.CancelError(`${key} is required`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const { data } = await clientifyRequest(context, {
|
|
23
|
+
apiKey,
|
|
24
|
+
baseUrl,
|
|
25
|
+
method: 'POST',
|
|
26
|
+
path: `/contacts/${contactId}/addresses/`,
|
|
27
|
+
data: payload,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
return context.sendJson(data, 'out');
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.AddContactAddress",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Add Contact Address",
|
|
5
|
+
"description": "Add an address to a contact.",
|
|
6
|
+
"private": false,
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"auth": {
|
|
9
|
+
"service": "appmixer:clientify"
|
|
10
|
+
},
|
|
11
|
+
"inPorts": [
|
|
12
|
+
{
|
|
13
|
+
"name": "in",
|
|
14
|
+
"schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"contactId": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
},
|
|
21
|
+
"type": {
|
|
22
|
+
"type": "number"
|
|
23
|
+
},
|
|
24
|
+
"street": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"city": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"state": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"country": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"postal_code": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"contactId",
|
|
42
|
+
"type",
|
|
43
|
+
"street",
|
|
44
|
+
"city",
|
|
45
|
+
"state",
|
|
46
|
+
"country",
|
|
47
|
+
"postal_code"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"inspector": {
|
|
51
|
+
"inputs": {
|
|
52
|
+
"contactId": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"label": "Contact ID",
|
|
55
|
+
"tooltip": "Set Contact ID (can be mapped from previous steps).",
|
|
56
|
+
"index": 1
|
|
57
|
+
},
|
|
58
|
+
"type": {
|
|
59
|
+
"type": "number",
|
|
60
|
+
"label": "Type",
|
|
61
|
+
"tooltip": "Set Type (can be mapped from previous steps).",
|
|
62
|
+
"index": 2
|
|
63
|
+
},
|
|
64
|
+
"street": {
|
|
65
|
+
"type": "text",
|
|
66
|
+
"label": "Street",
|
|
67
|
+
"tooltip": "Set Street (can be mapped from previous steps).",
|
|
68
|
+
"index": 3
|
|
69
|
+
},
|
|
70
|
+
"city": {
|
|
71
|
+
"type": "text",
|
|
72
|
+
"label": "City",
|
|
73
|
+
"tooltip": "Set City (can be mapped from previous steps).",
|
|
74
|
+
"index": 4
|
|
75
|
+
},
|
|
76
|
+
"state": {
|
|
77
|
+
"type": "text",
|
|
78
|
+
"label": "State",
|
|
79
|
+
"tooltip": "Set State (can be mapped from previous steps).",
|
|
80
|
+
"index": 5
|
|
81
|
+
},
|
|
82
|
+
"country": {
|
|
83
|
+
"type": "text",
|
|
84
|
+
"label": "Country",
|
|
85
|
+
"tooltip": "Set Country (can be mapped from previous steps).",
|
|
86
|
+
"index": 6
|
|
87
|
+
},
|
|
88
|
+
"postal_code": {
|
|
89
|
+
"type": "text",
|
|
90
|
+
"label": "Postal Code",
|
|
91
|
+
"tooltip": "Set Postal Code (can be mapped from previous steps).",
|
|
92
|
+
"index": 7
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"outPorts": [
|
|
99
|
+
{
|
|
100
|
+
"name": "out",
|
|
101
|
+
"schema": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": true,
|
|
104
|
+
"properties": {
|
|
105
|
+
"id": {
|
|
106
|
+
"type": "number"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"id"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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) throw new context.CancelError('contactId is required');
|
|
9
|
+
|
|
10
|
+
const { data } = await clientifyRequest(context, {
|
|
11
|
+
apiKey,
|
|
12
|
+
baseUrl,
|
|
13
|
+
method: 'POST',
|
|
14
|
+
path: `/contacts/${contactId}/call/`,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.AddContactCall",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Add Contact Call",
|
|
5
|
+
"description": "Log a call on a contact.",
|
|
6
|
+
"private": false,
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"auth": {
|
|
9
|
+
"service": "appmixer:clientify"
|
|
10
|
+
},
|
|
11
|
+
"inPorts": [
|
|
12
|
+
{
|
|
13
|
+
"name": "in",
|
|
14
|
+
"schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"contactId": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
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
|
+
"id": {
|
|
46
|
+
"type": "number"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"id"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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) throw new context.CancelError('contactId is required');
|
|
9
|
+
|
|
10
|
+
const payload = {
|
|
11
|
+
type: input.type,
|
|
12
|
+
comment: input.comment,
|
|
13
|
+
outcome: input.outcome,
|
|
14
|
+
date: input.date,
|
|
15
|
+
owner: input.owner,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
for (const key of ['type', 'comment', 'outcome', 'date', 'owner']) {
|
|
19
|
+
if (!payload[key]) throw new context.CancelError(`${key} is required`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const { data } = await clientifyRequest(context, {
|
|
23
|
+
apiKey,
|
|
24
|
+
baseUrl,
|
|
25
|
+
method: 'POST',
|
|
26
|
+
path: `/contacts/${contactId}/checkin/`,
|
|
27
|
+
data: payload,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.AddContactCheckin",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Add Contact Check-in",
|
|
5
|
+
"description": "Log a meeting/check-in on a contact.",
|
|
6
|
+
"private": false,
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"auth": {
|
|
9
|
+
"service": "appmixer:clientify"
|
|
10
|
+
},
|
|
11
|
+
"inPorts": [
|
|
12
|
+
{
|
|
13
|
+
"name": "in",
|
|
14
|
+
"schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"contactId": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
},
|
|
21
|
+
"type": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Example: virtual"
|
|
24
|
+
},
|
|
25
|
+
"comment": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"outcome": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Example: scheduled"
|
|
31
|
+
},
|
|
32
|
+
"date": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Example: 2021-07-08 12:34"
|
|
35
|
+
},
|
|
36
|
+
"owner": {
|
|
37
|
+
"type": "number",
|
|
38
|
+
"description": "User id."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"contactId",
|
|
43
|
+
"type",
|
|
44
|
+
"comment",
|
|
45
|
+
"outcome",
|
|
46
|
+
"date",
|
|
47
|
+
"owner"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"inspector": {
|
|
51
|
+
"inputs": {
|
|
52
|
+
"contactId": {
|
|
53
|
+
"type": "number",
|
|
54
|
+
"label": "Contact ID",
|
|
55
|
+
"tooltip": "Set Contact ID (can be mapped from previous steps).",
|
|
56
|
+
"index": 1
|
|
57
|
+
},
|
|
58
|
+
"type": {
|
|
59
|
+
"type": "text",
|
|
60
|
+
"label": "Type",
|
|
61
|
+
"tooltip": "Set Type (can be mapped from previous steps).",
|
|
62
|
+
"index": 2
|
|
63
|
+
},
|
|
64
|
+
"comment": {
|
|
65
|
+
"type": "text",
|
|
66
|
+
"label": "Comment",
|
|
67
|
+
"tooltip": "Set Comment (can be mapped from previous steps).",
|
|
68
|
+
"index": 3
|
|
69
|
+
},
|
|
70
|
+
"outcome": {
|
|
71
|
+
"type": "text",
|
|
72
|
+
"label": "Outcome",
|
|
73
|
+
"tooltip": "Set Outcome (can be mapped from previous steps).",
|
|
74
|
+
"index": 4
|
|
75
|
+
},
|
|
76
|
+
"date": {
|
|
77
|
+
"type": "text",
|
|
78
|
+
"label": "Date",
|
|
79
|
+
"tooltip": "Set Date (can be mapped from previous steps).",
|
|
80
|
+
"index": 5
|
|
81
|
+
},
|
|
82
|
+
"owner": {
|
|
83
|
+
"type": "number",
|
|
84
|
+
"label": "Owner",
|
|
85
|
+
"tooltip": "Set Owner (can be mapped from previous steps).",
|
|
86
|
+
"index": 6
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"outPorts": [
|
|
93
|
+
{
|
|
94
|
+
"name": "out",
|
|
95
|
+
"schema": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": true,
|
|
98
|
+
"properties": {
|
|
99
|
+
"id": {
|
|
100
|
+
"type": "number"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"id"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const { clientifyRequest } = require('../clientify');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
async receive(context) {
|
|
5
|
+
const { apiKey, baseUrl } = context.auth;
|
|
6
|
+
const input = (context.messages.in && context.messages.in.content) || {};
|
|
7
|
+
const contactId = input.contactId;
|
|
8
|
+
const email = input.email;
|
|
9
|
+
const type = input.type;
|
|
10
|
+
if (!contactId) throw new context.CancelError('contactId is required');
|
|
11
|
+
if (!email) throw new context.CancelError('email is required');
|
|
12
|
+
if (!type) throw new context.CancelError('type is required');
|
|
13
|
+
|
|
14
|
+
const { data } = await clientifyRequest(context, {
|
|
15
|
+
apiKey,
|
|
16
|
+
baseUrl,
|
|
17
|
+
method: 'POST',
|
|
18
|
+
path: `/contacts/${contactId}/emails/`,
|
|
19
|
+
data: { email, type },
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|