n8n-nodes-clientify 0.2.4 → 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 +31 -338
- package/dist/README.md +31 -338
- 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 -12
- 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,24 @@
|
|
|
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
|
+
const contactId = input.contactId;
|
|
9
|
+
if (!contactId) {
|
|
10
|
+
throw new context.CancelError('contactId is required');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const { data } = await clientifyRequest(context, {
|
|
14
|
+
apiKey,
|
|
15
|
+
baseUrl,
|
|
16
|
+
method: 'GET',
|
|
17
|
+
path: `/contacts/${contactId}/`,
|
|
18
|
+
query: { fields: input.fields || fields.contacts.detail },
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return context.sendJson(data, 'out');
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.GetContact",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Get Contact",
|
|
5
|
+
"description": "Get a contact by id.",
|
|
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
|
+
"fields": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"contactId"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"inspector": {
|
|
29
|
+
"inputs": {
|
|
30
|
+
"contactId": {
|
|
31
|
+
"type": "number",
|
|
32
|
+
"label": "Contact ID",
|
|
33
|
+
"tooltip": "Set Contact ID (can be mapped from previous steps).",
|
|
34
|
+
"index": 1
|
|
35
|
+
},
|
|
36
|
+
"fields": {
|
|
37
|
+
"type": "text",
|
|
38
|
+
"label": "Fields",
|
|
39
|
+
"tooltip": "Set Fields (can be mapped from previous steps).",
|
|
40
|
+
"index": 2
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"outPorts": [
|
|
47
|
+
{
|
|
48
|
+
"name": "out",
|
|
49
|
+
"schema": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": true,
|
|
52
|
+
"properties": {
|
|
53
|
+
"id": {
|
|
54
|
+
"type": "number"
|
|
55
|
+
},
|
|
56
|
+
"url": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"first_name": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"last_name": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"email": {
|
|
66
|
+
"type": [
|
|
67
|
+
"string",
|
|
68
|
+
"null"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"company_id": {
|
|
72
|
+
"type": [
|
|
73
|
+
"number",
|
|
74
|
+
"null"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"company_name": {
|
|
78
|
+
"type": [
|
|
79
|
+
"string",
|
|
80
|
+
"null"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": [
|
|
85
|
+
"id"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { clientifyRequest } = require('../clientify');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
async receive(context) {
|
|
5
|
+
const { apiKey, baseUrl } = context.auth;
|
|
6
|
+
|
|
7
|
+
const { data } = await clientifyRequest(context, {
|
|
8
|
+
apiKey,
|
|
9
|
+
baseUrl,
|
|
10
|
+
method: 'GET',
|
|
11
|
+
path: '/me/',
|
|
12
|
+
query: { fields: 'id,email' },
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
return context.sendJson(data, 'out');
|
|
16
|
+
},
|
|
17
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.GetCurrentUser",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Get Current User",
|
|
5
|
+
"description": "Get the currently authenticated Clientify user.",
|
|
6
|
+
"private": false,
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"auth": {
|
|
9
|
+
"service": "appmixer:clientify"
|
|
10
|
+
},
|
|
11
|
+
"inPorts": [
|
|
12
|
+
{
|
|
13
|
+
"name": "in",
|
|
14
|
+
"schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"outPorts": [
|
|
21
|
+
{
|
|
22
|
+
"name": "out",
|
|
23
|
+
"schema": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": true,
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": {
|
|
28
|
+
"type": "number"
|
|
29
|
+
},
|
|
30
|
+
"username": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"email": {
|
|
34
|
+
"type": [
|
|
35
|
+
"string",
|
|
36
|
+
"null"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"full_name": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"id"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
const taskId = input.taskId;
|
|
9
|
+
if (!taskId) {
|
|
10
|
+
throw new context.CancelError('taskId is required');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const { data } = await clientifyRequest(context, {
|
|
14
|
+
apiKey,
|
|
15
|
+
baseUrl,
|
|
16
|
+
method: 'GET',
|
|
17
|
+
path: `/tasks/${taskId}/`,
|
|
18
|
+
query: { fields: input.fields || fields.tasks.detail },
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return context.sendJson(data, 'out');
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.GetTask",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Get Task",
|
|
5
|
+
"description": "Get a task by id.",
|
|
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
|
+
"taskId": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"fields": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"taskId"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"inspector": {
|
|
29
|
+
"inputs": {
|
|
30
|
+
"taskId": {
|
|
31
|
+
"type": "number",
|
|
32
|
+
"label": "Task ID",
|
|
33
|
+
"tooltip": "Set Task ID (can be mapped from previous steps).",
|
|
34
|
+
"index": 1
|
|
35
|
+
},
|
|
36
|
+
"fields": {
|
|
37
|
+
"type": "text",
|
|
38
|
+
"label": "Fields",
|
|
39
|
+
"tooltip": "Set Fields (can be mapped from previous steps).",
|
|
40
|
+
"index": 2
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"outPorts": [
|
|
47
|
+
{
|
|
48
|
+
"name": "out",
|
|
49
|
+
"schema": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": true,
|
|
52
|
+
"properties": {
|
|
53
|
+
"id": {
|
|
54
|
+
"type": "number"
|
|
55
|
+
},
|
|
56
|
+
"url": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"name": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"status": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"due_date": {
|
|
66
|
+
"type": [
|
|
67
|
+
"string",
|
|
68
|
+
"null"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"required": [
|
|
73
|
+
"id"
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const { clientifyRequest } = require('../clientify');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
async receive(context) {
|
|
5
|
+
const { apiKey, baseUrl } = context.auth;
|
|
6
|
+
const { data } = await clientifyRequest(context, {
|
|
7
|
+
apiKey,
|
|
8
|
+
baseUrl,
|
|
9
|
+
method: 'GET',
|
|
10
|
+
path: '/companies/tags/',
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
return context.sendJson(data, 'out');
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.ListAllCompanyTags",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "List All Company Tags",
|
|
5
|
+
"description": "List all available company tags (picklist helper; can be slow).",
|
|
6
|
+
"private": false,
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"auth": {
|
|
9
|
+
"service": "appmixer:clientify"
|
|
10
|
+
},
|
|
11
|
+
"inPorts": [
|
|
12
|
+
{
|
|
13
|
+
"name": "in",
|
|
14
|
+
"schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"outPorts": [
|
|
21
|
+
{
|
|
22
|
+
"name": "out",
|
|
23
|
+
"schema": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": true,
|
|
26
|
+
"properties": {
|
|
27
|
+
"count": {
|
|
28
|
+
"type": "number"
|
|
29
|
+
},
|
|
30
|
+
"next": {
|
|
31
|
+
"type": [
|
|
32
|
+
"string",
|
|
33
|
+
"null"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"previous": {
|
|
37
|
+
"type": [
|
|
38
|
+
"string",
|
|
39
|
+
"null"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"results": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": true,
|
|
47
|
+
"properties": {
|
|
48
|
+
"id": {
|
|
49
|
+
"type": "number"
|
|
50
|
+
},
|
|
51
|
+
"name": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"color": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"id"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const { clientifyRequest } = require('../clientify');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
async receive(context) {
|
|
5
|
+
const { apiKey, baseUrl } = context.auth;
|
|
6
|
+
const { data } = await clientifyRequest(context, {
|
|
7
|
+
apiKey,
|
|
8
|
+
baseUrl,
|
|
9
|
+
method: 'GET',
|
|
10
|
+
path: '/contacts/tags/',
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
return context.sendJson(data, 'out');
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.ListAllContactTags",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "List All Contact Tags",
|
|
5
|
+
"description": "List all available contact tags (picklist helper; can be slow).",
|
|
6
|
+
"private": false,
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"auth": {
|
|
9
|
+
"service": "appmixer:clientify"
|
|
10
|
+
},
|
|
11
|
+
"inPorts": [
|
|
12
|
+
{
|
|
13
|
+
"name": "in",
|
|
14
|
+
"schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"outPorts": [
|
|
21
|
+
{
|
|
22
|
+
"name": "out",
|
|
23
|
+
"schema": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": true,
|
|
26
|
+
"properties": {
|
|
27
|
+
"count": {
|
|
28
|
+
"type": "number"
|
|
29
|
+
},
|
|
30
|
+
"next": {
|
|
31
|
+
"type": [
|
|
32
|
+
"string",
|
|
33
|
+
"null"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"previous": {
|
|
37
|
+
"type": [
|
|
38
|
+
"string",
|
|
39
|
+
"null"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"results": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": true,
|
|
47
|
+
"properties": {
|
|
48
|
+
"id": {
|
|
49
|
+
"type": "number"
|
|
50
|
+
},
|
|
51
|
+
"name": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"color": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"id"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const { clientifyRequest } = require('../clientify');
|
|
2
|
+
const fields = require('../fields');
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
async receive(context) {
|
|
6
|
+
const { apiKey, baseUrl } = context.auth;
|
|
7
|
+
const input = (context.messages.in && context.messages.in.content) || {};
|
|
8
|
+
|
|
9
|
+
const { data } = await clientifyRequest(context, {
|
|
10
|
+
apiKey,
|
|
11
|
+
baseUrl,
|
|
12
|
+
method: 'GET',
|
|
13
|
+
path: '/companies/',
|
|
14
|
+
query: {
|
|
15
|
+
page: input.page,
|
|
16
|
+
page_size: input.page_size,
|
|
17
|
+
search: input.search,
|
|
18
|
+
ordering: input.ordering,
|
|
19
|
+
fields: input.fields || fields.companies.list,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
return context.sendJson(data, 'out');
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.ListCompanies",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "List Companies",
|
|
5
|
+
"description": "List companies from Clientify.",
|
|
6
|
+
"private": false,
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"auth": {
|
|
9
|
+
"service": "appmixer:clientify"
|
|
10
|
+
},
|
|
11
|
+
"inPorts": [
|
|
12
|
+
{
|
|
13
|
+
"name": "in",
|
|
14
|
+
"schema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"page": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"page_size": {
|
|
21
|
+
"type": "number"
|
|
22
|
+
},
|
|
23
|
+
"search": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"ordering": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"fields": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"inspector": {
|
|
35
|
+
"inputs": {
|
|
36
|
+
"page": {
|
|
37
|
+
"type": "number",
|
|
38
|
+
"label": "Page",
|
|
39
|
+
"tooltip": "Set Page (can be mapped from previous steps).",
|
|
40
|
+
"index": 1
|
|
41
|
+
},
|
|
42
|
+
"page_size": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"label": "Page Size",
|
|
45
|
+
"tooltip": "Set Page Size (can be mapped from previous steps).",
|
|
46
|
+
"index": 2
|
|
47
|
+
},
|
|
48
|
+
"search": {
|
|
49
|
+
"type": "text",
|
|
50
|
+
"label": "Search",
|
|
51
|
+
"tooltip": "Set Search (can be mapped from previous steps).",
|
|
52
|
+
"index": 3
|
|
53
|
+
},
|
|
54
|
+
"ordering": {
|
|
55
|
+
"type": "text",
|
|
56
|
+
"label": "Ordering",
|
|
57
|
+
"tooltip": "Set Ordering (can be mapped from previous steps).",
|
|
58
|
+
"index": 4
|
|
59
|
+
},
|
|
60
|
+
"fields": {
|
|
61
|
+
"type": "text",
|
|
62
|
+
"label": "Fields",
|
|
63
|
+
"tooltip": "Set Fields (can be mapped from previous steps).",
|
|
64
|
+
"index": 5
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"outPorts": [
|
|
71
|
+
{
|
|
72
|
+
"name": "out",
|
|
73
|
+
"schema": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": true,
|
|
76
|
+
"properties": {
|
|
77
|
+
"count": {
|
|
78
|
+
"type": "number"
|
|
79
|
+
},
|
|
80
|
+
"next": {
|
|
81
|
+
"type": [
|
|
82
|
+
"string",
|
|
83
|
+
"null"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"previous": {
|
|
87
|
+
"type": [
|
|
88
|
+
"string",
|
|
89
|
+
"null"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"results": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": true,
|
|
97
|
+
"properties": {
|
|
98
|
+
"id": {
|
|
99
|
+
"type": "number"
|
|
100
|
+
},
|
|
101
|
+
"name": {
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
"url": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"id"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
@@ -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 companyId = input.companyId;
|
|
8
|
+
if (!companyId) throw new context.CancelError('companyId is required');
|
|
9
|
+
|
|
10
|
+
const { data } = await clientifyRequest(context, {
|
|
11
|
+
apiKey,
|
|
12
|
+
baseUrl,
|
|
13
|
+
method: 'GET',
|
|
14
|
+
path: `/companies/${companyId}/addresses/`,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
return context.sendJson(data, 'out');
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|