n8n-nodes-clientify 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/dist/README.md +2 -3
- package/dist/nodes/ClientifyApi/ClientifyApi.node.js +2 -2
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/dist/appmixer/clientify/crm/AddCompanyAddress/AddCompanyAddress.js +0 -33
- package/dist/appmixer/clientify/crm/AddCompanyAddress/component.json +0 -115
- package/dist/appmixer/clientify/crm/AddCompanyCall/AddCompanyCall.js +0 -32
- package/dist/appmixer/clientify/crm/AddCompanyCall/component.json +0 -109
- package/dist/appmixer/clientify/crm/AddCompanyCheckin/AddCompanyCheckin.js +0 -31
- package/dist/appmixer/clientify/crm/AddCompanyCheckin/component.json +0 -98
- package/dist/appmixer/clientify/crm/AddCompanyEmail/AddCompanyEmail.js +0 -25
- package/dist/appmixer/clientify/crm/AddCompanyEmail/component.json +0 -84
- package/dist/appmixer/clientify/crm/AddCompanyEmployee/AddCompanyEmployee.js +0 -22
- package/dist/appmixer/clientify/crm/AddCompanyEmployee/component.json +0 -65
- package/dist/appmixer/clientify/crm/AddCompanyNote/AddCompanyNote.js +0 -25
- package/dist/appmixer/clientify/crm/AddCompanyNote/component.json +0 -75
- package/dist/appmixer/clientify/crm/AddCompanyPhone/AddCompanyPhone.js +0 -25
- package/dist/appmixer/clientify/crm/AddCompanyPhone/component.json +0 -87
- package/dist/appmixer/clientify/crm/AddCompanyTag/AddCompanyTag.js +0 -23
- package/dist/appmixer/clientify/crm/AddCompanyTag/component.json +0 -71
- package/dist/appmixer/clientify/crm/AddCompanyWebsite/AddCompanyWebsite.js +0 -23
- package/dist/appmixer/clientify/crm/AddCompanyWebsite/component.json +0 -65
- package/dist/appmixer/clientify/crm/AddContactAddress/AddContactAddress.js +0 -33
- package/dist/appmixer/clientify/crm/AddContactAddress/component.json +0 -115
- package/dist/appmixer/clientify/crm/AddContactCall/AddContactCall.js +0 -20
- package/dist/appmixer/clientify/crm/AddContactCall/component.json +0 -55
- package/dist/appmixer/clientify/crm/AddContactCheckin/AddContactCheckin.js +0 -33
- package/dist/appmixer/clientify/crm/AddContactCheckin/component.json +0 -109
- package/dist/appmixer/clientify/crm/AddContactEmail/AddContactEmail.js +0 -25
- package/dist/appmixer/clientify/crm/AddContactEmail/component.json +0 -85
- package/dist/appmixer/clientify/crm/AddContactNote/AddContactNote.js +0 -25
- package/dist/appmixer/clientify/crm/AddContactNote/component.json +0 -75
- package/dist/appmixer/clientify/crm/AddContactOtherCompany/AddContactOtherCompany.js +0 -23
- package/dist/appmixer/clientify/crm/AddContactOtherCompany/component.json +0 -65
- package/dist/appmixer/clientify/crm/AddContactPhone/AddContactPhone.js +0 -25
- package/dist/appmixer/clientify/crm/AddContactPhone/component.json +0 -88
- package/dist/appmixer/clientify/crm/AddContactTag/AddContactTag.js +0 -23
- package/dist/appmixer/clientify/crm/AddContactTag/component.json +0 -71
- package/dist/appmixer/clientify/crm/AssignContactOwner/AssignContactOwner.js +0 -23
- package/dist/appmixer/clientify/crm/AssignContactOwner/component.json +0 -93
- package/dist/appmixer/clientify/crm/BatchCreateContacts/BatchCreateContacts.js +0 -23
- package/dist/appmixer/clientify/crm/BatchCreateContacts/component.json +0 -90
- package/dist/appmixer/clientify/crm/CompleteTask/CompleteTask.js +0 -24
- package/dist/appmixer/clientify/crm/CompleteTask/component.json +0 -69
- package/dist/appmixer/clientify/crm/CreateCompany/CreateCompany.js +0 -19
- package/dist/appmixer/clientify/crm/CreateCompany/component.json +0 -58
- package/dist/appmixer/clientify/crm/CreateContact/CreateContact.js +0 -19
- package/dist/appmixer/clientify/crm/CreateContact/component.json +0 -88
- package/dist/appmixer/clientify/crm/CreateTask/CreateTask.js +0 -19
- package/dist/appmixer/clientify/crm/CreateTask/component.json +0 -167
- package/dist/appmixer/clientify/crm/DeleteCompany/DeleteCompany.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteCompany/component.json +0 -51
- package/dist/appmixer/clientify/crm/DeleteCompanyAddress/DeleteCompanyAddress.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteCompanyAddress/component.json +0 -62
- package/dist/appmixer/clientify/crm/DeleteCompanyEmail/DeleteCompanyEmail.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteCompanyEmail/component.json +0 -62
- package/dist/appmixer/clientify/crm/DeleteCompanyPhone/DeleteCompanyPhone.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteCompanyPhone/component.json +0 -62
- package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/DeleteCompanyWebsite.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteCompanyWebsite/component.json +0 -62
- package/dist/appmixer/clientify/crm/DeleteContact/DeleteContact.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteContact/component.json +0 -51
- package/dist/appmixer/clientify/crm/DeleteContactAddress/DeleteContactAddress.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteContactAddress/component.json +0 -62
- package/dist/appmixer/clientify/crm/DeleteContactEmail/DeleteContactEmail.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteContactEmail/component.json +0 -62
- package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/DeleteContactOtherCompany.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteContactOtherCompany/component.json +0 -62
- package/dist/appmixer/clientify/crm/DeleteContactPhone/DeleteContactPhone.js +0 -22
- package/dist/appmixer/clientify/crm/DeleteContactPhone/component.json +0 -62
- package/dist/appmixer/clientify/crm/GetCompany/GetCompany.js +0 -24
- package/dist/appmixer/clientify/crm/GetCompany/component.json +0 -69
- package/dist/appmixer/clientify/crm/GetContact/GetContact.js +0 -24
- package/dist/appmixer/clientify/crm/GetContact/component.json +0 -90
- package/dist/appmixer/clientify/crm/GetCurrentUser/GetCurrentUser.js +0 -17
- package/dist/appmixer/clientify/crm/GetCurrentUser/component.json +0 -49
- package/dist/appmixer/clientify/crm/GetTask/GetTask.js +0 -24
- package/dist/appmixer/clientify/crm/GetTask/component.json +0 -78
- package/dist/appmixer/clientify/crm/ListAllCompanyTags/ListAllCompanyTags.js +0 -16
- package/dist/appmixer/clientify/crm/ListAllCompanyTags/component.json +0 -67
- package/dist/appmixer/clientify/crm/ListAllContactTags/ListAllContactTags.js +0 -16
- package/dist/appmixer/clientify/crm/ListAllContactTags/component.json +0 -67
- package/dist/appmixer/clientify/crm/ListCompanies/ListCompanies.js +0 -26
- package/dist/appmixer/clientify/crm/ListCompanies/component.json +0 -117
- package/dist/appmixer/clientify/crm/ListCompanyAddresses/ListCompanyAddresses.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyAddresses/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListCompanyCustomfields/ListCompanyCustomfields.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyCustomfields/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListCompanyEmails/ListCompanyEmails.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyEmails/component.json +0 -88
- package/dist/appmixer/clientify/crm/ListCompanyEmployees/ListCompanyEmployees.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyEmployees/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListCompanyPhones/ListCompanyPhones.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyPhones/component.json +0 -91
- package/dist/appmixer/clientify/crm/ListCompanySectors/ListCompanySectors.js +0 -16
- package/dist/appmixer/clientify/crm/ListCompanySectors/component.json +0 -64
- package/dist/appmixer/clientify/crm/ListCompanyTags/ListCompanyTags.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyTags/component.json +0 -85
- package/dist/appmixer/clientify/crm/ListCompanyTasks/ListCompanyTasks.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyTasks/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListCompanyWallentries/ListCompanyWallentries.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyWallentries/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListCompanyWebsites/ListCompanyWebsites.js +0 -20
- package/dist/appmixer/clientify/crm/ListCompanyWebsites/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListContactAddresses/ListContactAddresses.js +0 -20
- package/dist/appmixer/clientify/crm/ListContactAddresses/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListContactCustomfields/ListContactCustomfields.js +0 -20
- package/dist/appmixer/clientify/crm/ListContactCustomfields/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListContactEmails/ListContactEmails.js +0 -20
- package/dist/appmixer/clientify/crm/ListContactEmails/component.json +0 -88
- package/dist/appmixer/clientify/crm/ListContactOtherCompanies/ListContactOtherCompanies.js +0 -20
- package/dist/appmixer/clientify/crm/ListContactOtherCompanies/component.json +0 -85
- package/dist/appmixer/clientify/crm/ListContactPhones/ListContactPhones.js +0 -20
- package/dist/appmixer/clientify/crm/ListContactPhones/component.json +0 -91
- package/dist/appmixer/clientify/crm/ListContactTags/ListContactTags.js +0 -20
- package/dist/appmixer/clientify/crm/ListContactTags/component.json +0 -85
- package/dist/appmixer/clientify/crm/ListContactTasks/ListContactTasks.js +0 -20
- package/dist/appmixer/clientify/crm/ListContactTasks/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListContactWallentries/ListContactWallentries.js +0 -20
- package/dist/appmixer/clientify/crm/ListContactWallentries/component.json +0 -79
- package/dist/appmixer/clientify/crm/ListContacts/ListContacts.js +0 -26
- package/dist/appmixer/clientify/crm/ListContacts/component.json +0 -138
- package/dist/appmixer/clientify/crm/ListCustomFieldValues/ListCustomFieldValues.js +0 -19
- package/dist/appmixer/clientify/crm/ListCustomFieldValues/component.json +0 -77
- package/dist/appmixer/clientify/crm/ListCustomFields/ListCustomFields.js +0 -19
- package/dist/appmixer/clientify/crm/ListCustomFields/component.json +0 -77
- package/dist/appmixer/clientify/crm/ListTaskStages/ListTaskStages.js +0 -19
- package/dist/appmixer/clientify/crm/ListTaskStages/component.json +0 -87
- package/dist/appmixer/clientify/crm/ListTaskTypes/ListTaskTypes.js +0 -19
- package/dist/appmixer/clientify/crm/ListTaskTypes/component.json +0 -87
- package/dist/appmixer/clientify/crm/ListTasks/ListTasks.js +0 -25
- package/dist/appmixer/clientify/crm/ListTasks/component.json +0 -102
- package/dist/appmixer/clientify/crm/ListUsers/ListUsers.js +0 -24
- package/dist/appmixer/clientify/crm/ListUsers/component.json +0 -93
- package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/RemoveCompanyEmployee.js +0 -22
- package/dist/appmixer/clientify/crm/RemoveCompanyEmployee/component.json +0 -62
- package/dist/appmixer/clientify/crm/RemoveCompanyTag/RemoveCompanyTag.js +0 -22
- package/dist/appmixer/clientify/crm/RemoveCompanyTag/component.json +0 -62
- package/dist/appmixer/clientify/crm/RemoveContactTag/RemoveContactTag.js +0 -22
- package/dist/appmixer/clientify/crm/RemoveContactTag/component.json +0 -62
- package/dist/appmixer/clientify/crm/SearchCompanies/SearchCompanies.js +0 -29
- package/dist/appmixer/clientify/crm/SearchCompanies/component.json +0 -111
- package/dist/appmixer/clientify/crm/UpdateCompany/UpdateCompany.js +0 -24
- package/dist/appmixer/clientify/crm/UpdateCompany/component.json +0 -60
- package/dist/appmixer/clientify/crm/UpdateCompanyAddress/UpdateCompanyAddress.js +0 -35
- package/dist/appmixer/clientify/crm/UpdateCompanyAddress/component.json +0 -131
- package/dist/appmixer/clientify/crm/UpdateCompanyEmail/UpdateCompanyEmail.js +0 -27
- package/dist/appmixer/clientify/crm/UpdateCompanyEmail/component.json +0 -91
- package/dist/appmixer/clientify/crm/UpdateCompanyPhone/UpdateCompanyPhone.js +0 -27
- package/dist/appmixer/clientify/crm/UpdateCompanyPhone/component.json +0 -91
- package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/UpdateCompanyWebsite.js +0 -25
- package/dist/appmixer/clientify/crm/UpdateCompanyWebsite/component.json +0 -81
- package/dist/appmixer/clientify/crm/UpdateContact/UpdateContact.js +0 -24
- package/dist/appmixer/clientify/crm/UpdateContact/component.json +0 -81
- package/dist/appmixer/clientify/crm/UpdateContactAddress/UpdateContactAddress.js +0 -35
- package/dist/appmixer/clientify/crm/UpdateContactAddress/component.json +0 -152
- package/dist/appmixer/clientify/crm/UpdateContactEmail/UpdateContactEmail.js +0 -27
- package/dist/appmixer/clientify/crm/UpdateContactEmail/component.json +0 -112
- package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/UpdateContactMarketingStatus.js +0 -25
- package/dist/appmixer/clientify/crm/UpdateContactMarketingStatus/component.json +0 -92
- package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/UpdateContactOtherCompany.js +0 -25
- package/dist/appmixer/clientify/crm/UpdateContactOtherCompany/component.json +0 -102
- package/dist/appmixer/clientify/crm/UpdateContactPhone/UpdateContactPhone.js +0 -27
- package/dist/appmixer/clientify/crm/UpdateContactPhone/component.json +0 -112
- package/dist/appmixer/clientify/crm/UpdateTask/UpdateTask.js +0 -24
- package/dist/appmixer/clientify/crm/UpdateTask/component.json +0 -69
- package/dist/appmixer/clientify/crm/clientify.js +0 -49
- package/dist/appmixer/clientify/crm/fields.js +0 -24
- package/dist/appmixer/clientify/crm/module.json +0 -7
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "appmixer.clientify.crm.DeleteContactOtherCompany",
|
|
3
|
-
"author": "Clientify",
|
|
4
|
-
"label": "Delete Contact Other Company",
|
|
5
|
-
"description": "Delete a contact other-company relationship.",
|
|
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
|
-
"otherCompanyId": {
|
|
22
|
-
"type": "number"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"required": [
|
|
26
|
-
"contactId",
|
|
27
|
-
"otherCompanyId"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"inspector": {
|
|
31
|
-
"inputs": {
|
|
32
|
-
"contactId": {
|
|
33
|
-
"type": "number",
|
|
34
|
-
"label": "Contact ID",
|
|
35
|
-
"tooltip": "Set Contact ID (can be mapped from previous steps).",
|
|
36
|
-
"index": 1
|
|
37
|
-
},
|
|
38
|
-
"otherCompanyId": {
|
|
39
|
-
"type": "number",
|
|
40
|
-
"label": "Other Company ID",
|
|
41
|
-
"tooltip": "Set Other Company 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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const { clientifyRequest } = require('../clientify');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
async receive(context) {
|
|
5
|
-
const { apiKey, baseUrl } = context.auth;
|
|
6
|
-
const input = (context.messages.in && context.messages.in.content) || {};
|
|
7
|
-
const contactId = input.contactId;
|
|
8
|
-
const phoneId = input.phoneId;
|
|
9
|
-
if (!contactId) throw new context.CancelError('contactId is required');
|
|
10
|
-
if (!phoneId) throw new context.CancelError('phoneId is required');
|
|
11
|
-
|
|
12
|
-
const { data } = await clientifyRequest(context, {
|
|
13
|
-
apiKey,
|
|
14
|
-
baseUrl,
|
|
15
|
-
method: 'DELETE',
|
|
16
|
-
path: `/contacts/${contactId}/phones/${phoneId}/`,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
return context.sendJson(data || { ok: true }, 'out');
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "appmixer.clientify.crm.DeleteContactPhone",
|
|
3
|
-
"author": "Clientify",
|
|
4
|
-
"label": "Delete Contact Phone",
|
|
5
|
-
"description": "Delete a contact phone entry.",
|
|
6
|
-
"private": false,
|
|
7
|
-
"version": "0.1.0",
|
|
8
|
-
"auth": {
|
|
9
|
-
"service": "appmixer:clientify"
|
|
10
|
-
},
|
|
11
|
-
"inPorts": [
|
|
12
|
-
{
|
|
13
|
-
"name": "in",
|
|
14
|
-
"schema": {
|
|
15
|
-
"type": "object",
|
|
16
|
-
"additionalProperties": false,
|
|
17
|
-
"properties": {
|
|
18
|
-
"contactId": {
|
|
19
|
-
"type": "number"
|
|
20
|
-
},
|
|
21
|
-
"phoneId": {
|
|
22
|
-
"type": "number"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"required": [
|
|
26
|
-
"contactId",
|
|
27
|
-
"phoneId"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"inspector": {
|
|
31
|
-
"inputs": {
|
|
32
|
-
"contactId": {
|
|
33
|
-
"type": "number",
|
|
34
|
-
"label": "Contact ID",
|
|
35
|
-
"tooltip": "Set Contact ID (can be mapped from previous steps).",
|
|
36
|
-
"index": 1
|
|
37
|
-
},
|
|
38
|
-
"phoneId": {
|
|
39
|
-
"type": "number",
|
|
40
|
-
"label": "Phone ID",
|
|
41
|
-
"tooltip": "Set Phone 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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const { clientifyRequest } = require('../clientify');
|
|
2
|
-
const fields = require('../fields');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
async receive(context) {
|
|
6
|
-
const { apiKey, baseUrl } = context.auth;
|
|
7
|
-
const input = (context.messages.in && context.messages.in.content) || {};
|
|
8
|
-
const companyId = input.companyId;
|
|
9
|
-
if (!companyId) {
|
|
10
|
-
throw new context.CancelError('companyId is required');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const { data } = await clientifyRequest(context, {
|
|
14
|
-
apiKey,
|
|
15
|
-
baseUrl,
|
|
16
|
-
method: 'GET',
|
|
17
|
-
path: `/companies/${companyId}/`,
|
|
18
|
-
query: { fields: input.fields || fields.companies.detail },
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return context.sendJson(data, 'out');
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "appmixer.clientify.crm.GetCompany",
|
|
3
|
-
"author": "Clientify",
|
|
4
|
-
"label": "Get Company",
|
|
5
|
-
"description": "Get 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
|
-
"fields": {
|
|
21
|
-
"type": "string"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"required": [
|
|
25
|
-
"companyId"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"inspector": {
|
|
29
|
-
"inputs": {
|
|
30
|
-
"companyId": {
|
|
31
|
-
"type": "number",
|
|
32
|
-
"label": "Company ID",
|
|
33
|
-
"tooltip": "Set Company 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
|
-
"name": {
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
"url": {
|
|
60
|
-
"type": "string"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"required": [
|
|
64
|
-
"id"
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const { clientifyRequest } = require('../clientify');
|
|
2
|
-
const fields = require('../fields');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
async receive(context) {
|
|
6
|
-
const { apiKey, baseUrl } = context.auth;
|
|
7
|
-
const input = (context.messages.in && context.messages.in.content) || {};
|
|
8
|
-
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
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const { clientifyRequest } = require('../clientify');
|
|
2
|
-
const fields = require('../fields');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
async receive(context) {
|
|
6
|
-
const { apiKey, baseUrl } = context.auth;
|
|
7
|
-
const input = (context.messages.in && context.messages.in.content) || {};
|
|
8
|
-
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
|
-
|
|
@@ -1,78 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
|