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,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.CompleteTask",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Complete Task",
|
|
5
|
+
"description": "Mark a task as completed.",
|
|
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
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"taskId"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"inspector": {
|
|
26
|
+
"inputs": {
|
|
27
|
+
"taskId": {
|
|
28
|
+
"type": "number",
|
|
29
|
+
"label": "Task ID",
|
|
30
|
+
"tooltip": "Set Task 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
|
+
"name": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"status": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"due_date": {
|
|
57
|
+
"type": [
|
|
58
|
+
"string",
|
|
59
|
+
"null"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"id"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { clientifyRequest } = require('../clientify');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
async receive(context) {
|
|
5
|
+
const { apiKey, baseUrl } = context.auth;
|
|
6
|
+
const input = (context.messages.in && context.messages.in.content) || {};
|
|
7
|
+
|
|
8
|
+
const { data } = await clientifyRequest(context, {
|
|
9
|
+
apiKey,
|
|
10
|
+
baseUrl,
|
|
11
|
+
method: 'POST',
|
|
12
|
+
path: '/companies/',
|
|
13
|
+
data: input,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
return context.sendJson(data, 'out');
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.CreateCompany",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Create Company",
|
|
5
|
+
"description": "Create a new 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": true,
|
|
17
|
+
"properties": {
|
|
18
|
+
"name": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"required": [
|
|
23
|
+
"name"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"inspector": {
|
|
27
|
+
"inputs": {
|
|
28
|
+
"name": {
|
|
29
|
+
"type": "text",
|
|
30
|
+
"label": "Name",
|
|
31
|
+
"tooltip": "Set Name (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
|
+
"name": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"id"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { clientifyRequest } = require('../clientify');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
async receive(context) {
|
|
5
|
+
const { apiKey, baseUrl } = context.auth;
|
|
6
|
+
const input = (context.messages.in && context.messages.in.content) || {};
|
|
7
|
+
|
|
8
|
+
const { data } = await clientifyRequest(context, {
|
|
9
|
+
apiKey,
|
|
10
|
+
baseUrl,
|
|
11
|
+
method: 'POST',
|
|
12
|
+
path: '/contacts/',
|
|
13
|
+
data: input,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
return context.sendJson(data, 'out');
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.CreateContact",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Create Contact",
|
|
5
|
+
"description": "Create a new 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": true,
|
|
17
|
+
"properties": {
|
|
18
|
+
"first_name": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"last_name": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"email": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"company": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"inspector": {
|
|
33
|
+
"inputs": {
|
|
34
|
+
"first_name": {
|
|
35
|
+
"type": "text",
|
|
36
|
+
"label": "First Name",
|
|
37
|
+
"tooltip": "Set First Name (can be mapped from previous steps).",
|
|
38
|
+
"index": 1
|
|
39
|
+
},
|
|
40
|
+
"last_name": {
|
|
41
|
+
"type": "text",
|
|
42
|
+
"label": "Last Name",
|
|
43
|
+
"tooltip": "Set Last Name (can be mapped from previous steps).",
|
|
44
|
+
"index": 2
|
|
45
|
+
},
|
|
46
|
+
"email": {
|
|
47
|
+
"type": "text",
|
|
48
|
+
"label": "Email",
|
|
49
|
+
"tooltip": "Set Email (can be mapped from previous steps).",
|
|
50
|
+
"index": 3
|
|
51
|
+
},
|
|
52
|
+
"company": {
|
|
53
|
+
"type": "text",
|
|
54
|
+
"label": "Company",
|
|
55
|
+
"tooltip": "Set Company (can be mapped from previous steps).",
|
|
56
|
+
"index": 4
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"outPorts": [
|
|
63
|
+
{
|
|
64
|
+
"name": "out",
|
|
65
|
+
"schema": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": true,
|
|
68
|
+
"properties": {
|
|
69
|
+
"id": {
|
|
70
|
+
"type": "number"
|
|
71
|
+
},
|
|
72
|
+
"first_name": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"last_name": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"email": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"id"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const { clientifyRequest } = require('../clientify');
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
async receive(context) {
|
|
5
|
+
const { apiKey, baseUrl } = context.auth;
|
|
6
|
+
const input = (context.messages.in && context.messages.in.content) || {};
|
|
7
|
+
|
|
8
|
+
const { data } = await clientifyRequest(context, {
|
|
9
|
+
apiKey,
|
|
10
|
+
baseUrl,
|
|
11
|
+
method: 'POST',
|
|
12
|
+
path: '/tasks/',
|
|
13
|
+
data: input,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
return context.sendJson(data, 'out');
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.CreateTask",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Create Task",
|
|
5
|
+
"description": "Create a new task/activity.",
|
|
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": true,
|
|
17
|
+
"properties": {
|
|
18
|
+
"owner": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
},
|
|
21
|
+
"assigned_to": {
|
|
22
|
+
"type": "number"
|
|
23
|
+
},
|
|
24
|
+
"type": {
|
|
25
|
+
"type": "number"
|
|
26
|
+
},
|
|
27
|
+
"name": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"description": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"remarks": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"due_date": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"status": {
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
"recurring_type": {
|
|
43
|
+
"type": "number"
|
|
44
|
+
},
|
|
45
|
+
"recurring_end_date": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"recurring_days_of_week": {
|
|
49
|
+
"type": "array"
|
|
50
|
+
},
|
|
51
|
+
"recurring_interval": {
|
|
52
|
+
"type": "number"
|
|
53
|
+
},
|
|
54
|
+
"priority": {
|
|
55
|
+
"type": "number"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"name",
|
|
60
|
+
"type"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"inspector": {
|
|
64
|
+
"inputs": {
|
|
65
|
+
"owner": {
|
|
66
|
+
"type": "number",
|
|
67
|
+
"label": "Owner",
|
|
68
|
+
"tooltip": "Set Owner (can be mapped from previous steps).",
|
|
69
|
+
"index": 1
|
|
70
|
+
},
|
|
71
|
+
"assigned_to": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"label": "Assigned To",
|
|
74
|
+
"tooltip": "Set Assigned To (can be mapped from previous steps).",
|
|
75
|
+
"index": 2
|
|
76
|
+
},
|
|
77
|
+
"type": {
|
|
78
|
+
"type": "number",
|
|
79
|
+
"label": "Type",
|
|
80
|
+
"tooltip": "Set Type (can be mapped from previous steps).",
|
|
81
|
+
"index": 3
|
|
82
|
+
},
|
|
83
|
+
"name": {
|
|
84
|
+
"type": "text",
|
|
85
|
+
"label": "Name",
|
|
86
|
+
"tooltip": "Set Name (can be mapped from previous steps).",
|
|
87
|
+
"index": 4
|
|
88
|
+
},
|
|
89
|
+
"description": {
|
|
90
|
+
"type": "text",
|
|
91
|
+
"label": "Description",
|
|
92
|
+
"tooltip": "Set Description (can be mapped from previous steps).",
|
|
93
|
+
"index": 5
|
|
94
|
+
},
|
|
95
|
+
"remarks": {
|
|
96
|
+
"type": "text",
|
|
97
|
+
"label": "Remarks",
|
|
98
|
+
"tooltip": "Set Remarks (can be mapped from previous steps).",
|
|
99
|
+
"index": 6
|
|
100
|
+
},
|
|
101
|
+
"due_date": {
|
|
102
|
+
"type": "text",
|
|
103
|
+
"label": "Due Date",
|
|
104
|
+
"tooltip": "Set Due Date (can be mapped from previous steps).",
|
|
105
|
+
"index": 7
|
|
106
|
+
},
|
|
107
|
+
"status": {
|
|
108
|
+
"type": "number",
|
|
109
|
+
"label": "Status",
|
|
110
|
+
"tooltip": "Set Status (can be mapped from previous steps).",
|
|
111
|
+
"index": 8
|
|
112
|
+
},
|
|
113
|
+
"recurring_type": {
|
|
114
|
+
"type": "number",
|
|
115
|
+
"label": "Recurring Type",
|
|
116
|
+
"tooltip": "Set Recurring Type (can be mapped from previous steps).",
|
|
117
|
+
"index": 9
|
|
118
|
+
},
|
|
119
|
+
"recurring_end_date": {
|
|
120
|
+
"type": "text",
|
|
121
|
+
"label": "Recurring End Date",
|
|
122
|
+
"tooltip": "Set Recurring End Date (can be mapped from previous steps).",
|
|
123
|
+
"index": 10
|
|
124
|
+
},
|
|
125
|
+
"recurring_days_of_week": {
|
|
126
|
+
"type": "expression",
|
|
127
|
+
"label": "Recurring Days Of Week",
|
|
128
|
+
"tooltip": "Set Recurring Days Of Week (can be mapped from previous steps).",
|
|
129
|
+
"index": 11
|
|
130
|
+
},
|
|
131
|
+
"recurring_interval": {
|
|
132
|
+
"type": "number",
|
|
133
|
+
"label": "Recurring Interval",
|
|
134
|
+
"tooltip": "Set Recurring Interval (can be mapped from previous steps).",
|
|
135
|
+
"index": 12
|
|
136
|
+
},
|
|
137
|
+
"priority": {
|
|
138
|
+
"type": "number",
|
|
139
|
+
"label": "Priority",
|
|
140
|
+
"tooltip": "Set Priority (can be mapped from previous steps).",
|
|
141
|
+
"index": 13
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"outPorts": [
|
|
148
|
+
{
|
|
149
|
+
"name": "out",
|
|
150
|
+
"schema": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": true,
|
|
153
|
+
"properties": {
|
|
154
|
+
"id": {
|
|
155
|
+
"type": "number"
|
|
156
|
+
},
|
|
157
|
+
"url": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"required": [
|
|
162
|
+
"id"
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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) {
|
|
9
|
+
throw new context.CancelError('companyId is required');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const { data } = await clientifyRequest(context, {
|
|
13
|
+
apiKey,
|
|
14
|
+
baseUrl,
|
|
15
|
+
method: 'DELETE',
|
|
16
|
+
path: `/companies/${companyId}/`,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.DeleteCompany",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Delete Company",
|
|
5
|
+
"description": "Delete a company 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
|
+
"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
|
+
"ok": {
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { data } = await clientifyRequest(context, {
|
|
13
|
+
apiKey,
|
|
14
|
+
baseUrl,
|
|
15
|
+
method: 'DELETE',
|
|
16
|
+
path: `/companies/${companyId}/addresses/${addressId}/`,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.DeleteCompanyAddress",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Delete Company Address",
|
|
5
|
+
"description": "Delete 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
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"companyId",
|
|
27
|
+
"addressId"
|
|
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
|
+
"addressId": {
|
|
39
|
+
"type": "number",
|
|
40
|
+
"label": "Address ID",
|
|
41
|
+
"tooltip": "Set Address ID (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
|
+
"ok": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
if (!companyId) throw new context.CancelError('companyId is required');
|
|
10
|
+
if (!emailId) throw new context.CancelError('emailId is required');
|
|
11
|
+
|
|
12
|
+
const { data } = await clientifyRequest(context, {
|
|
13
|
+
apiKey,
|
|
14
|
+
baseUrl,
|
|
15
|
+
method: 'DELETE',
|
|
16
|
+
path: `/companies/${companyId}/emails/${emailId}/`,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
return context.sendJson(data || { ok: true }, 'out');
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "appmixer.clientify.crm.DeleteCompanyEmail",
|
|
3
|
+
"author": "Clientify",
|
|
4
|
+
"label": "Delete Company Email",
|
|
5
|
+
"description": "Delete 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
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"companyId",
|
|
27
|
+
"emailId"
|
|
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
|
+
"emailId": {
|
|
39
|
+
"type": "number",
|
|
40
|
+
"label": "Email ID",
|
|
41
|
+
"tooltip": "Set Email ID (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
|
+
"ok": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|