@limetech/n8n-nodes-lime 0.3.1 → 0.3.3
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/dist/nodes/fortnox/commons.js +3 -3
- package/dist/nodes/fortnox/commons.js.map +1 -1
- package/dist/nodes/fortnox/fortnoxLogo.svg +15 -0
- package/dist/nodes/fortnox/resources/customers/index.d.ts +2 -2
- package/dist/nodes/fortnox/resources/customers/index.js +19 -9
- package/dist/nodes/fortnox/resources/customers/index.js.map +1 -1
- package/dist/nodes/fortnox/resources/customers/operations/create.operation.js +2 -2
- package/dist/nodes/fortnox/resources/customers/operations/create.operation.js.map +1 -1
- package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js +2 -2
- package/dist/nodes/fortnox/resources/customers/operations/delete.operation.js.map +1 -1
- package/dist/nodes/fortnox/resources/customers/operations/get.operation.js +2 -2
- package/dist/nodes/fortnox/resources/customers/operations/get.operation.js.map +1 -1
- package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js +2 -2
- package/dist/nodes/fortnox/resources/customers/operations/getAll.operation.js.map +1 -1
- package/dist/nodes/fortnox/resources/customers/operations/update.operation.js +2 -2
- package/dist/nodes/fortnox/resources/customers/operations/update.operation.js.map +1 -1
- package/dist/nodes/fortnox/resources/invoice/index.d.ts +2 -2
- package/dist/nodes/fortnox/resources/invoice/index.js +19 -9
- package/dist/nodes/fortnox/resources/invoice/index.js.map +1 -1
- package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js +2 -2
- package/dist/nodes/fortnox/resources/invoice/operations/create.operation.js.map +1 -1
- package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js +2 -2
- package/dist/nodes/fortnox/resources/invoice/operations/get.operation.js.map +1 -1
- package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js +2 -2
- package/dist/nodes/fortnox/resources/invoice/operations/getAll.operation.js.map +1 -1
- package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js +2 -2
- package/dist/nodes/fortnox/resources/invoice/operations/update.operation.js.map +1 -1
- package/dist/nodes/fortnox/transport/errorCodes.js +1 -2
- package/dist/nodes/fortnox/transport/errorCodes.js.map +1 -1
- package/dist/nodes/fortnox/transport/index.js +2 -2
- package/dist/nodes/fortnox/transport/index.js.map +1 -1
- package/dist/nodes/lime-crm/commons/task.js +1 -2
- package/dist/nodes/lime-crm/commons/task.js.map +1 -1
- package/dist/nodes/lime-crm/commons/webhook.js +1 -2
- package/dist/nodes/lime-crm/commons/webhook.js.map +1 -1
- package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js +1 -2
- package/dist/nodes/lime-crm/methods/getEntitiesForErpSystem.js.map +1 -1
- package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js +1 -2
- package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js.map +1 -1
- package/dist/nodes/lime-crm/methods/getLimeTypes.js +1 -2
- package/dist/nodes/lime-crm/methods/getLimeTypes.js.map +1 -1
- package/dist/nodes/lime-crm/resources/erpConnector/index.d.ts +4 -4
- package/dist/nodes/lime-crm/resources/erpConnector/index.js +19 -9
- package/dist/nodes/lime-crm/resources/erpConnector/index.js.map +1 -1
- package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.d.ts +2 -2
- package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/erpConnector/operations/createOrUpdateObjects.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/erpConnector/operations/transform.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/erpConnector/transform.js +1 -2
- package/dist/nodes/lime-crm/resources/erpConnector/transform.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeObject/index.d.ts +2 -2
- package/dist/nodes/lime-crm/resources/limeObject/index.js +19 -9
- package/dist/nodes/lime-crm/resources/limeObject/index.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeType/index.d.ts +2 -2
- package/dist/nodes/lime-crm/resources/limeType/index.js +19 -9
- package/dist/nodes/lime-crm/resources/limeType/index.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js.map +1 -1
- package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js +2 -2
- package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js.map +1 -1
- package/dist/nodes/lime-crm/transport/commons.js +1 -2
- package/dist/nodes/lime-crm/transport/commons.js.map +1 -1
- package/dist/nodes/lime-crm/transport/erpConnector.js +1 -2
- package/dist/nodes/lime-crm/transport/erpConnector.js.map +1 -1
- package/dist/nodes/lime-crm/transport/limeobjects.js +5 -6
- package/dist/nodes/lime-crm/transport/limeobjects.js.map +1 -1
- package/dist/nodes/lime-crm/transport/limetypes.js +3 -4
- package/dist/nodes/lime-crm/transport/limetypes.js.map +1 -1
- package/dist/nodes/lime-crm/transport/task.js +1 -2
- package/dist/nodes/lime-crm/transport/task.js.map +1 -1
- package/dist/nodes/lime-crm/transport/webhooks.js +4 -5
- package/dist/nodes/lime-crm/transport/webhooks.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/credentials/LimeGoApi.credentials.d.ts +0 -15
- package/dist/credentials/LimeGoApi.credentials.js +0 -32
- package/dist/credentials/LimeGoApi.credentials.js.map +0 -1
- package/dist/nodes/LimeCrm/GenericTypes.d.ts +0 -80
- package/dist/nodes/LimeCrm/GenericTypes.js +0 -7
- package/dist/nodes/LimeCrm/GenericTypes.js.map +0 -1
- package/dist/nodes/LimeCrm/LimeCrmNode.node.d.ts +0 -17
- package/dist/nodes/LimeCrm/LimeCrmNode.node.js +0 -114
- package/dist/nodes/LimeCrm/LimeCrmNode.node.js.map +0 -1
- package/dist/nodes/LimeCrm/LimeCrmTrigger/LimeCrmTrigger.node.d.ts +0 -17
- package/dist/nodes/LimeCrm/LimeCrmTrigger/LimeCrmTrigger.node.js +0 -408
- package/dist/nodes/LimeCrm/LimeCrmTrigger/LimeCrmTrigger.node.js.map +0 -1
- package/dist/nodes/LimeCrm/LimeCrmTrigger.node.d.ts +0 -17
- package/dist/nodes/LimeCrm/LimeCrmTrigger.node.js +0 -439
- package/dist/nodes/LimeCrm/LimeCrmTrigger.node.js.map +0 -1
- package/dist/nodes/LimeCrm/methods/getAllSortableFields.d.ts +0 -7
- package/dist/nodes/LimeCrm/methods/getAllSortableFields.js +0 -53
- package/dist/nodes/LimeCrm/methods/getAllSortableFields.js.map +0 -1
- package/dist/nodes/LimeCrm/methods/getLimeTypeProperties.d.ts +0 -3
- package/dist/nodes/LimeCrm/methods/getLimeTypeProperties.js +0 -40
- package/dist/nodes/LimeCrm/methods/getLimeTypeProperties.js.map +0 -1
- package/dist/nodes/LimeCrm/methods/getLimeTypeRelations.d.ts +0 -7
- package/dist/nodes/LimeCrm/methods/getLimeTypeRelations.js +0 -30
- package/dist/nodes/LimeCrm/methods/getLimeTypeRelations.js.map +0 -1
- package/dist/nodes/LimeCrm/methods/getLimeTypes.d.ts +0 -3
- package/dist/nodes/LimeCrm/methods/getLimeTypes.js +0 -33
- package/dist/nodes/LimeCrm/methods/getLimeTypes.js.map +0 -1
- package/dist/nodes/LimeCrm/methods/getRelatedTypeProperties.d.ts +0 -7
- package/dist/nodes/LimeCrm/methods/getRelatedTypeProperties.js +0 -39
- package/dist/nodes/LimeCrm/methods/getRelatedTypeProperties.js.map +0 -1
- package/dist/nodes/LimeCrm/methods/index.d.ts +0 -5
- package/dist/nodes/LimeCrm/methods/index.js +0 -14
- package/dist/nodes/LimeCrm/methods/index.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/commonFields.d.ts +0 -4
- package/dist/nodes/LimeCrm/resources/limeObject/commonFields.js +0 -165
- package/dist/nodes/LimeCrm/resources/limeObject/commonFields.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/index.d.ts +0 -6
- package/dist/nodes/LimeCrm/resources/limeObject/index.js +0 -79
- package/dist/nodes/LimeCrm/resources/limeObject/index.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/operations/common.operation.d.ts +0 -2
- package/dist/nodes/LimeCrm/resources/limeObject/operations/common.operation.js +0 -36
- package/dist/nodes/LimeCrm/resources/limeObject/operations/common.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/operations/create.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeObject/operations/create.operation.js +0 -234
- package/dist/nodes/LimeCrm/resources/limeObject/operations/create.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/operations/delete.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeObject/operations/delete.operation.js +0 -136
- package/dist/nodes/LimeCrm/resources/limeObject/operations/delete.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/operations/get.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeObject/operations/get.operation.js +0 -125
- package/dist/nodes/LimeCrm/resources/limeObject/operations/get.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/operations/getAll.operation.d.ts +0 -3
- package/dist/nodes/LimeCrm/resources/limeObject/operations/getAll.operation.js +0 -212
- package/dist/nodes/LimeCrm/resources/limeObject/operations/getAll.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/operations/search.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeObject/operations/search.operation.js +0 -232
- package/dist/nodes/LimeCrm/resources/limeObject/operations/search.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeObject/operations/update.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeObject/operations/update.operation.js +0 -186
- package/dist/nodes/LimeCrm/resources/limeObject/operations/update.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeType/index.d.ts +0 -6
- package/dist/nodes/LimeCrm/resources/limeType/index.js +0 -81
- package/dist/nodes/LimeCrm/resources/limeType/index.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeType/operations/getProperties.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeType/operations/getProperties.operation.js +0 -112
- package/dist/nodes/LimeCrm/resources/limeType/operations/getProperties.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeType/operations/getRelations.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeType/operations/getRelations.operation.js +0 -112
- package/dist/nodes/LimeCrm/resources/limeType/operations/getRelations.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeType/operations/getType.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeType/operations/getType.operation.js +0 -70
- package/dist/nodes/LimeCrm/resources/limeType/operations/getType.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/limeType/operations/listTypes.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/limeType/operations/listTypes.operation.js +0 -86
- package/dist/nodes/LimeCrm/resources/limeType/operations/listTypes.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/queryApi/index.d.ts +0 -6
- package/dist/nodes/LimeCrm/resources/queryApi/index.js +0 -57
- package/dist/nodes/LimeCrm/resources/queryApi/index.js.map +0 -1
- package/dist/nodes/LimeCrm/resources/queryApi/operations/executeQuery.operation.d.ts +0 -9
- package/dist/nodes/LimeCrm/resources/queryApi/operations/executeQuery.operation.js +0 -559
- package/dist/nodes/LimeCrm/resources/queryApi/operations/executeQuery.operation.js.map +0 -1
- package/dist/nodes/LimeCrm/transport/index.d.ts +0 -2
- package/dist/nodes/LimeCrm/transport/index.js +0 -50
- package/dist/nodes/LimeCrm/transport/index.js.map +0 -1
- package/dist/nodes/LimeGo/LimeGo.node.d.ts +0 -8
- package/dist/nodes/LimeGo/LimeGo.node.js +0 -123
- package/dist/nodes/LimeGo/LimeGo.node.js.map +0 -1
- package/dist/nodes/LimeGo/actions/organization/get.operation.d.ts +0 -5
- package/dist/nodes/LimeGo/actions/organization/get.operation.js +0 -39
- package/dist/nodes/LimeGo/actions/organization/get.operation.js.map +0 -1
- package/dist/nodes/LimeGo/actions/organization/getByExternalKey.operation.d.ts +0 -5
- package/dist/nodes/LimeGo/actions/organization/getByExternalKey.operation.js +0 -54
- package/dist/nodes/LimeGo/actions/organization/getByExternalKey.operation.js.map +0 -1
- package/dist/nodes/LimeGo/actions/organization/index.d.ts +0 -7
- package/dist/nodes/LimeGo/actions/organization/index.js +0 -92
- package/dist/nodes/LimeGo/actions/organization/index.js.map +0 -1
- package/dist/nodes/LimeGo/actions/organization/organizationFields.d.ts +0 -2
- package/dist/nodes/LimeGo/actions/organization/organizationFields.js +0 -162
- package/dist/nodes/LimeGo/actions/organization/organizationFields.js.map +0 -1
- package/dist/nodes/LimeGo/actions/organization/search.operation.d.ts +0 -5
- package/dist/nodes/LimeGo/actions/organization/search.operation.js +0 -70
- package/dist/nodes/LimeGo/actions/organization/search.operation.js.map +0 -1
- package/dist/nodes/LimeGo/actions/organization/update.operation.d.ts +0 -5
- package/dist/nodes/LimeGo/actions/organization/update.operation.js +0 -125
- package/dist/nodes/LimeGo/actions/organization/update.operation.js.map +0 -1
- package/dist/nodes/LimeGo/actions/person/createMail.operation.d.ts +0 -7
- package/dist/nodes/LimeGo/actions/person/createMail.operation.js +0 -130
- package/dist/nodes/LimeGo/actions/person/createMail.operation.js.map +0 -1
- package/dist/nodes/LimeGo/actions/person/get.operation.d.ts +0 -7
- package/dist/nodes/LimeGo/actions/person/get.operation.js +0 -45
- package/dist/nodes/LimeGo/actions/person/get.operation.js.map +0 -1
- package/dist/nodes/LimeGo/actions/person/index.d.ts +0 -7
- package/dist/nodes/LimeGo/actions/person/index.js +0 -92
- package/dist/nodes/LimeGo/actions/person/index.js.map +0 -1
- package/dist/nodes/LimeGo/actions/person/personFields.d.ts +0 -2
- package/dist/nodes/LimeGo/actions/person/personFields.js +0 -134
- package/dist/nodes/LimeGo/actions/person/personFields.js.map +0 -1
- package/dist/nodes/LimeGo/actions/person/search.operation.d.ts +0 -7
- package/dist/nodes/LimeGo/actions/person/search.operation.js +0 -81
- package/dist/nodes/LimeGo/actions/person/search.operation.js.map +0 -1
- package/dist/nodes/LimeGo/actions/person/update.operation.d.ts +0 -7
- package/dist/nodes/LimeGo/actions/person/update.operation.js +0 -104
- package/dist/nodes/LimeGo/actions/person/update.operation.js.map +0 -1
- package/dist/nodes/LimeGo/lime-go.svg +0 -1
- package/dist/nodes/LimeGo/transport/graphqlRequest.d.ts +0 -2
- package/dist/nodes/LimeGo/transport/graphqlRequest.js +0 -23
- package/dist/nodes/LimeGo/transport/graphqlRequest.js.map +0 -1
- /package/dist/nodes/{LimeCrm → lime-crm/assets}/lime-crm.svg +0 -0
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const graphqlRequest_1 = require("../../transport/graphqlRequest");
|
|
5
|
-
const organizationFields_1 = require("./organizationFields");
|
|
6
|
-
exports.description = [
|
|
7
|
-
{
|
|
8
|
-
displayName: 'Organization ID',
|
|
9
|
-
name: 'id',
|
|
10
|
-
type: 'string',
|
|
11
|
-
default: '',
|
|
12
|
-
required: true,
|
|
13
|
-
displayOptions: {
|
|
14
|
-
show: {
|
|
15
|
-
resource: ['organization'],
|
|
16
|
-
operation: ['update'],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
description: 'The ID of the organization to update',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
displayName: 'Update Fields',
|
|
23
|
-
name: 'updateFields',
|
|
24
|
-
type: 'collection',
|
|
25
|
-
placeholder: 'Add Field',
|
|
26
|
-
default: {},
|
|
27
|
-
displayOptions: {
|
|
28
|
-
show: {
|
|
29
|
-
resource: ['organization'],
|
|
30
|
-
operation: ['update'],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
options: [
|
|
34
|
-
{
|
|
35
|
-
displayName: 'Customer Relation',
|
|
36
|
-
name: 'relation',
|
|
37
|
-
type: 'options',
|
|
38
|
-
options: [
|
|
39
|
-
{
|
|
40
|
-
name: 'Is a Customer',
|
|
41
|
-
value: 'IS_A_CUSTOMER',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'Is a Lead',
|
|
45
|
-
value: 'IS_A_LEAD',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: 'Is a Prospect',
|
|
49
|
-
value: 'IS_A_PROSPECT',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'Not Interested',
|
|
53
|
-
value: 'NOT_INTERESTED',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
default: 'IS_A_CUSTOMER',
|
|
57
|
-
description: 'Set the customer relation',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
displayName: 'Responsible Coworker Identifier',
|
|
61
|
-
name: 'responsibleCoworker',
|
|
62
|
-
type: 'string',
|
|
63
|
-
default: '',
|
|
64
|
-
description: 'Set the responsible coworker by their identifier',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
displayName: 'Tags to Add',
|
|
68
|
-
name: 'addTags',
|
|
69
|
-
type: 'string',
|
|
70
|
-
default: '',
|
|
71
|
-
description: 'Comma-separated list of tags to add',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
displayName: 'External Key Name',
|
|
75
|
-
name: 'externalKeyName',
|
|
76
|
-
type: 'string',
|
|
77
|
-
default: '',
|
|
78
|
-
description: 'Name of the external key field',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
displayName: 'External Key Value',
|
|
82
|
-
name: 'externalKeyValue',
|
|
83
|
-
type: 'string',
|
|
84
|
-
default: '',
|
|
85
|
-
description: 'Value of the external key',
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
...organizationFields_1.organizationFields,
|
|
90
|
-
];
|
|
91
|
-
async function execute({ i }) {
|
|
92
|
-
const id = this.getNodeParameter('id', i);
|
|
93
|
-
const updateFields = this.getNodeParameter('updateFields', i);
|
|
94
|
-
const returnFields = this.getNodeParameter('returnFields', i);
|
|
95
|
-
const fieldsToReturn = returnFields.join('\n');
|
|
96
|
-
const input = { id };
|
|
97
|
-
if (updateFields.relation) {
|
|
98
|
-
input.relation = updateFields.relation;
|
|
99
|
-
}
|
|
100
|
-
if (updateFields.responsibleCoworker) {
|
|
101
|
-
input.responsibleCoworker = { identifier: updateFields.responsibleCoworker };
|
|
102
|
-
}
|
|
103
|
-
if (updateFields.addTags) {
|
|
104
|
-
const tagList = updateFields.addTags.split(',').map(tag => tag.trim());
|
|
105
|
-
input.tags = { addTags: tagList };
|
|
106
|
-
}
|
|
107
|
-
if (updateFields.externalKeyName && updateFields.externalKeyValue) {
|
|
108
|
-
input.externalKey = {
|
|
109
|
-
name: updateFields.externalKeyName,
|
|
110
|
-
value: updateFields.externalKeyValue,
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
const query = `
|
|
114
|
-
mutation ($input: UpdateOrganizationInput!) {
|
|
115
|
-
updateOrganization(input: $input) {
|
|
116
|
-
${fieldsToReturn}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
`;
|
|
120
|
-
const variables = { input };
|
|
121
|
-
const responseData = await graphqlRequest_1.graphqlRequest.call(this, query, variables);
|
|
122
|
-
return responseData.updateOrganization;
|
|
123
|
-
}
|
|
124
|
-
exports.execute = execute;
|
|
125
|
-
//# sourceMappingURL=update.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/LimeGo/actions/organization/update.operation.ts"],"names":[],"mappings":";;;AACA,mEAAgE;AAChE,6DAA0D;AAE7C,QAAA,WAAW,GAAsB;IAC1C;QACI,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;QACD,WAAW,EAAE,sCAAsC;KACtD;IACD;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACxB;SACJ;QACD,OAAO,EAAE;YACL;gBACI,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,eAA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C,IAAI,CAAC,IAAI,CAAC,CAAC;IAG/C,MAAM,KAAK,GAAwB,EAAE,EAAE,EAAE,CAAC;IAE1C,IAAI,YAAY,CAAC,QAAQ,EAAE;QACvB,KAAK,CAAC,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;KAC1C;IAED,IAAI,YAAY,CAAC,mBAAmB,EAAE;QAClC,KAAK,CAAC,mBAAmB,GAAG,EAAE,UAAU,EAAE,YAAY,CAAC,mBAAmB,EAAE,CAAC;KAChF;IAED,IAAI,YAAY,CAAC,OAAO,EAAE;QACtB,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACvE,KAAK,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;KACrC;IAED,IAAI,YAAY,CAAC,eAAe,IAAI,YAAY,CAAC,gBAAgB,EAAE;QAC/D,KAAK,CAAC,WAAW,GAAG;YAChB,IAAI,EAAE,YAAY,CAAC,eAAe;YAClC,KAAK,EAAE,YAAY,CAAC,gBAAgB;SACvC,CAAC;KACL;IAED,MAAM,KAAK,GAAG;;;MAGZ,cAAc;;;EAGlB,CAAC;IAEC,MAAM,SAAS,GAAG,EAAE,KAAK,EAAE,CAAC;IAC5B,MAAM,YAAY,GAAG,MAAM,+BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAEvE,OAAO,YAAY,CAAC,kBAAkB,CAAC;AAC3C,CAAC;AAjDD,0BAiDC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: INodeProperties[];
|
|
3
|
-
export declare function execute(this: IExecuteFunctions, { i }: {
|
|
4
|
-
i: number;
|
|
5
|
-
}): Promise<any>;
|
|
6
|
-
declare const _default: {};
|
|
7
|
-
export default _default;
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const graphqlRequest_1 = require("../../transport/graphqlRequest");
|
|
5
|
-
exports.description = [
|
|
6
|
-
{
|
|
7
|
-
displayName: 'Email Subject',
|
|
8
|
-
name: 'subject',
|
|
9
|
-
type: 'string',
|
|
10
|
-
default: '',
|
|
11
|
-
required: true,
|
|
12
|
-
description: 'Subject of the email',
|
|
13
|
-
displayOptions: {
|
|
14
|
-
show: {
|
|
15
|
-
resource: ['person'],
|
|
16
|
-
operation: ['createMail'],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
displayName: 'Email Body',
|
|
22
|
-
name: 'body',
|
|
23
|
-
type: 'string',
|
|
24
|
-
typeOptions: {
|
|
25
|
-
rows: 4,
|
|
26
|
-
},
|
|
27
|
-
default: '',
|
|
28
|
-
required: true,
|
|
29
|
-
description: 'Body content of the email',
|
|
30
|
-
displayOptions: {
|
|
31
|
-
show: {
|
|
32
|
-
resource: ['person'],
|
|
33
|
-
operation: ['createMail'],
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
displayName: 'Person Details',
|
|
39
|
-
name: 'personDetails',
|
|
40
|
-
type: 'collection',
|
|
41
|
-
placeholder: 'Add Person Details',
|
|
42
|
-
default: {},
|
|
43
|
-
options: [
|
|
44
|
-
{
|
|
45
|
-
displayName: 'First Name',
|
|
46
|
-
name: 'firstName',
|
|
47
|
-
type: 'string',
|
|
48
|
-
default: '',
|
|
49
|
-
description: 'First name of the person',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
displayName: 'Last Name',
|
|
53
|
-
name: 'lastName',
|
|
54
|
-
type: 'string',
|
|
55
|
-
default: '',
|
|
56
|
-
description: 'Last name of the person',
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
required: true,
|
|
60
|
-
displayOptions: {
|
|
61
|
-
show: {
|
|
62
|
-
resource: ['person'],
|
|
63
|
-
operation: ['createMail'],
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
displayName: 'Organization Details',
|
|
69
|
-
name: 'organizationDetails',
|
|
70
|
-
type: 'collection',
|
|
71
|
-
placeholder: 'Add Organization Details',
|
|
72
|
-
default: {},
|
|
73
|
-
options: [
|
|
74
|
-
{
|
|
75
|
-
displayName: 'Name',
|
|
76
|
-
name: 'name',
|
|
77
|
-
type: 'string',
|
|
78
|
-
default: '',
|
|
79
|
-
description: 'Name of the organization',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
displayName: 'City',
|
|
83
|
-
name: 'city',
|
|
84
|
-
type: 'string',
|
|
85
|
-
default: '',
|
|
86
|
-
description: 'City of the organization',
|
|
87
|
-
},
|
|
88
|
-
],
|
|
89
|
-
required: true,
|
|
90
|
-
displayOptions: {
|
|
91
|
-
show: {
|
|
92
|
-
resource: ['person'],
|
|
93
|
-
operation: ['createMail'],
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
];
|
|
98
|
-
async function execute({ i }) {
|
|
99
|
-
const subject = this.getNodeParameter('subject', i);
|
|
100
|
-
const body = this.getNodeParameter('body', i);
|
|
101
|
-
const personDetails = this.getNodeParameter('personDetails', i);
|
|
102
|
-
const organizationDetails = this.getNodeParameter('organizationDetails', i);
|
|
103
|
-
const mutation = `
|
|
104
|
-
mutation ($input: CreateMailInput!) {
|
|
105
|
-
createMail(input: $input) {
|
|
106
|
-
mailId
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
`;
|
|
110
|
-
const input = {
|
|
111
|
-
email: {
|
|
112
|
-
subject,
|
|
113
|
-
body,
|
|
114
|
-
},
|
|
115
|
-
person: {
|
|
116
|
-
firstName: personDetails.firstName,
|
|
117
|
-
lastName: personDetails.lastName,
|
|
118
|
-
},
|
|
119
|
-
organization: {
|
|
120
|
-
name: organizationDetails.name,
|
|
121
|
-
city: organizationDetails.city,
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
const variables = { input };
|
|
125
|
-
const responseData = await graphqlRequest_1.graphqlRequest.call(this, mutation, variables);
|
|
126
|
-
return responseData.createMail;
|
|
127
|
-
}
|
|
128
|
-
exports.execute = execute;
|
|
129
|
-
exports.default = {};
|
|
130
|
-
//# sourceMappingURL=createMail.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createMail.operation.js","sourceRoot":"","sources":["../../../../../nodes/LimeGo/actions/person/createMail.operation.ts"],"names":[],"mappings":";;;AACA,mEAAgE;AAEnD,QAAA,WAAW,GAAsB;IAC1C;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,sBAAsB;QACnC,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,YAAY,CAAC;aAC5B;SACJ;KACJ;IACD;QACI,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACT,IAAI,EAAE,CAAC;SACV;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,2BAA2B;QACxC,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,YAAY,CAAC;aAC5B;SACJ;KACJ;IACD;QACI,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,oBAAoB;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AAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAW,CAAC;IACxD,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC,CAG7D,CAAC;IACF,MAAM,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,CAAC,CAGzE,CAAC;IAEF,MAAM,QAAQ,GAAG;;;;;;EAMnB,CAAC;IAEC,MAAM,KAAK,GAAG;QACV,KAAK,EAAE;YACH,OAAO;YACP,IAAI;SACP;QACD,MAAM,EAAE;YACJ,SAAS,EAAE,aAAa,CAAC,SAAS;YAClC,QAAQ,EAAE,aAAa,CAAC,QAAQ;SACnC;QACD,YAAY,EAAE;YACV,IAAI,EAAE,mBAAmB,CAAC,IAAI;YAC9B,IAAI,EAAE,mBAAmB,CAAC,IAAI;SACjC;KACJ,CAAC;IAEF,MAAM,SAAS,GAAG,EAAE,KAAK,EAAE,CAAC;IAC5B,MAAM,YAAY,GAAG,MAAM,+BAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAE1E,OAAO,YAAY,CAAC,UAAU,CAAC;AACnC,CAAC;AAvCD,0BAuCC;AAGD,kBAAe,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: INodeProperties[];
|
|
3
|
-
export declare function execute(this: IExecuteFunctions, { i }: {
|
|
4
|
-
i: number;
|
|
5
|
-
}): Promise<any>;
|
|
6
|
-
declare const _default: {};
|
|
7
|
-
export default _default;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const graphqlRequest_1 = require("../../transport/graphqlRequest");
|
|
5
|
-
const personFields_1 = require("./personFields");
|
|
6
|
-
exports.description = [
|
|
7
|
-
{
|
|
8
|
-
displayName: 'Person ID',
|
|
9
|
-
name: 'id',
|
|
10
|
-
type: 'string',
|
|
11
|
-
default: '',
|
|
12
|
-
required: true,
|
|
13
|
-
displayOptions: {
|
|
14
|
-
show: {
|
|
15
|
-
resource: ['person'],
|
|
16
|
-
operation: ['get'],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
description: 'The ID of the person to retrieve',
|
|
20
|
-
},
|
|
21
|
-
...personFields_1.personFields,
|
|
22
|
-
];
|
|
23
|
-
async function execute({ i }) {
|
|
24
|
-
const id = this.getNodeParameter('id', i);
|
|
25
|
-
const returnFields = this.getNodeParameter('returnFields', i);
|
|
26
|
-
const includeEmployer = this.getNodeParameter('includeEmployer', i);
|
|
27
|
-
let fieldsToReturn = [...returnFields];
|
|
28
|
-
if (includeEmployer) {
|
|
29
|
-
const employerFields = this.getNodeParameter('employerFields', i);
|
|
30
|
-
fieldsToReturn.push(`employer { ${employerFields.join(' ')} }`);
|
|
31
|
-
}
|
|
32
|
-
const query = `
|
|
33
|
-
query ($id: ID!) {
|
|
34
|
-
person(id: $id) {
|
|
35
|
-
${fieldsToReturn.join('\n')}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
const variables = { id };
|
|
40
|
-
const responseData = await graphqlRequest_1.graphqlRequest.call(this, query, variables);
|
|
41
|
-
return responseData.person;
|
|
42
|
-
}
|
|
43
|
-
exports.execute = execute;
|
|
44
|
-
exports.default = {};
|
|
45
|
-
//# sourceMappingURL=get.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/LimeGo/actions/person/get.operation.ts"],"names":[],"mappings":";;;AACA,mEAAgE;AAChE,iDAA8C;AAEjC,QAAA,WAAW,GAAsB;IAC1C;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,OAAO,E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 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.person = void 0;
|
|
27
|
-
const get = __importStar(require("./get.operation"));
|
|
28
|
-
const search = __importStar(require("./search.operation"));
|
|
29
|
-
const update = __importStar(require("./update.operation"));
|
|
30
|
-
const createMail = __importStar(require("./createMail.operation"));
|
|
31
|
-
exports.person = {
|
|
32
|
-
description: [
|
|
33
|
-
{
|
|
34
|
-
displayName: 'Operation',
|
|
35
|
-
name: 'operation',
|
|
36
|
-
type: 'options',
|
|
37
|
-
noDataExpression: true,
|
|
38
|
-
displayOptions: {
|
|
39
|
-
show: {
|
|
40
|
-
resource: ['person'],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
options: [
|
|
44
|
-
{
|
|
45
|
-
name: 'Get',
|
|
46
|
-
value: 'get',
|
|
47
|
-
description: 'Get a specific person by ID',
|
|
48
|
-
action: 'Get a person by ID',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'Search',
|
|
52
|
-
value: 'search',
|
|
53
|
-
description: 'Search for persons',
|
|
54
|
-
action: 'Search persons',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'Update',
|
|
58
|
-
value: 'update',
|
|
59
|
-
description: 'Update a person',
|
|
60
|
-
action: 'Update a person',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'Create Mail',
|
|
64
|
-
value: 'createMail',
|
|
65
|
-
description: 'Add an email as a note',
|
|
66
|
-
action: 'Create mail note',
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
default: 'get',
|
|
70
|
-
},
|
|
71
|
-
...get.description,
|
|
72
|
-
...search.description,
|
|
73
|
-
...update.description,
|
|
74
|
-
...createMail.description,
|
|
75
|
-
],
|
|
76
|
-
execute: async function ({ i }) {
|
|
77
|
-
const operation = this.getNodeParameter('operation', i);
|
|
78
|
-
switch (operation) {
|
|
79
|
-
case 'get':
|
|
80
|
-
return await get.execute.call(this, { i });
|
|
81
|
-
case 'search':
|
|
82
|
-
return await search.execute.call(this, { i });
|
|
83
|
-
case 'update':
|
|
84
|
-
return await update.execute.call(this, { i });
|
|
85
|
-
case 'createMail':
|
|
86
|
-
return await createMail.execute.call(this, { i });
|
|
87
|
-
default:
|
|
88
|
-
throw new Error(`The operation "${operation}" is not supported!`);
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/LimeGo/actions/person/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAuC;AACvC,2DAA6C;AAC7C,2DAA6C;AAC7C,mEAAqD;AAExC,QAAA,MAAM,GAAG;IAClB,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AC,CAAC;YAClD,KAAK,QAAQ;gBACT,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;YAClD,KAAK,YAAY;gBACb,OAAO,MAAM,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;YACtD;gBACI,MAAM,IAAI,KAAK,CAAC,kBAAkB,SAAS,qBAAqB,CAAC,CAAC;SACzE;IACL,CAAC;CACJ,CAAC"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.personFields = void 0;
|
|
4
|
-
exports.personFields = [
|
|
5
|
-
{
|
|
6
|
-
displayName: 'Return Fields',
|
|
7
|
-
name: 'returnFields',
|
|
8
|
-
type: 'multiOptions',
|
|
9
|
-
options: [
|
|
10
|
-
{
|
|
11
|
-
name: 'ID',
|
|
12
|
-
value: 'id',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
name: 'Name',
|
|
16
|
-
value: 'name',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'Email',
|
|
20
|
-
value: 'email',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'Phone Number',
|
|
24
|
-
value: 'phoneNumber',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: 'Employer Name',
|
|
28
|
-
value: 'employerName',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: 'Position',
|
|
32
|
-
value: 'position',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'Tags',
|
|
36
|
-
value: 'tags',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'Currently Employed',
|
|
40
|
-
value: 'currentlyEmployed',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'Email Consent',
|
|
44
|
-
value: 'emailConsent',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: 'Custom Fields',
|
|
48
|
-
value: 'customFields { title type value }',
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
default: ['id', 'name', 'email'],
|
|
52
|
-
description: 'The fields to return',
|
|
53
|
-
displayOptions: {
|
|
54
|
-
show: {
|
|
55
|
-
resource: ['person'],
|
|
56
|
-
operation: ['get', 'search', 'update'],
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
displayName: 'Include Employer Details',
|
|
62
|
-
name: 'includeEmployer',
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
default: false,
|
|
65
|
-
description: 'Whether to include detailed employer information',
|
|
66
|
-
displayOptions: {
|
|
67
|
-
show: {
|
|
68
|
-
resource: ['person'],
|
|
69
|
-
operation: ['get', 'search'],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
displayName: 'Employer Fields',
|
|
75
|
-
name: 'employerFields',
|
|
76
|
-
type: 'multiOptions',
|
|
77
|
-
options: [
|
|
78
|
-
{
|
|
79
|
-
name: 'ID',
|
|
80
|
-
value: 'id',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
name: 'Name',
|
|
84
|
-
value: 'name',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'City',
|
|
88
|
-
value: 'city',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'Email',
|
|
92
|
-
value: 'email',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: 'Phone Number',
|
|
96
|
-
value: 'phoneNumber',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'Organization Number',
|
|
100
|
-
value: 'organizationNumber',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'Tags',
|
|
104
|
-
value: 'tags',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: 'Temperature',
|
|
108
|
-
value: 'temperature',
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'Customer Relation',
|
|
112
|
-
value: 'customerRelation',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'Responsible Coworker',
|
|
116
|
-
value: 'responsibleCoworker { id name email phoneNumber }',
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'Custom Fields',
|
|
120
|
-
value: 'customFields { title type value }',
|
|
121
|
-
},
|
|
122
|
-
],
|
|
123
|
-
default: ['id', 'name'],
|
|
124
|
-
description: 'The employer fields to return',
|
|
125
|
-
displayOptions: {
|
|
126
|
-
show: {
|
|
127
|
-
resource: ['person'],
|
|
128
|
-
operation: ['get', 'search'],
|
|
129
|
-
includeEmployer: [true],
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
];
|
|
134
|
-
//# sourceMappingURL=personFields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"personFields.js","sourceRoot":"","sources":["../../../../../nodes/LimeGo/actions/person/personFields.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC3C;QACI,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,IAAI;aACd;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aAChB;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;aACjB;YACD;gBACI,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;aACvB;YACD;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,cAAc;aACxB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;aACpB;YACD;gBACI,IAAI,EA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AI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aAChB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,aAAa;aACvB;YACD;gBACI,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,kBAAkB;aAC5B;YACD;gBACI,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,mDAAmD;aAC7D;YACD;gBACI,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,mCAAmC;aAC7C;SACJ;QACD,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;QACvB,WAAW,EAAE,+BAA+B;QAC5C,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC;gBAC5B,eAAe,EAAE,CAAC,IAAI,CAAC;aAC1B;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: INodeProperties[];
|
|
3
|
-
export declare function execute(this: IExecuteFunctions, { i }: {
|
|
4
|
-
i: number;
|
|
5
|
-
}): Promise<any>;
|
|
6
|
-
declare const _default: {};
|
|
7
|
-
export default _default;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.execute = exports.description = void 0;
|
|
4
|
-
const graphqlRequest_1 = require("../../transport/graphqlRequest");
|
|
5
|
-
const personFields_1 = require("./personFields");
|
|
6
|
-
exports.description = [
|
|
7
|
-
{
|
|
8
|
-
displayName: 'Search Query',
|
|
9
|
-
name: 'query',
|
|
10
|
-
type: 'string',
|
|
11
|
-
default: '',
|
|
12
|
-
placeholder: 'anna.johansson@lundalogik.se',
|
|
13
|
-
description: 'Searches in person name, email, or employer name',
|
|
14
|
-
displayOptions: {
|
|
15
|
-
show: {
|
|
16
|
-
resource: ['person'],
|
|
17
|
-
operation: ['search'],
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
displayName: 'Limit',
|
|
23
|
-
name: 'limit',
|
|
24
|
-
type: 'number',
|
|
25
|
-
default: 10,
|
|
26
|
-
description: 'Max number of results to return (max: 20)',
|
|
27
|
-
typeOptions: {
|
|
28
|
-
minValue: 1,
|
|
29
|
-
maxValue: 20,
|
|
30
|
-
},
|
|
31
|
-
displayOptions: {
|
|
32
|
-
show: {
|
|
33
|
-
resource: ['person'],
|
|
34
|
-
operation: ['search'],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
displayName: 'Offset',
|
|
40
|
-
name: 'offset',
|
|
41
|
-
type: 'number',
|
|
42
|
-
default: 0,
|
|
43
|
-
description: 'Number of results to skip',
|
|
44
|
-
displayOptions: {
|
|
45
|
-
show: {
|
|
46
|
-
resource: ['person'],
|
|
47
|
-
operation: ['search'],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
...personFields_1.personFields,
|
|
52
|
-
];
|
|
53
|
-
async function execute({ i }) {
|
|
54
|
-
const query = this.getNodeParameter('query', i);
|
|
55
|
-
const limit = this.getNodeParameter('limit', i);
|
|
56
|
-
const offset = this.getNodeParameter('offset', i);
|
|
57
|
-
const returnFields = this.getNodeParameter('returnFields', i);
|
|
58
|
-
const includeEmployer = this.getNodeParameter('includeEmployer', i);
|
|
59
|
-
let fieldsToReturn = [...returnFields];
|
|
60
|
-
if (includeEmployer) {
|
|
61
|
-
const employerFields = this.getNodeParameter('employerFields', i);
|
|
62
|
-
fieldsToReturn.push(`employer { ${employerFields.join(' ')} }`);
|
|
63
|
-
}
|
|
64
|
-
const graphqlQuery = `
|
|
65
|
-
query ($query: String, $first: Int!, $offset: Int!) {
|
|
66
|
-
persons(query: $query, first: $first, offset: $offset) {
|
|
67
|
-
${fieldsToReturn.join('\n')}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
`;
|
|
71
|
-
const variables = {
|
|
72
|
-
query,
|
|
73
|
-
first: limit,
|
|
74
|
-
offset,
|
|
75
|
-
};
|
|
76
|
-
const responseData = await graphqlRequest_1.graphqlRequest.call(this, graphqlQuery, variables);
|
|
77
|
-
return responseData.persons;
|
|
78
|
-
}
|
|
79
|
-
exports.execute = execute;
|
|
80
|
-
exports.default = {};
|
|
81
|
-
//# sourceMappingURL=search.operation.js.map
|