@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,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLimeTypeRelations = void 0;
|
|
4
|
-
const transport_1 = require("../transport");
|
|
5
|
-
async function getLimeTypeRelations() {
|
|
6
|
-
const limeType = this.getNodeParameter('limetype', '');
|
|
7
|
-
if (!limeType)
|
|
8
|
-
return [];
|
|
9
|
-
try {
|
|
10
|
-
const response = await transport_1.apiRequest.call(this, {
|
|
11
|
-
method: 'GET',
|
|
12
|
-
endpoint: `/api/v1/limetype/${limeType}/`,
|
|
13
|
-
});
|
|
14
|
-
if (!response || !Array.isArray(response)) {
|
|
15
|
-
return [];
|
|
16
|
-
}
|
|
17
|
-
return response.map((relation) => ({
|
|
18
|
-
name: relation.name,
|
|
19
|
-
value: relation.name,
|
|
20
|
-
description: `Target: ${relation.targettype}`,
|
|
21
|
-
}));
|
|
22
|
-
}
|
|
23
|
-
catch (error) {
|
|
24
|
-
console.error(`Error loading relations for ${limeType}:`, error);
|
|
25
|
-
return [];
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.getLimeTypeRelations = getLimeTypeRelations;
|
|
29
|
-
exports.default = getLimeTypeRelations;
|
|
30
|
-
//# sourceMappingURL=getLimeTypeRelations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLimeTypeRelations.js","sourceRoot":"","sources":["../../../../nodes/LimeCrm/methods/getLimeTypeRelations.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAKnC,KAAK,UAAU,oBAAoB;IACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,CAAW,CAAC;IACjE,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,IAAI;QACA,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE;YACzC,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,oBAAoB,QAAQ,GAAG;SAC5C,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YACvC,OAAO,EAAE,CAAC;SACb;QAED,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,QAAqB,EAAE,EAAE,CAAC,CAAC;YAC5C,IAAI,EAAE,QAAQ,CAAC,IAAc;YAC7B,KAAK,EAAE,QAAQ,CAAC,IAAc;YAC9B,WAAW,EAAE,WAAW,QAAQ,CAAC,UAAU,EAAE;SAChD,CAAC,CAAC,CAAC;KACP;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,+BAA+B,QAAQ,GAAG,EAAE,KAAK,CAAC,CAAC;QACjE,OAAO,EAAE,CAAC;KACb;AACL,CAAC;AAvBD,oDAuBC;AAED,kBAAe,oBAAoB,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLimeTypes = void 0;
|
|
4
|
-
const transport_1 = require("../transport");
|
|
5
|
-
async function getLimeTypes() {
|
|
6
|
-
try {
|
|
7
|
-
const response = await transport_1.apiRequest.call(this, {
|
|
8
|
-
method: 'GET',
|
|
9
|
-
endpoint: '/api/v1/limetype/',
|
|
10
|
-
qs: {
|
|
11
|
-
_embed: 'limetypes',
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
if (response && response._embedded && Array.isArray(response._embedded.limetypes)) {
|
|
15
|
-
return response._embedded.limetypes.map((type) => {
|
|
16
|
-
var _a;
|
|
17
|
-
return ({
|
|
18
|
-
name: ((_a = type.localname) === null || _a === void 0 ? void 0 : _a.singular) || type.name,
|
|
19
|
-
value: type.name,
|
|
20
|
-
description: `LimeType: ${type.name}`,
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return [];
|
|
25
|
-
}
|
|
26
|
-
catch (error) {
|
|
27
|
-
console.error('Error loading Lime types:', error);
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.getLimeTypes = getLimeTypes;
|
|
32
|
-
exports.default = getLimeTypes;
|
|
33
|
-
//# sourceMappingURL=getLimeTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLimeTypes.js","sourceRoot":"","sources":["../../../../nodes/LimeCrm/methods/getLimeTypes.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAKnC,KAAK,UAAU,YAAY;IAC9B,IAAI;QACA,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE;YACzC,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,mBAAmB;YAC7B,EAAE,EAAE;gBACA,MAAM,EAAE,WAAW;aACtB;SACJ,CAAC,CAAC;QAGH,IAAI,QAAQ,IAAI,QAAQ,CAAC,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE;YAC/E,OAAO,QAAQ,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE;;gBAAC,OAAA,CAAC;oBACpD,IAAI,EAAE,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,QAAQ,KAAI,IAAI,CAAC,IAAI;oBAC3C,KAAK,EAAE,IAAI,CAAC,IAAI;oBAChB,WAAW,EAAE,aAAa,IAAI,CAAC,IAAI,EAAE;iBACxC,CAAC,CAAA;aAAA,CAAC,CAAC;SACP;QAED,OAAO,EAAE,CAAC;KACb;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;QAClD,OAAO,EAAE,CAAC;KACb;AACL,CAAC;AAxBD,oCAwBC;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRelatedTypeProperties = void 0;
|
|
4
|
-
const transport_1 = require("../transport");
|
|
5
|
-
async function getRelatedTypeProperties() {
|
|
6
|
-
const limeType = this.getNodeParameter('limetype', '');
|
|
7
|
-
const relationName = this.getNodeParameter('relationsConfig.relation[].relationName', '');
|
|
8
|
-
if (!limeType || !relationName)
|
|
9
|
-
return [];
|
|
10
|
-
try {
|
|
11
|
-
const relationsResponse = await transport_1.apiRequest.call(this, {
|
|
12
|
-
method: 'GET',
|
|
13
|
-
endpoint: `/api/v1/limetype/${limeType}/relation/${relationName}`,
|
|
14
|
-
});
|
|
15
|
-
if (!relationsResponse || !relationsResponse.targettype) {
|
|
16
|
-
return [];
|
|
17
|
-
}
|
|
18
|
-
const targetType = relationsResponse.targettype;
|
|
19
|
-
const propertiesResponse = await transport_1.apiRequest.call(this, {
|
|
20
|
-
method: 'GET',
|
|
21
|
-
endpoint: `/api/v1/limetype/${targetType}/`,
|
|
22
|
-
});
|
|
23
|
-
if (!propertiesResponse || !Array.isArray(propertiesResponse)) {
|
|
24
|
-
return [];
|
|
25
|
-
}
|
|
26
|
-
return propertiesResponse.map((property) => ({
|
|
27
|
-
name: property.name,
|
|
28
|
-
value: property.name,
|
|
29
|
-
description: property.description || '',
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
catch (error) {
|
|
33
|
-
console.error(`Error loading related properties for ${limeType}.${relationName}:`, error);
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.getRelatedTypeProperties = getRelatedTypeProperties;
|
|
38
|
-
exports.default = getRelatedTypeProperties;
|
|
39
|
-
//# sourceMappingURL=getRelatedTypeProperties.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRelatedTypeProperties.js","sourceRoot":"","sources":["../../../../nodes/LimeCrm/methods/getRelatedTypeProperties.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAKnC,KAAK,UAAU,wBAAwB;IAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,C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LimeTypes';
|
|
2
|
-
export { getLimeTypeProperties } from './getLimeTypeProperties';
|
|
3
|
-
export { getLimeTypeRelations } from './getLimeTypeRelations';
|
|
4
|
-
export { getRelatedTypeProperties } from './getRelatedTypeProperties';
|
|
5
|
-
export { getAllSortableFields } from './getAllSortableFields';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAllSortableFields = exports.getRelatedTypeProperties = exports.getLimeTypeRelations = exports.getLimeTypeProperties = exports.getLimeTypes = void 0;
|
|
4
|
-
var getLimeTypes_1 = require("./getLimeTypes");
|
|
5
|
-
Object.defineProperty(exports, "getLimeTypes", { enumerable: true, get: function () { return getLimeTypes_1.getLimeTypes; } });
|
|
6
|
-
var getLimeTypeProperties_1 = require("./getLimeTypeProperties");
|
|
7
|
-
Object.defineProperty(exports, "getLimeTypeProperties", { enumerable: true, get: function () { return getLimeTypeProperties_1.getLimeTypeProperties; } });
|
|
8
|
-
var getLimeTypeRelations_1 = require("./getLimeTypeRelations");
|
|
9
|
-
Object.defineProperty(exports, "getLimeTypeRelations", { enumerable: true, get: function () { return getLimeTypeRelations_1.getLimeTypeRelations; } });
|
|
10
|
-
var getRelatedTypeProperties_1 = require("./getRelatedTypeProperties");
|
|
11
|
-
Object.defineProperty(exports, "getRelatedTypeProperties", { enumerable: true, get: function () { return getRelatedTypeProperties_1.getRelatedTypeProperties; } });
|
|
12
|
-
var getAllSortableFields_1 = require("./getAllSortableFields");
|
|
13
|
-
Object.defineProperty(exports, "getAllSortableFields", { enumerable: true, get: function () { return getAllSortableFields_1.getAllSortableFields; } });
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/LimeCrm/methods/index.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA"}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonOptionsFields = exports.relationInputFields = exports.propertyInputFields = void 0;
|
|
4
|
-
exports.propertyInputFields = [
|
|
5
|
-
{
|
|
6
|
-
displayName: 'Properties',
|
|
7
|
-
name: 'properties',
|
|
8
|
-
type: 'fixedCollection',
|
|
9
|
-
placeholder: 'Add Property',
|
|
10
|
-
typeOptions: {
|
|
11
|
-
multipleValues: true,
|
|
12
|
-
sortable: true,
|
|
13
|
-
},
|
|
14
|
-
default: {},
|
|
15
|
-
options: [
|
|
16
|
-
{
|
|
17
|
-
name: 'property',
|
|
18
|
-
displayName: 'Property',
|
|
19
|
-
values: [
|
|
20
|
-
{
|
|
21
|
-
displayName: 'Property Name',
|
|
22
|
-
name: 'name',
|
|
23
|
-
type: 'options',
|
|
24
|
-
typeOptions: {
|
|
25
|
-
loadOptionsMethod: 'getLimeTypeProperties',
|
|
26
|
-
loadOptionsDependsOn: ['limeType'],
|
|
27
|
-
},
|
|
28
|
-
default: '',
|
|
29
|
-
description: 'Name of the property to set',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
displayName: 'Property Value',
|
|
33
|
-
name: 'value',
|
|
34
|
-
type: 'string',
|
|
35
|
-
default: '',
|
|
36
|
-
description: 'Value of the property',
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
description: 'Properties to set on the Lime CRM object',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
displayName: 'Property Mappings',
|
|
45
|
-
name: 'propertyMappings',
|
|
46
|
-
placeholder: 'Add Property Mapping',
|
|
47
|
-
type: 'fixedCollection',
|
|
48
|
-
typeOptions: {
|
|
49
|
-
multipleValues: true,
|
|
50
|
-
sortable: true,
|
|
51
|
-
},
|
|
52
|
-
default: {},
|
|
53
|
-
options: [
|
|
54
|
-
{
|
|
55
|
-
name: 'mapping',
|
|
56
|
-
displayName: 'Property Mapping',
|
|
57
|
-
values: [
|
|
58
|
-
{
|
|
59
|
-
displayName: 'Lime CRM Property',
|
|
60
|
-
name: 'limeProperty',
|
|
61
|
-
type: 'options',
|
|
62
|
-
typeOptions: {
|
|
63
|
-
loadOptionsMethod: 'getLimeTypeProperties',
|
|
64
|
-
loadOptionsDependsOn: ['limeType'],
|
|
65
|
-
},
|
|
66
|
-
default: '',
|
|
67
|
-
description: 'The Lime CRM property to map to',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
displayName: 'Source Value',
|
|
71
|
-
name: 'sourceValue',
|
|
72
|
-
type: 'string',
|
|
73
|
-
default: '',
|
|
74
|
-
description: 'The value to map (can use expressions like {{ $json.fieldName }})',
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
description: 'Map input data to Lime CRM properties using expressions',
|
|
80
|
-
},
|
|
81
|
-
];
|
|
82
|
-
exports.relationInputFields = [
|
|
83
|
-
{
|
|
84
|
-
displayName: 'Include Relations',
|
|
85
|
-
name: 'includeRelations',
|
|
86
|
-
type: 'boolean',
|
|
87
|
-
default: false,
|
|
88
|
-
description: 'Whether to include related objects',
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
displayName: 'Relation Configuration',
|
|
92
|
-
name: 'relationsConfig',
|
|
93
|
-
type: 'fixedCollection',
|
|
94
|
-
placeholder: 'Add Relation',
|
|
95
|
-
default: {},
|
|
96
|
-
typeOptions: {
|
|
97
|
-
multipleValues: true,
|
|
98
|
-
},
|
|
99
|
-
displayOptions: {
|
|
100
|
-
show: {
|
|
101
|
-
includeRelations: [true],
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
options: [
|
|
105
|
-
{
|
|
106
|
-
name: 'relations',
|
|
107
|
-
displayName: 'Relations',
|
|
108
|
-
values: [
|
|
109
|
-
{
|
|
110
|
-
displayName: 'Relation Name',
|
|
111
|
-
name: 'relationName',
|
|
112
|
-
type: 'options',
|
|
113
|
-
typeOptions: {
|
|
114
|
-
loadOptionsMethod: 'getLimeTypeRelations',
|
|
115
|
-
loadOptionsDependsOn: ['limeType'],
|
|
116
|
-
},
|
|
117
|
-
default: '',
|
|
118
|
-
description: 'Name of the relation to include',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
displayName: 'Properties to Include',
|
|
122
|
-
name: 'includeProperties',
|
|
123
|
-
type: 'multiOptions',
|
|
124
|
-
typeOptions: {
|
|
125
|
-
loadOptionsMethod: 'getRelatedTypeProperties',
|
|
126
|
-
loadOptionsDependsOn: ['limeType', 'relationName'],
|
|
127
|
-
},
|
|
128
|
-
default: [],
|
|
129
|
-
description: 'Properties to include from related objects',
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
},
|
|
133
|
-
],
|
|
134
|
-
description: 'Configure related objects to include',
|
|
135
|
-
},
|
|
136
|
-
];
|
|
137
|
-
exports.commonOptionsFields = [
|
|
138
|
-
{
|
|
139
|
-
displayName: 'Options',
|
|
140
|
-
name: 'options',
|
|
141
|
-
type: 'collection',
|
|
142
|
-
placeholder: 'Add Option',
|
|
143
|
-
default: {},
|
|
144
|
-
options: [
|
|
145
|
-
{
|
|
146
|
-
displayName: 'Raw Response',
|
|
147
|
-
name: 'rawResponse',
|
|
148
|
-
type: 'boolean',
|
|
149
|
-
default: false,
|
|
150
|
-
description: 'Whether to return the raw API response instead of parsed data',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
displayName: 'Additional Parameters',
|
|
154
|
-
name: 'additionalParameters',
|
|
155
|
-
type: 'json',
|
|
156
|
-
default: '{}',
|
|
157
|
-
description: 'Additional parameters to include in the request',
|
|
158
|
-
typeOptions: {
|
|
159
|
-
alwaysOpenEditWindow: true,
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
},
|
|
164
|
-
];
|
|
165
|
-
//# sourceMappingURL=commonFields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commonFields.js","sourceRoot":"","sources":["../../../../../nodes/LimeCrm/resources/limeObject/commonFields.ts"],"names":[],"mappings":";;;AAMa,QAAA,mBAAmB,GAAsB;IAElD;QACI,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE;YACT,cAAc,EAAE,IAAI;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACL;gBACI,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,UAAU;gBACvB,MAAM,EAAE;oBACJ;wBACI,WAAW,EAAE,eAAe;wBAC5B,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE;4BACT,iBAAiB,EAAE,uBAAuB;4BAC1C,oBAAoB,EAAE,CAAC,UAAU,CAAC;yBACrC;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,6BAA6B;qBAC7C;oBACD;wBACI,WAAW,EAAE,gBAAgB;wBAC7B,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,uBAAuB;qBACvC;iBACJ;aACJ;SACJ;QACD,WAAW,EAAE,0CAA0C;KAC1D;IAGD;QACI,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACT,cAAc,EAAE,IAAI;YACpB,QAAQ,EAAE,IAAI;SACjB;QACD,OAAO,EAAE,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C;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,iCAAiC;qBACjD;oBACD;wBACI,WAAW,EAAE,uBAAuB;wBACpC,IAAI,EAAE,mBAAmB;wBACzB,IAAI,EAAE,cAAc;wBACpB,WAAW,EAAE;4BACT,iBAAiB,EAAE,0BAA0B;4BAC7C,oBAAoB,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC;yBACrD;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,4CAA4C;qBAC5D;iBACJ;aACJ;SACJ;QACD,WAAW,EAAE,sCAAsC;KACtD;CACJ,CAAC;AAKW,QAAA,mBAAmB,GAAsB;IAClD;QACI,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACL;gBACI,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,+DAA+D;aAC/E;YACD;gBACI,WAAW,EAAE,uBAAuB;gBACpC,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,iDAAiD;gBAC9D,WAAW,EAAE;oBACT,oBAAoB,EAAE,IAAI;iBAC7B;aACJ;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const limeObjectFields: INodeProperties[];
|
|
3
|
-
export declare function limeObjectOperations(this: IExecuteFunctions, { operation, i }: {
|
|
4
|
-
operation: string;
|
|
5
|
-
i: number;
|
|
6
|
-
}): Promise<any>;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = 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.limeObjectOperations = exports.limeObjectFields = void 0;
|
|
27
|
-
const create = __importStar(require("./operations/create.operation"));
|
|
28
|
-
const get = __importStar(require("./operations/get.operation"));
|
|
29
|
-
const update = __importStar(require("./operations/update.operation"));
|
|
30
|
-
const delete_ = __importStar(require("./operations/delete.operation"));
|
|
31
|
-
const search = __importStar(require("./operations/search.operation"));
|
|
32
|
-
exports.limeObjectFields = [
|
|
33
|
-
{
|
|
34
|
-
displayName: 'Operation',
|
|
35
|
-
name: 'operation',
|
|
36
|
-
type: 'options',
|
|
37
|
-
noDataExpression: true,
|
|
38
|
-
displayOptions: {
|
|
39
|
-
show: {
|
|
40
|
-
resource: [
|
|
41
|
-
'limeObject',
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
options: [
|
|
46
|
-
create.description,
|
|
47
|
-
get.description,
|
|
48
|
-
update.description,
|
|
49
|
-
delete_.description,
|
|
50
|
-
search.description,
|
|
51
|
-
],
|
|
52
|
-
default: 'search',
|
|
53
|
-
},
|
|
54
|
-
...create.properties,
|
|
55
|
-
...get.properties,
|
|
56
|
-
...update.properties,
|
|
57
|
-
...delete_.properties,
|
|
58
|
-
...search.properties,
|
|
59
|
-
];
|
|
60
|
-
async function limeObjectOperations({ operation, i }) {
|
|
61
|
-
if (operation === 'create') {
|
|
62
|
-
return await create.execute.call(this, i);
|
|
63
|
-
}
|
|
64
|
-
if (operation === 'get') {
|
|
65
|
-
return await get.execute.call(this, i);
|
|
66
|
-
}
|
|
67
|
-
if (operation === 'update') {
|
|
68
|
-
return await update.execute.call(this, i);
|
|
69
|
-
}
|
|
70
|
-
if (operation === 'delete') {
|
|
71
|
-
return await delete_.execute.call(this, i);
|
|
72
|
-
}
|
|
73
|
-
if (operation === 'search') {
|
|
74
|
-
return await search.execute.call(this, i);
|
|
75
|
-
}
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
exports.limeObjectOperations = limeObjectOperations;
|
|
79
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/LimeCrm/resources/limeObject/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sEAAwD;AACxD,gEAAkD;AAClD,sEAAwD;AACxD,uEAAyD;AACzD,sEAAwD;AAG3C,QAAA,gBAAgB,GAAsB;IAE/C;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAA8B;QACpC,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE;oBACN,YAA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
-
exports.commonOperations = [
|
|
5
|
-
{
|
|
6
|
-
displayName: 'Options',
|
|
7
|
-
name: 'options',
|
|
8
|
-
type: 'collection',
|
|
9
|
-
placeholder: 'Add Option',
|
|
10
|
-
default: {},
|
|
11
|
-
displayOptions: {
|
|
12
|
-
show: {
|
|
13
|
-
resource: [
|
|
14
|
-
'limeObject',
|
|
15
|
-
],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
options: [
|
|
19
|
-
{
|
|
20
|
-
displayName: 'Include Related Objects',
|
|
21
|
-
name: 'includeRelated',
|
|
22
|
-
type: 'boolean',
|
|
23
|
-
default: false,
|
|
24
|
-
description: 'Whether to include data from related objects',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
displayName: 'Raw Response',
|
|
28
|
-
name: 'rawResponse',
|
|
29
|
-
type: 'boolean',
|
|
30
|
-
default: false,
|
|
31
|
-
description: 'Whether to return the full API response instead of just the data',
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
];
|
|
36
|
-
//# sourceMappingURL=common.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.operation.js","sourceRoot":"","sources":["../../../../../../nodes/LimeCrm/resources/limeObject/operations/common.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAE/C;QACI,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE;oBACN,YAAY;iBACf;aACJ;SACJ;QACD,OAAO,EAAE;YACL;gBACI,WAAW,EAAE,yBAAyB;gBACtC,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,8CAA8C;aAC9D;YACD;gBACI,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,kEAAkE;aAClF;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
|
2
|
-
export declare const description: {
|
|
3
|
-
name: string;
|
|
4
|
-
value: string;
|
|
5
|
-
description: string;
|
|
6
|
-
action: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const properties: INodeProperties[];
|
|
9
|
-
export declare function execute(this: IExecuteFunctions, i: number): Promise<any>;
|