@limetech/n8n-nodes-lime 0.2.0 → 0.2.2

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.
Files changed (54) hide show
  1. package/dist/package.json +11 -7
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +8 -5
  4. package/.eslintrc.js +0 -58
  5. package/.github/copilot-instructions.md +0 -20
  6. package/.github/workflows/publish.yml +0 -34
  7. package/credentials/LimeCrmApi.credentials.ts +0 -57
  8. package/credentials/LimeGoApi.credentials.ts +0 -31
  9. package/docker-compose.yml +0 -44
  10. package/nodes/lime-crm/GenericTypes.ts +0 -114
  11. package/nodes/lime-crm/LimeCrm.node.json +0 -18
  12. package/nodes/lime-crm/LimeCrmNode.node.ts +0 -154
  13. package/nodes/lime-crm/LimeCrmTrigger/LimeCrmTrigger.node.ts +0 -461
  14. package/nodes/lime-crm/LimeCrmTrigger.node.ts +0 -505
  15. package/nodes/lime-crm/lime-crm.svg +0 -1
  16. package/nodes/lime-crm/methods/getAllSortableFields.ts +0 -73
  17. package/nodes/lime-crm/methods/getLimeTypeProperties.ts +0 -48
  18. package/nodes/lime-crm/methods/getLimeTypeRelations.ts +0 -32
  19. package/nodes/lime-crm/methods/getLimeTypes.ts +0 -33
  20. package/nodes/lime-crm/methods/getRelatedTypeProperties.ts +0 -47
  21. package/nodes/lime-crm/methods/index.ts +0 -5
  22. package/nodes/lime-crm/resources/limeObject/commonFields.ts +0 -179
  23. package/nodes/lime-crm/resources/limeObject/index.ts +0 -64
  24. package/nodes/lime-crm/resources/limeObject/operations/common.operation.ts +0 -35
  25. package/nodes/lime-crm/resources/limeObject/operations/create.operation.ts +0 -234
  26. package/nodes/lime-crm/resources/limeObject/operations/delete.operation.ts +0 -136
  27. package/nodes/lime-crm/resources/limeObject/operations/get.operation.ts +0 -124
  28. package/nodes/lime-crm/resources/limeObject/operations/getAll.operation.ts +0 -242
  29. package/nodes/lime-crm/resources/limeObject/operations/search.operation.ts +0 -242
  30. package/nodes/lime-crm/resources/limeObject/operations/update.operation.ts +0 -201
  31. package/nodes/lime-crm/resources/limeType/index.ts +0 -66
  32. package/nodes/lime-crm/resources/limeType/operations/getProperties.operation.ts +0 -105
  33. package/nodes/lime-crm/resources/limeType/operations/getRelations.operation.ts +0 -105
  34. package/nodes/lime-crm/resources/limeType/operations/getType.operation.ts +0 -58
  35. package/nodes/lime-crm/resources/limeType/operations/listTypes.operation.ts +0 -76
  36. package/nodes/lime-crm/resources/queryApi/index.ts +0 -42
  37. package/nodes/lime-crm/resources/queryApi/operations/executeQuery.operation.ts +0 -605
  38. package/nodes/lime-crm/transport/index.ts +0 -74
  39. package/nodes/lime-go/LimeGo.node.ts +0 -146
  40. package/nodes/lime-go/actions/organization/get.operation.ts +0 -42
  41. package/nodes/lime-go/actions/organization/getByExternalKey.operation.ts +0 -57
  42. package/nodes/lime-go/actions/organization/index.ts +0 -69
  43. package/nodes/lime-go/actions/organization/organizationFields.ts +0 -160
  44. package/nodes/lime-go/actions/organization/search.operation.ts +0 -73
  45. package/nodes/lime-go/actions/organization/update.operation.ts +0 -140
  46. package/nodes/lime-go/actions/person/createMail.operation.ts +0 -140
  47. package/nodes/lime-go/actions/person/get.operation.ts +0 -51
  48. package/nodes/lime-go/actions/person/index.ts +0 -69
  49. package/nodes/lime-go/actions/person/personFields.ts +0 -132
  50. package/nodes/lime-go/actions/person/search.operation.ts +0 -88
  51. package/nodes/lime-go/actions/person/update.operation.ts +0 -122
  52. package/nodes/lime-go/lime-go.svg +0 -1
  53. package/nodes/lime-go/transport/graphqlRequest.ts +0 -30
  54. package/tsconfig.json +0 -30
@@ -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
- }