@limetech/n8n-nodes-lime 0.1.0 → 0.2.1
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/nodes/lime-crm/LimeCrm.node.json +16 -16
- package/package.json +47 -47
- package/{dist/tsconfig.tsbuildinfo → tsconfig.tsbuildinfo} +1 -1
- package/.eslintrc.js +0 -58
- package/.github/copilot-instructions.md +0 -20
- package/.github/workflows/publish.yml +0 -34
- package/README.md +0 -79
- package/credentials/LimeCrmApi.credentials.ts +0 -57
- package/credentials/LimeGoApi.credentials.ts +0 -31
- package/dist/nodes/lime-crm/LimeCrm.node.json +0 -18
- package/dist/nodes/lime-crm/lime-crm.svg +0 -1
- package/dist/nodes/lime-go/lime-go.svg +0 -1
- package/dist/package.json +0 -49
- package/docker-compose.yml +0 -44
- package/index.js +0 -3
- package/nodes/lime-crm/GenericTypes.ts +0 -114
- package/nodes/lime-crm/LimeCrmNode.node.ts +0 -154
- package/nodes/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.ts +0 -461
- package/nodes/lime-crm/LimeCrmTrigger.node.ts +0 -505
- package/nodes/lime-crm/methods/getAllSortableFields.ts +0 -73
- package/nodes/lime-crm/methods/getLimeTypeProperties.ts +0 -48
- package/nodes/lime-crm/methods/getLimeTypeRelations.ts +0 -32
- package/nodes/lime-crm/methods/getLimeTypes.ts +0 -33
- package/nodes/lime-crm/methods/getRelatedTypeProperties.ts +0 -47
- package/nodes/lime-crm/methods/index.ts +0 -5
- package/nodes/lime-crm/resources/limeObject/commonFields.ts +0 -179
- package/nodes/lime-crm/resources/limeObject/index.ts +0 -64
- package/nodes/lime-crm/resources/limeObject/operations/common.operation.ts +0 -35
- package/nodes/lime-crm/resources/limeObject/operations/create.operation.ts +0 -234
- package/nodes/lime-crm/resources/limeObject/operations/delete.operation.ts +0 -136
- package/nodes/lime-crm/resources/limeObject/operations/get.operation.ts +0 -124
- package/nodes/lime-crm/resources/limeObject/operations/getAll.operation.ts +0 -242
- package/nodes/lime-crm/resources/limeObject/operations/search.operation.ts +0 -242
- package/nodes/lime-crm/resources/limeObject/operations/update.operation.ts +0 -201
- package/nodes/lime-crm/resources/limeType/index.ts +0 -66
- package/nodes/lime-crm/resources/limeType/operations/getProperties.operation.ts +0 -105
- package/nodes/lime-crm/resources/limeType/operations/getRelations.operation.ts +0 -105
- package/nodes/lime-crm/resources/limeType/operations/getType.operation.ts +0 -58
- package/nodes/lime-crm/resources/limeType/operations/listTypes.operation.ts +0 -76
- package/nodes/lime-crm/resources/queryApi/index.ts +0 -42
- package/nodes/lime-crm/resources/queryApi/operations/executeQuery.operation.ts +0 -605
- package/nodes/lime-crm/transport/index.ts +0 -74
- package/nodes/lime-go/LimeGo.node.ts +0 -146
- package/nodes/lime-go/actions/organization/get.operation.ts +0 -42
- package/nodes/lime-go/actions/organization/getByExternalKey.operation.ts +0 -57
- package/nodes/lime-go/actions/organization/index.ts +0 -69
- package/nodes/lime-go/actions/organization/organizationFields.ts +0 -160
- package/nodes/lime-go/actions/organization/search.operation.ts +0 -73
- package/nodes/lime-go/actions/organization/update.operation.ts +0 -140
- package/nodes/lime-go/actions/person/createMail.operation.ts +0 -140
- package/nodes/lime-go/actions/person/get.operation.ts +0 -51
- package/nodes/lime-go/actions/person/index.ts +0 -69
- package/nodes/lime-go/actions/person/personFields.ts +0 -132
- package/nodes/lime-go/actions/person/search.operation.ts +0 -88
- package/nodes/lime-go/actions/person/update.operation.ts +0 -122
- package/nodes/lime-go/transport/graphqlRequest.ts +0 -30
- package/tsconfig.json +0 -30
- /package/{dist/credentials → credentials}/LimeCrmApi.credentials.d.ts +0 -0
- /package/{dist/credentials → credentials}/LimeCrmApi.credentials.js +0 -0
- /package/{dist/credentials → credentials}/LimeCrmApi.credentials.js.map +0 -0
- /package/{dist/credentials → credentials}/LimeGoApi.credentials.d.ts +0 -0
- /package/{dist/credentials → credentials}/LimeGoApi.credentials.js +0 -0
- /package/{dist/credentials → credentials}/LimeGoApi.credentials.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/GenericTypes.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/GenericTypes.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/GenericTypes.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmNode.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmNode.node.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmNode.node.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger.node.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/LimeCrmTrigger.node.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getAllSortableFields.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getAllSortableFields.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getAllSortableFields.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeProperties.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeProperties.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeProperties.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeRelations.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeRelations.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypeRelations.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypes.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypes.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getLimeTypes.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getRelatedTypeProperties.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getRelatedTypeProperties.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/getRelatedTypeProperties.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/methods/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/commonFields.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/commonFields.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/commonFields.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/common.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/common.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/common.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/create.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/create.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/create.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/delete.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/delete.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/delete.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/get.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/get.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/get.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/getAll.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/getAll.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/getAll.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/search.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/search.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/search.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/update.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/update.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeObject/operations/update.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getProperties.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getProperties.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getProperties.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getRelations.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getRelations.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getRelations.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getType.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getType.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/getType.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/listTypes.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/listTypes.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/limeType/operations/listTypes.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/operations/executeQuery.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/operations/executeQuery.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/resources/queryApi/operations/executeQuery.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-crm/transport/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-crm/transport/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-crm/transport/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/LimeGo.node.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/LimeGo.node.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/LimeGo.node.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/get.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/get.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/get.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/getByExternalKey.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/getByExternalKey.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/getByExternalKey.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/organizationFields.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/organizationFields.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/organizationFields.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/search.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/search.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/search.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/update.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/update.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/organization/update.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/createMail.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/createMail.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/createMail.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/get.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/get.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/get.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/index.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/index.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/index.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/personFields.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/personFields.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/personFields.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/search.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/search.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/search.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/update.operation.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/update.operation.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/actions/person/update.operation.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/graphqlRequest.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/graphqlRequest.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/graphqlRequest.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/transport.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/transport.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/transport/transport.js.map +0 -0
- /package/{dist/nodes → nodes}/lime-go/triggers/webhook.d.ts +0 -0
- /package/{dist/nodes → nodes}/lime-go/triggers/webhook.js +0 -0
- /package/{dist/nodes → nodes}/lime-go/triggers/webhook.js.map +0 -0
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IExecuteFunctions,
|
|
3
|
-
INodeProperties,
|
|
4
|
-
IDataObject,
|
|
5
|
-
NodeOperationError,
|
|
6
|
-
} from 'n8n-workflow';
|
|
7
|
-
|
|
8
|
-
export const description = {
|
|
9
|
-
name: 'Get Relations',
|
|
10
|
-
value: 'getRelations',
|
|
11
|
-
description: 'Get all relations for a specific entity type',
|
|
12
|
-
action: 'Get entity type relations',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const properties: INodeProperties[] = [
|
|
16
|
-
// Limetype selection
|
|
17
|
-
{
|
|
18
|
-
displayName: 'Type Name',
|
|
19
|
-
name: 'typeName',
|
|
20
|
-
type: 'options',
|
|
21
|
-
typeOptions: {
|
|
22
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
23
|
-
},
|
|
24
|
-
required: true,
|
|
25
|
-
default: '',
|
|
26
|
-
description: 'The name of the entity type to get relations for',
|
|
27
|
-
displayOptions: {
|
|
28
|
-
show: {
|
|
29
|
-
resource: [
|
|
30
|
-
'limeType',
|
|
31
|
-
],
|
|
32
|
-
operation: [
|
|
33
|
-
'getRelations',
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
// Options for the operation
|
|
40
|
-
{
|
|
41
|
-
displayName: 'Options',
|
|
42
|
-
name: 'options',
|
|
43
|
-
type: 'collection',
|
|
44
|
-
placeholder: 'Add Option',
|
|
45
|
-
default: {},
|
|
46
|
-
displayOptions: {
|
|
47
|
-
show: {
|
|
48
|
-
resource: [
|
|
49
|
-
'limeType',
|
|
50
|
-
],
|
|
51
|
-
operation: [
|
|
52
|
-
'getRelations',
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
options: [
|
|
57
|
-
{
|
|
58
|
-
displayName: 'Include System Relations',
|
|
59
|
-
name: 'includeSystemRelations',
|
|
60
|
-
type: 'boolean',
|
|
61
|
-
default: false,
|
|
62
|
-
description: 'Whether to include system relations in the response',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
displayName: 'Include Hidden Relations',
|
|
66
|
-
name: 'includeHiddenRelations',
|
|
67
|
-
type: 'boolean',
|
|
68
|
-
default: false,
|
|
69
|
-
description: 'Whether to include hidden relations in the response',
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
},
|
|
73
|
-
];
|
|
74
|
-
|
|
75
|
-
export async function execute(
|
|
76
|
-
this: IExecuteFunctions,
|
|
77
|
-
i: number,
|
|
78
|
-
) {
|
|
79
|
-
const { apiRequest } = await import('../../../transport');
|
|
80
|
-
const typeName = this.getNodeParameter('typeName', i) as string;
|
|
81
|
-
const options = this.getNodeParameter('options', i, {}) as IDataObject;
|
|
82
|
-
|
|
83
|
-
if (!typeName) {
|
|
84
|
-
throw new NodeOperationError(this.getNode(), 'Type name must be provided');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// Prepare query parameters
|
|
88
|
-
const qs: IDataObject = {};
|
|
89
|
-
if (options.includeSystemRelations) {
|
|
90
|
-
qs.includeSystem = true;
|
|
91
|
-
}
|
|
92
|
-
if (options.includeHiddenRelations) {
|
|
93
|
-
qs.includeHidden = true;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Make API request
|
|
97
|
-
const response = await apiRequest.call(this, {
|
|
98
|
-
method: 'GET',
|
|
99
|
-
endpoint: `/api/v1/limetype/${encodeURIComponent(typeName)}/relation`,
|
|
100
|
-
qs,
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
// Return the response data
|
|
104
|
-
return response;
|
|
105
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IExecuteFunctions,
|
|
3
|
-
INodeProperties,
|
|
4
|
-
NodeOperationError,
|
|
5
|
-
} from 'n8n-workflow';
|
|
6
|
-
|
|
7
|
-
export const description = {
|
|
8
|
-
name: 'Get Type',
|
|
9
|
-
value: 'getType',
|
|
10
|
-
description: 'Get details about a specific entity type',
|
|
11
|
-
action: 'Get entity type details',
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export const properties: INodeProperties[] = [
|
|
15
|
-
// Limetype selection
|
|
16
|
-
{
|
|
17
|
-
displayName: 'Type Name',
|
|
18
|
-
name: 'typeName',
|
|
19
|
-
type: 'options',
|
|
20
|
-
typeOptions: {
|
|
21
|
-
loadOptionsMethod: 'getLimeTypes',
|
|
22
|
-
},
|
|
23
|
-
required: true,
|
|
24
|
-
default: '',
|
|
25
|
-
description: 'The name of the entity type to get details for',
|
|
26
|
-
displayOptions: {
|
|
27
|
-
show: {
|
|
28
|
-
resource: [
|
|
29
|
-
'limeType',
|
|
30
|
-
],
|
|
31
|
-
operation: [
|
|
32
|
-
'getType',
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
];
|
|
38
|
-
|
|
39
|
-
export async function execute(
|
|
40
|
-
this: IExecuteFunctions,
|
|
41
|
-
i: number,
|
|
42
|
-
) {
|
|
43
|
-
const { apiRequest } = await import('../../../transport');
|
|
44
|
-
const typeName = this.getNodeParameter('typeName', i) as string;
|
|
45
|
-
|
|
46
|
-
if (!typeName) {
|
|
47
|
-
throw new NodeOperationError(this.getNode(), 'Type name must be provided');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Make API request
|
|
51
|
-
const response = await apiRequest.call(this, {
|
|
52
|
-
method: 'GET',
|
|
53
|
-
endpoint: `/api/v1/limetype/${encodeURIComponent(typeName)}`,
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
// Return the response data
|
|
57
|
-
return response;
|
|
58
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IExecuteFunctions,
|
|
3
|
-
INodeProperties,
|
|
4
|
-
IDataObject,
|
|
5
|
-
} from 'n8n-workflow';
|
|
6
|
-
|
|
7
|
-
export const description = {
|
|
8
|
-
name: 'List Types',
|
|
9
|
-
value: 'listTypes',
|
|
10
|
-
description: 'Get a list of all available entity types',
|
|
11
|
-
action: 'List all entity types',
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export const properties: INodeProperties[] = [
|
|
15
|
-
// Options for the operation
|
|
16
|
-
{
|
|
17
|
-
displayName: 'Options',
|
|
18
|
-
name: 'options',
|
|
19
|
-
type: 'collection',
|
|
20
|
-
placeholder: 'Add Option',
|
|
21
|
-
default: {},
|
|
22
|
-
displayOptions: {
|
|
23
|
-
show: {
|
|
24
|
-
resource: [
|
|
25
|
-
'limeType',
|
|
26
|
-
],
|
|
27
|
-
operation: [
|
|
28
|
-
'listTypes',
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
options: [
|
|
33
|
-
{
|
|
34
|
-
displayName: 'Include System Types',
|
|
35
|
-
name: 'includeSystemTypes',
|
|
36
|
-
type: 'boolean',
|
|
37
|
-
default: false,
|
|
38
|
-
description: 'Whether to include system types in the response',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
displayName: 'Include Hidden Types',
|
|
42
|
-
name: 'includeHiddenTypes',
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
default: false,
|
|
45
|
-
description: 'Whether to include hidden types in the response',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
];
|
|
50
|
-
|
|
51
|
-
export async function execute(
|
|
52
|
-
this: IExecuteFunctions,
|
|
53
|
-
i: number,
|
|
54
|
-
) {
|
|
55
|
-
const { apiRequest } = await import('../../../transport');
|
|
56
|
-
const options = this.getNodeParameter('options', i, {}) as IDataObject;
|
|
57
|
-
|
|
58
|
-
// Prepare query parameters
|
|
59
|
-
const qs: IDataObject = {};
|
|
60
|
-
if (options.includeSystemTypes) {
|
|
61
|
-
qs.includeSystem = true;
|
|
62
|
-
}
|
|
63
|
-
if (options.includeHiddenTypes) {
|
|
64
|
-
qs.includeHidden = true;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// Make API request
|
|
68
|
-
const response = await apiRequest.call(this, {
|
|
69
|
-
method: 'GET',
|
|
70
|
-
endpoint: '/api/v1/limetype',
|
|
71
|
-
qs,
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
// Return the response data
|
|
75
|
-
return response;
|
|
76
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeProperties, NodePropertyTypes } from 'n8n-workflow';
|
|
2
|
-
|
|
3
|
-
import * as executeQuery from './operations/executeQuery.operation';
|
|
4
|
-
|
|
5
|
-
// Export fields for the node
|
|
6
|
-
export const queryApiFields: INodeProperties[] = [
|
|
7
|
-
// Operation selection for Query API
|
|
8
|
-
{
|
|
9
|
-
displayName: 'Operation',
|
|
10
|
-
name: 'operation',
|
|
11
|
-
type: 'options' as NodePropertyTypes,
|
|
12
|
-
noDataExpression: true,
|
|
13
|
-
displayOptions: {
|
|
14
|
-
show: {
|
|
15
|
-
resource: [
|
|
16
|
-
'queryApi',
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
options: [
|
|
21
|
-
{
|
|
22
|
-
...executeQuery.description,
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
default: 'executeQuery',
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
// All operation-specific fields are now imported from operations
|
|
29
|
-
...executeQuery.properties,
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
// Operations router
|
|
33
|
-
export async function queryApiOperations(
|
|
34
|
-
this: IExecuteFunctions,
|
|
35
|
-
{ operation, i }: { operation: string; i: number },
|
|
36
|
-
) {
|
|
37
|
-
if (operation === 'executeQuery') {
|
|
38
|
-
return await executeQuery.execute.call(this, i);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return null;
|
|
42
|
-
}
|