@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,81 +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.limeTypeOperations = exports.limeTypeFields = void 0;
|
|
27
|
-
const getType = __importStar(require("./operations/getType.operation"));
|
|
28
|
-
const listTypes = __importStar(require("./operations/listTypes.operation"));
|
|
29
|
-
const getProperties = __importStar(require("./operations/getProperties.operation"));
|
|
30
|
-
const getRelations = __importStar(require("./operations/getRelations.operation"));
|
|
31
|
-
exports.limeTypeFields = [
|
|
32
|
-
{
|
|
33
|
-
displayName: 'Operation',
|
|
34
|
-
name: 'operation',
|
|
35
|
-
type: 'options',
|
|
36
|
-
noDataExpression: true,
|
|
37
|
-
displayOptions: {
|
|
38
|
-
show: {
|
|
39
|
-
resource: [
|
|
40
|
-
'limeType',
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
options: [
|
|
45
|
-
{
|
|
46
|
-
...listTypes.description,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
...getType.description,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
...getProperties.description,
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
...getRelations.description,
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
default: 'listTypes',
|
|
59
|
-
},
|
|
60
|
-
...listTypes.properties,
|
|
61
|
-
...getType.properties,
|
|
62
|
-
...getProperties.properties,
|
|
63
|
-
...getRelations.properties,
|
|
64
|
-
];
|
|
65
|
-
async function limeTypeOperations({ operation, i }) {
|
|
66
|
-
if (operation === 'listTypes') {
|
|
67
|
-
return await listTypes.execute.call(this, i);
|
|
68
|
-
}
|
|
69
|
-
if (operation === 'getType') {
|
|
70
|
-
return await getType.execute.call(this, i);
|
|
71
|
-
}
|
|
72
|
-
if (operation === 'getProperties') {
|
|
73
|
-
return await getProperties.execute.call(this, i);
|
|
74
|
-
}
|
|
75
|
-
if (operation === 'getRelations') {
|
|
76
|
-
return await getRelations.execute.call(this, i);
|
|
77
|
-
}
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
exports.limeTypeOperations = limeTypeOperations;
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/LimeCrm/resources/limeType/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wEAA0D;AAC1D,4EAA8D;AAC9D,oFAAsE;AACtE,kFAAoE;AAGvD,QAAA,cAAc,GAAsB;IAE7C;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,UAAU;iBACb;aACJ;SACJ;QACD,OAAO,EAAE;YACL;gBACI,GAAG,SAAS,CAAC,WAAW;aAC3B;YACD;gBACI,GAAG,OAAO,CAAC,WAAW;aACzB;YACD;gBACI,GAAG,aAAa,CAAC,WAAW;aAC/B;YACD;gBACI,GAAG,YAAY,CAAC,WAAW;aAC9B;SACJ;QACD,OAAO,EAAE,WAAW;KACvB;IAGD,GAAG,SAAS,CAAC,UAAU;IACvB,GAAG,OAAO,CAAC,UAAU;IACrB,GAAG,aAAa,CAAC,UAAU;IAC3B,GAAG,YAAY,CAAC,UAAU;CAC7B,CAAC;AAGK,KAAK,UAAU,kBAAkB,CAEpC,EAAE,SAAS,EAAE,CAAC,EAAoC;IAElD,IAAI,SAAS,KAAK,WAAW,EAAE;QAC3B,OAAO,MAAM,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KAChD;IACD,IAAI,SAAS,KAAK,SAAS,EAAE;QACzB,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KAC9C;IACD,IAAI,SAAS,KAAK,eAAe,EAAE;QAC/B,OAAO,MAAM,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KACpD;IACD,IAAI,SAAS,KAAK,cAAc,EAAE;QAC9B,OAAO,MAAM,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KACnD;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAlBD,gDAkBC"}
|
|
@@ -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>;
|
|
@@ -1,112 +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.execute = exports.properties = exports.description = void 0;
|
|
27
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
28
|
-
exports.description = {
|
|
29
|
-
name: 'Get Properties',
|
|
30
|
-
value: 'getProperties',
|
|
31
|
-
description: 'Get all properties for a specific entity type',
|
|
32
|
-
action: 'Get entity type properties',
|
|
33
|
-
};
|
|
34
|
-
exports.properties = [
|
|
35
|
-
{
|
|
36
|
-
displayName: 'Type Name',
|
|
37
|
-
name: 'typeName',
|
|
38
|
-
type: 'options',
|
|
39
|
-
typeOptions: {
|
|
40
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
41
|
-
},
|
|
42
|
-
required: true,
|
|
43
|
-
default: '',
|
|
44
|
-
description: 'The name of the entity type to get properties for',
|
|
45
|
-
displayOptions: {
|
|
46
|
-
show: {
|
|
47
|
-
resource: [
|
|
48
|
-
'limeType',
|
|
49
|
-
],
|
|
50
|
-
operation: [
|
|
51
|
-
'getProperties',
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
displayName: 'Options',
|
|
58
|
-
name: 'options',
|
|
59
|
-
type: 'collection',
|
|
60
|
-
placeholder: 'Add Option',
|
|
61
|
-
default: {},
|
|
62
|
-
displayOptions: {
|
|
63
|
-
show: {
|
|
64
|
-
resource: [
|
|
65
|
-
'limeType',
|
|
66
|
-
],
|
|
67
|
-
operation: [
|
|
68
|
-
'getProperties',
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
options: [
|
|
73
|
-
{
|
|
74
|
-
displayName: 'Include System Properties',
|
|
75
|
-
name: 'includeSystemProperties',
|
|
76
|
-
type: 'boolean',
|
|
77
|
-
default: false,
|
|
78
|
-
description: 'Whether to include system properties in the response',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
displayName: 'Include Hidden Properties',
|
|
82
|
-
name: 'includeHiddenProperties',
|
|
83
|
-
type: 'boolean',
|
|
84
|
-
default: false,
|
|
85
|
-
description: 'Whether to include hidden properties in the response',
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
];
|
|
90
|
-
async function execute(i) {
|
|
91
|
-
const { apiRequest } = await Promise.resolve().then(() => __importStar(require('../../../transport')));
|
|
92
|
-
const typeName = this.getNodeParameter('typeName', i);
|
|
93
|
-
const options = this.getNodeParameter('options', i, {});
|
|
94
|
-
if (!typeName) {
|
|
95
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Type name must be provided');
|
|
96
|
-
}
|
|
97
|
-
const qs = {};
|
|
98
|
-
if (options.includeSystemProperties) {
|
|
99
|
-
qs.includeSystem = true;
|
|
100
|
-
}
|
|
101
|
-
if (options.includeHiddenProperties) {
|
|
102
|
-
qs.includeHidden = true;
|
|
103
|
-
}
|
|
104
|
-
const response = await apiRequest.call(this, {
|
|
105
|
-
method: 'GET',
|
|
106
|
-
endpoint: `/api/v1/limetype/${encodeURIComponent(typeName)}/property`,
|
|
107
|
-
qs,
|
|
108
|
-
});
|
|
109
|
-
return response;
|
|
110
|
-
}
|
|
111
|
-
exports.execute = execute;
|
|
112
|
-
//# sourceMappingURL=getProperties.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getProperties.operation.js","sourceRoot":"","sources":["../../../../../../nodes/LimeCrm/resources/limeType/operations/getProperties.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAKsB;AAET,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,+CAA+C;IAC5D,MAAM,EAAE,4BAA4B;CACvC,CAAC;AAEW,QAAA,UAAU,GAAsB;IAEzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mDAAmD;QAChE,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE;oBACN,UAAU;iBACb;gBACD,SAAS,EAAE;oBACP,eAAe;iBAClB;aACJ;SACJ;KACJ;IAGD;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,UAAU;iBACb;gBACD,SAAS,EAAE;oBACP,eAAe;iBAClB;aACJ;SACJ;QACD,OAAO,EAAE;YACL;gBACI,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,yBAAyB;gBAC/B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,sDAAsD;aACtE;YACD;gBACI,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,yBAAyB;gBAC/B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,sDAAsD;aACtE;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,EAAE,UAAU,EAAE,GAAG,wDAAa,oBAAoB,GAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IAEvE,IAAI,CAAC,QAAQ,EAAE;QACX,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,4BAA4B,CAAC,CAAC;KAC9E;IAGD,MAAM,EAAE,GAAgB,EAAE,CAAC;IAC3B,IAAI,OAAO,CAAC,uBAAuB,EAAE;QACjC,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;KAC3B;IACD,IAAI,OAAO,CAAC,uBAAuB,EAAE;QACjC,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;KAC3B;IAGD,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,oBAAoB,kBAAkB,CAAC,QAAQ,CAAC,WAAW;QACrE,EAAE;KACL,CAAC,CAAC;IAGH,OAAO,QAAQ,CAAC;AACpB,CAAC;AA9BD,0BA8BC"}
|
|
@@ -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>;
|
|
@@ -1,112 +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.execute = exports.properties = exports.description = void 0;
|
|
27
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
28
|
-
exports.description = {
|
|
29
|
-
name: 'Get Relations',
|
|
30
|
-
value: 'getRelations',
|
|
31
|
-
description: 'Get all relations for a specific entity type',
|
|
32
|
-
action: 'Get entity type relations',
|
|
33
|
-
};
|
|
34
|
-
exports.properties = [
|
|
35
|
-
{
|
|
36
|
-
displayName: 'Type Name',
|
|
37
|
-
name: 'typeName',
|
|
38
|
-
type: 'options',
|
|
39
|
-
typeOptions: {
|
|
40
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
41
|
-
},
|
|
42
|
-
required: true,
|
|
43
|
-
default: '',
|
|
44
|
-
description: 'The name of the entity type to get relations for',
|
|
45
|
-
displayOptions: {
|
|
46
|
-
show: {
|
|
47
|
-
resource: [
|
|
48
|
-
'limeType',
|
|
49
|
-
],
|
|
50
|
-
operation: [
|
|
51
|
-
'getRelations',
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
displayName: 'Options',
|
|
58
|
-
name: 'options',
|
|
59
|
-
type: 'collection',
|
|
60
|
-
placeholder: 'Add Option',
|
|
61
|
-
default: {},
|
|
62
|
-
displayOptions: {
|
|
63
|
-
show: {
|
|
64
|
-
resource: [
|
|
65
|
-
'limeType',
|
|
66
|
-
],
|
|
67
|
-
operation: [
|
|
68
|
-
'getRelations',
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
options: [
|
|
73
|
-
{
|
|
74
|
-
displayName: 'Include System Relations',
|
|
75
|
-
name: 'includeSystemRelations',
|
|
76
|
-
type: 'boolean',
|
|
77
|
-
default: false,
|
|
78
|
-
description: 'Whether to include system relations in the response',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
displayName: 'Include Hidden Relations',
|
|
82
|
-
name: 'includeHiddenRelations',
|
|
83
|
-
type: 'boolean',
|
|
84
|
-
default: false,
|
|
85
|
-
description: 'Whether to include hidden relations in the response',
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
|
-
},
|
|
89
|
-
];
|
|
90
|
-
async function execute(i) {
|
|
91
|
-
const { apiRequest } = await Promise.resolve().then(() => __importStar(require('../../../transport')));
|
|
92
|
-
const typeName = this.getNodeParameter('typeName', i);
|
|
93
|
-
const options = this.getNodeParameter('options', i, {});
|
|
94
|
-
if (!typeName) {
|
|
95
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Type name must be provided');
|
|
96
|
-
}
|
|
97
|
-
const qs = {};
|
|
98
|
-
if (options.includeSystemRelations) {
|
|
99
|
-
qs.includeSystem = true;
|
|
100
|
-
}
|
|
101
|
-
if (options.includeHiddenRelations) {
|
|
102
|
-
qs.includeHidden = true;
|
|
103
|
-
}
|
|
104
|
-
const response = await apiRequest.call(this, {
|
|
105
|
-
method: 'GET',
|
|
106
|
-
endpoint: `/api/v1/limetype/${encodeURIComponent(typeName)}/relation`,
|
|
107
|
-
qs,
|
|
108
|
-
});
|
|
109
|
-
return response;
|
|
110
|
-
}
|
|
111
|
-
exports.execute = execute;
|
|
112
|
-
//# sourceMappingURL=getRelations.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRelations.operation.js","sourceRoot":"","sources":["../../../../../../nodes/LimeCrm/resources/limeType/operations/getRelations.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAKsB;AAET,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,8CAA8C;IAC3D,MAAM,EAAE,2BAA2B;CACtC,CAAC;AAEW,QAAA,UAAU,GAAsB;IAEzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kDAAkD;QAC/D,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE;oBACN,UAAU;iBACb;gBACD,SAAS,EAAE;oBACP,cAAc;iBACjB;aACJ;SACJ;KACJ;IAGD;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,UAAU;iBACb;gBACD,SAAS,EAAE;oBACP,cAAc;iBACjB;aACJ;SACJ;QACD,OAAO,EAAE;YACL;gBACI,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,wBAAwB;gBAC9B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,qDAAqD;aACrE;YACD;gBACI,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,wBAAwB;gBAC9B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,qDAAqD;aACrE;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,EAAE,UAAU,EAAE,GAAG,wDAAa,oBAAoB,GAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAChE,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IAEvE,IAAI,CAAC,QAAQ,EAAE;QACX,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,4BAA4B,CAAC,CAAC;KAC9E;IAGD,MAAM,EAAE,GAAgB,EAAE,CAAC;IAC3B,IAAI,OAAO,CAAC,sBAAsB,EAAE;QAChC,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;KAC3B;IACD,IAAI,OAAO,CAAC,sBAAsB,EAAE;QAChC,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;KAC3B;IAGD,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,oBAAoB,kBAAkB,CAAC,QAAQ,CAAC,WAAW;QACrE,EAAE;KACL,CAAC,CAAC;IAGH,OAAO,QAAQ,CAAC;AACpB,CAAC;AA9BD,0BA8BC"}
|
|
@@ -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>;
|
|
@@ -1,70 +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.execute = exports.properties = exports.description = void 0;
|
|
27
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
28
|
-
exports.description = {
|
|
29
|
-
name: 'Get Type',
|
|
30
|
-
value: 'getType',
|
|
31
|
-
description: 'Get details about a specific entity type',
|
|
32
|
-
action: 'Get entity type details',
|
|
33
|
-
};
|
|
34
|
-
exports.properties = [
|
|
35
|
-
{
|
|
36
|
-
displayName: 'Type Name',
|
|
37
|
-
name: 'typeName',
|
|
38
|
-
type: 'options',
|
|
39
|
-
typeOptions: {
|
|
40
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
41
|
-
},
|
|
42
|
-
required: true,
|
|
43
|
-
default: '',
|
|
44
|
-
description: 'The name of the entity type to get details for',
|
|
45
|
-
displayOptions: {
|
|
46
|
-
show: {
|
|
47
|
-
resource: [
|
|
48
|
-
'limeType',
|
|
49
|
-
],
|
|
50
|
-
operation: [
|
|
51
|
-
'getType',
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
];
|
|
57
|
-
async function execute(i) {
|
|
58
|
-
const { apiRequest } = await Promise.resolve().then(() => __importStar(require('../../../transport')));
|
|
59
|
-
const typeName = this.getNodeParameter('typeName', i);
|
|
60
|
-
if (!typeName) {
|
|
61
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Type name must be provided');
|
|
62
|
-
}
|
|
63
|
-
const response = await apiRequest.call(this, {
|
|
64
|
-
method: 'GET',
|
|
65
|
-
endpoint: `/api/v1/limetype/${encodeURIComponent(typeName)}`,
|
|
66
|
-
});
|
|
67
|
-
return response;
|
|
68
|
-
}
|
|
69
|
-
exports.execute = execute;
|
|
70
|
-
//# sourceMappingURL=getType.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getType.operation.js","sourceRoot":"","sources":["../../../../../../nodes/LimeCrm/resources/limeType/operations/getType.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAIsB;AAET,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,yBAAyB;CACpC,CAAC;AAEW,QAAA,UAAU,GAAsB;IAEzC;QACI,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACT,iBAAiB,EAAE,cAAc;SACpC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gDAAgD;QAC7D,cAAc,EAAE;YACZ,IAAI,EAAE;gBACF,QAAQ,EAAE;oBACN,UAAU;iBACb;gBACD,SAAS,EAAE;oBACP,SAAS;iBACZ;aACJ;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,EAAE,UAAU,EAAE,GAAG,wDAAa,oBAAoB,GAAC,CAAC;IAC1D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAW,CAAC;IAEhE,IAAI,CAAC,QAAQ,EAAE;QACX,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,4BAA4B,CAAC,CAAC;KAC9E;IAGD,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,oBAAoB,kBAAkB,CAAC,QAAQ,CAAC,EAAE;KAC/D,CAAC,CAAC;IAGH,OAAO,QAAQ,CAAC;AACpB,CAAC;AAnBD,0BAmBC"}
|
|
@@ -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>;
|
|
@@ -1,86 +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.execute = exports.properties = exports.description = void 0;
|
|
27
|
-
exports.description = {
|
|
28
|
-
name: 'List Types',
|
|
29
|
-
value: 'listTypes',
|
|
30
|
-
description: 'Get a list of all available entity types',
|
|
31
|
-
action: 'List all entity types',
|
|
32
|
-
};
|
|
33
|
-
exports.properties = [
|
|
34
|
-
{
|
|
35
|
-
displayName: 'Options',
|
|
36
|
-
name: 'options',
|
|
37
|
-
type: 'collection',
|
|
38
|
-
placeholder: 'Add Option',
|
|
39
|
-
default: {},
|
|
40
|
-
displayOptions: {
|
|
41
|
-
show: {
|
|
42
|
-
resource: [
|
|
43
|
-
'limeType',
|
|
44
|
-
],
|
|
45
|
-
operation: [
|
|
46
|
-
'listTypes',
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
options: [
|
|
51
|
-
{
|
|
52
|
-
displayName: 'Include System Types',
|
|
53
|
-
name: 'includeSystemTypes',
|
|
54
|
-
type: 'boolean',
|
|
55
|
-
default: false,
|
|
56
|
-
description: 'Whether to include system types in the response',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
displayName: 'Include Hidden Types',
|
|
60
|
-
name: 'includeHiddenTypes',
|
|
61
|
-
type: 'boolean',
|
|
62
|
-
default: false,
|
|
63
|
-
description: 'Whether to include hidden types in the response',
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
];
|
|
68
|
-
async function execute(i) {
|
|
69
|
-
const { apiRequest } = await Promise.resolve().then(() => __importStar(require('../../../transport')));
|
|
70
|
-
const options = this.getNodeParameter('options', i, {});
|
|
71
|
-
const qs = {};
|
|
72
|
-
if (options.includeSystemTypes) {
|
|
73
|
-
qs.includeSystem = true;
|
|
74
|
-
}
|
|
75
|
-
if (options.includeHiddenTypes) {
|
|
76
|
-
qs.includeHidden = true;
|
|
77
|
-
}
|
|
78
|
-
const response = await apiRequest.call(this, {
|
|
79
|
-
method: 'GET',
|
|
80
|
-
endpoint: '/api/v1/limetype',
|
|
81
|
-
qs,
|
|
82
|
-
});
|
|
83
|
-
return response;
|
|
84
|
-
}
|
|
85
|
-
exports.execute = execute;
|
|
86
|
-
//# sourceMappingURL=listTypes.operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listTypes.operation.js","sourceRoot":"","sources":["../../../../../../nodes/LimeCrm/resources/limeType/operations/listTypes.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMa,QAAA,WAAW,GAAG;IACvB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE,uBAAuB;CAClC,CAAC;AAEW,QAAA,UAAU,GAAsB;IAEzC;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,UAAU;iBACb;gBACD,SAAS,EAAE;oBACP,WAAW;iBACd;aACJ;SACJ;QACD,OAAO,EAAE;YACL;gBACI,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,iDAAiD;aACjE;YACD;gBACI,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,iDAAiD;aACjE;SACJ;KACJ;CACJ,CAAC;AAEK,KAAK,UAAU,OAAO,CAEzB,CAAS;IAET,MAAM,EAAE,UAAU,EAAE,GAAG,wDAAa,oBAAoB,GAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IAGvE,MAAM,EAAE,GAAgB,EAAE,CAAC;IAC3B,IAAI,OAAO,CAAC,kBAAkB,EAAE;QAC5B,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;KAC3B;IACD,IAAI,OAAO,CAAC,kBAAkB,EAAE;QAC5B,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC;KAC3B;IAGD,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,kBAAkB;QAC5B,EAAE;KACL,CAAC,CAAC;IAGH,OAAO,QAAQ,CAAC;AACpB,CAAC;AAzBD,0BAyBC"}
|
|
@@ -1,57 +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.queryApiOperations = exports.queryApiFields = void 0;
|
|
27
|
-
const executeQuery = __importStar(require("./operations/executeQuery.operation"));
|
|
28
|
-
exports.queryApiFields = [
|
|
29
|
-
{
|
|
30
|
-
displayName: 'Operation',
|
|
31
|
-
name: 'operation',
|
|
32
|
-
type: 'options',
|
|
33
|
-
noDataExpression: true,
|
|
34
|
-
displayOptions: {
|
|
35
|
-
show: {
|
|
36
|
-
resource: [
|
|
37
|
-
'queryApi',
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
options: [
|
|
42
|
-
{
|
|
43
|
-
...executeQuery.description,
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
default: 'executeQuery',
|
|
47
|
-
},
|
|
48
|
-
...executeQuery.properties,
|
|
49
|
-
];
|
|
50
|
-
async function queryApiOperations({ operation, i }) {
|
|
51
|
-
if (operation === 'executeQuery') {
|
|
52
|
-
return await executeQuery.execute.call(this, i);
|
|
53
|
-
}
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
exports.queryApiOperations = queryApiOperations;
|
|
57
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/LimeCrm/resources/queryApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kFAAoE;AAGvD,QAAA,cAAc,GAAsB;IAE7C;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,UAAU;iBACb;aACJ;SACJ;QACD,OAAO,EAAE;YACL;gBACI,GAAG,YAAY,CAAC,WAAW;aAC9B;SACJ;QACD,OAAO,EAAE,cAAc;KAC1B;IAGD,GAAG,YAAY,CAAC,UAAU;CAC7B,CAAC;AAGK,KAAK,UAAU,kBAAkB,CAEpC,EAAE,SAAS,EAAE,CAAC,EAAoC;IAElD,IAAI,SAAS,KAAK,cAAc,EAAE;QAC9B,OAAO,MAAM,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;KACnD;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AATD,gDASC"}
|
|
@@ -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>;
|