@limetech/n8n-nodes-lime 0.1.0
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/.eslintrc.js +58 -0
- package/.github/copilot-instructions.md +20 -0
- package/.github/workflows/publish.yml +34 -0
- package/README.md +79 -0
- package/credentials/LimeCrmApi.credentials.ts +57 -0
- package/credentials/LimeGoApi.credentials.ts +31 -0
- package/dist/credentials/LimeCrmApi.credentials.d.ts +9 -0
- package/dist/credentials/LimeCrmApi.credentials.js +53 -0
- package/dist/credentials/LimeCrmApi.credentials.js.map +1 -0
- package/dist/credentials/LimeGoApi.credentials.d.ts +15 -0
- package/dist/credentials/LimeGoApi.credentials.js +32 -0
- package/dist/credentials/LimeGoApi.credentials.js.map +1 -0
- package/dist/nodes/lime-crm/GenericTypes.d.ts +80 -0
- package/dist/nodes/lime-crm/GenericTypes.js +7 -0
- package/dist/nodes/lime-crm/GenericTypes.js.map +1 -0
- package/dist/nodes/lime-crm/LimeCrm.node.json +18 -0
- package/dist/nodes/lime-crm/LimeCrmNode.node.d.ts +17 -0
- package/dist/nodes/lime-crm/LimeCrmNode.node.js +114 -0
- package/dist/nodes/lime-crm/LimeCrmNode.node.js.map +1 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.d.ts +17 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.js +408 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.js.map +1 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.d.ts +17 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.js +439 -0
- package/dist/nodes/lime-crm/LimeCrmTrigger.node.js.map +1 -0
- package/dist/nodes/lime-crm/lime-crm.svg +1 -0
- package/dist/nodes/lime-crm/methods/getAllSortableFields.d.ts +7 -0
- package/dist/nodes/lime-crm/methods/getAllSortableFields.js +53 -0
- package/dist/nodes/lime-crm/methods/getAllSortableFields.js.map +1 -0
- package/dist/nodes/lime-crm/methods/getLimeTypeProperties.d.ts +3 -0
- package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js +40 -0
- package/dist/nodes/lime-crm/methods/getLimeTypeProperties.js.map +1 -0
- package/dist/nodes/lime-crm/methods/getLimeTypeRelations.d.ts +7 -0
- package/dist/nodes/lime-crm/methods/getLimeTypeRelations.js +30 -0
- package/dist/nodes/lime-crm/methods/getLimeTypeRelations.js.map +1 -0
- package/dist/nodes/lime-crm/methods/getLimeTypes.d.ts +3 -0
- package/dist/nodes/lime-crm/methods/getLimeTypes.js +33 -0
- package/dist/nodes/lime-crm/methods/getLimeTypes.js.map +1 -0
- package/dist/nodes/lime-crm/methods/getRelatedTypeProperties.d.ts +7 -0
- package/dist/nodes/lime-crm/methods/getRelatedTypeProperties.js +39 -0
- package/dist/nodes/lime-crm/methods/getRelatedTypeProperties.js.map +1 -0
- package/dist/nodes/lime-crm/methods/index.d.ts +5 -0
- package/dist/nodes/lime-crm/methods/index.js +14 -0
- package/dist/nodes/lime-crm/methods/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/commonFields.d.ts +4 -0
- package/dist/nodes/lime-crm/resources/limeObject/commonFields.js +165 -0
- package/dist/nodes/lime-crm/resources/limeObject/commonFields.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/index.d.ts +6 -0
- package/dist/nodes/lime-crm/resources/limeObject/index.js +79 -0
- package/dist/nodes/lime-crm/resources/limeObject/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/common.operation.d.ts +2 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/common.operation.js +36 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/common.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js +234 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/create.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js +136 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/delete.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js +125 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/get.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/getAll.operation.d.ts +3 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/getAll.operation.js +212 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/getAll.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js +232 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/search.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js +186 -0
- package/dist/nodes/lime-crm/resources/limeObject/operations/update.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeType/index.d.ts +6 -0
- package/dist/nodes/lime-crm/resources/limeType/index.js +81 -0
- package/dist/nodes/lime-crm/resources/limeType/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js +112 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getProperties.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getRelations.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getRelations.operation.js +112 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getRelations.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js +70 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/getType.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js +86 -0
- package/dist/nodes/lime-crm/resources/limeType/operations/listTypes.operation.js.map +1 -0
- package/dist/nodes/lime-crm/resources/queryApi/index.d.ts +6 -0
- package/dist/nodes/lime-crm/resources/queryApi/index.js +57 -0
- package/dist/nodes/lime-crm/resources/queryApi/index.js.map +1 -0
- package/dist/nodes/lime-crm/resources/queryApi/operations/executeQuery.operation.d.ts +9 -0
- package/dist/nodes/lime-crm/resources/queryApi/operations/executeQuery.operation.js +559 -0
- package/dist/nodes/lime-crm/resources/queryApi/operations/executeQuery.operation.js.map +1 -0
- package/dist/nodes/lime-crm/transport/index.d.ts +2 -0
- package/dist/nodes/lime-crm/transport/index.js +50 -0
- package/dist/nodes/lime-crm/transport/index.js.map +1 -0
- package/dist/nodes/lime-go/LimeGo.node.d.ts +8 -0
- package/dist/nodes/lime-go/LimeGo.node.js +123 -0
- package/dist/nodes/lime-go/LimeGo.node.js.map +1 -0
- package/dist/nodes/lime-go/actions/organization/get.operation.d.ts +5 -0
- package/dist/nodes/lime-go/actions/organization/get.operation.js +39 -0
- package/dist/nodes/lime-go/actions/organization/get.operation.js.map +1 -0
- package/dist/nodes/lime-go/actions/organization/getByExternalKey.operation.d.ts +5 -0
- package/dist/nodes/lime-go/actions/organization/getByExternalKey.operation.js +54 -0
- package/dist/nodes/lime-go/actions/organization/getByExternalKey.operation.js.map +1 -0
- package/dist/nodes/lime-go/actions/organization/index.d.ts +7 -0
- package/dist/nodes/lime-go/actions/organization/index.js +92 -0
- package/dist/nodes/lime-go/actions/organization/index.js.map +1 -0
- package/dist/nodes/lime-go/actions/organization/organizationFields.d.ts +2 -0
- package/dist/nodes/lime-go/actions/organization/organizationFields.js +162 -0
- package/dist/nodes/lime-go/actions/organization/organizationFields.js.map +1 -0
- package/dist/nodes/lime-go/actions/organization/search.operation.d.ts +5 -0
- package/dist/nodes/lime-go/actions/organization/search.operation.js +70 -0
- package/dist/nodes/lime-go/actions/organization/search.operation.js.map +1 -0
- package/dist/nodes/lime-go/actions/organization/update.operation.d.ts +5 -0
- package/dist/nodes/lime-go/actions/organization/update.operation.js +125 -0
- package/dist/nodes/lime-go/actions/organization/update.operation.js.map +1 -0
- package/dist/nodes/lime-go/actions/person/createMail.operation.d.ts +7 -0
- package/dist/nodes/lime-go/actions/person/createMail.operation.js +130 -0
- package/dist/nodes/lime-go/actions/person/createMail.operation.js.map +1 -0
- package/dist/nodes/lime-go/actions/person/get.operation.d.ts +7 -0
- package/dist/nodes/lime-go/actions/person/get.operation.js +45 -0
- package/dist/nodes/lime-go/actions/person/get.operation.js.map +1 -0
- package/dist/nodes/lime-go/actions/person/index.d.ts +7 -0
- package/dist/nodes/lime-go/actions/person/index.js +92 -0
- package/dist/nodes/lime-go/actions/person/index.js.map +1 -0
- package/dist/nodes/lime-go/actions/person/personFields.d.ts +2 -0
- package/dist/nodes/lime-go/actions/person/personFields.js +134 -0
- package/dist/nodes/lime-go/actions/person/personFields.js.map +1 -0
- package/dist/nodes/lime-go/actions/person/search.operation.d.ts +7 -0
- package/dist/nodes/lime-go/actions/person/search.operation.js +81 -0
- package/dist/nodes/lime-go/actions/person/search.operation.js.map +1 -0
- package/dist/nodes/lime-go/actions/person/update.operation.d.ts +7 -0
- package/dist/nodes/lime-go/actions/person/update.operation.js +104 -0
- package/dist/nodes/lime-go/actions/person/update.operation.js.map +1 -0
- package/dist/nodes/lime-go/lime-go.svg +1 -0
- package/dist/nodes/lime-go/transport/graphqlRequest.d.ts +2 -0
- package/dist/nodes/lime-go/transport/graphqlRequest.js +23 -0
- package/dist/nodes/lime-go/transport/graphqlRequest.js.map +1 -0
- package/dist/nodes/lime-go/transport/transport.d.ts +3 -0
- package/dist/nodes/lime-go/transport/transport.js +58 -0
- package/dist/nodes/lime-go/transport/transport.js.map +1 -0
- package/dist/nodes/lime-go/triggers/webhook.d.ts +10 -0
- package/dist/nodes/lime-go/triggers/webhook.js +92 -0
- package/dist/nodes/lime-go/triggers/webhook.js.map +1 -0
- package/dist/package.json +49 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/docker-compose.yml +44 -0
- package/index.js +3 -0
- package/nodes/lime-crm/GenericTypes.ts +114 -0
- package/nodes/lime-crm/LimeCrm.node.json +18 -0
- package/nodes/lime-crm/LimeCrmNode.node.ts +154 -0
- package/nodes/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.ts +461 -0
- package/nodes/lime-crm/LimeCrmTrigger.node.ts +505 -0
- package/nodes/lime-crm/lime-crm.svg +1 -0
- package/nodes/lime-crm/methods/getAllSortableFields.ts +73 -0
- package/nodes/lime-crm/methods/getLimeTypeProperties.ts +48 -0
- package/nodes/lime-crm/methods/getLimeTypeRelations.ts +32 -0
- package/nodes/lime-crm/methods/getLimeTypes.ts +33 -0
- package/nodes/lime-crm/methods/getRelatedTypeProperties.ts +47 -0
- package/nodes/lime-crm/methods/index.ts +5 -0
- package/nodes/lime-crm/resources/limeObject/commonFields.ts +179 -0
- package/nodes/lime-crm/resources/limeObject/index.ts +64 -0
- package/nodes/lime-crm/resources/limeObject/operations/common.operation.ts +35 -0
- package/nodes/lime-crm/resources/limeObject/operations/create.operation.ts +234 -0
- package/nodes/lime-crm/resources/limeObject/operations/delete.operation.ts +136 -0
- package/nodes/lime-crm/resources/limeObject/operations/get.operation.ts +124 -0
- package/nodes/lime-crm/resources/limeObject/operations/getAll.operation.ts +242 -0
- package/nodes/lime-crm/resources/limeObject/operations/search.operation.ts +242 -0
- package/nodes/lime-crm/resources/limeObject/operations/update.operation.ts +201 -0
- package/nodes/lime-crm/resources/limeType/index.ts +66 -0
- package/nodes/lime-crm/resources/limeType/operations/getProperties.operation.ts +105 -0
- package/nodes/lime-crm/resources/limeType/operations/getRelations.operation.ts +105 -0
- package/nodes/lime-crm/resources/limeType/operations/getType.operation.ts +58 -0
- package/nodes/lime-crm/resources/limeType/operations/listTypes.operation.ts +76 -0
- package/nodes/lime-crm/resources/queryApi/index.ts +42 -0
- package/nodes/lime-crm/resources/queryApi/operations/executeQuery.operation.ts +605 -0
- package/nodes/lime-crm/transport/index.ts +74 -0
- package/nodes/lime-go/LimeGo.node.ts +146 -0
- package/nodes/lime-go/actions/organization/get.operation.ts +42 -0
- package/nodes/lime-go/actions/organization/getByExternalKey.operation.ts +57 -0
- package/nodes/lime-go/actions/organization/index.ts +69 -0
- package/nodes/lime-go/actions/organization/organizationFields.ts +160 -0
- package/nodes/lime-go/actions/organization/search.operation.ts +73 -0
- package/nodes/lime-go/actions/organization/update.operation.ts +140 -0
- package/nodes/lime-go/actions/person/createMail.operation.ts +140 -0
- package/nodes/lime-go/actions/person/get.operation.ts +51 -0
- package/nodes/lime-go/actions/person/index.ts +69 -0
- package/nodes/lime-go/actions/person/personFields.ts +132 -0
- package/nodes/lime-go/actions/person/search.operation.ts +88 -0
- package/nodes/lime-go/actions/person/update.operation.ts +122 -0
- package/nodes/lime-go/lime-go.svg +1 -0
- package/nodes/lime-go/transport/graphqlRequest.ts +30 -0
- package/package.json +50 -0
- package/tsconfig.json +30 -0
|
@@ -0,0 +1,81 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/lime-crm/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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProperties.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRelations.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getType.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listTypes.operation.js","sourceRoot":"","sources":["../../../../../../nodes/lime-crm/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"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/lime-crm/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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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>;
|