@limetech/n8n-nodes-lime 0.3.2 → 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.
Files changed (131) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +1 -1
  4. package/dist/credentials/LimeGoApi.credentials.d.ts +0 -15
  5. package/dist/credentials/LimeGoApi.credentials.js +0 -32
  6. package/dist/credentials/LimeGoApi.credentials.js.map +0 -1
  7. package/dist/nodes/LimeCrm/GenericTypes.d.ts +0 -80
  8. package/dist/nodes/LimeCrm/GenericTypes.js +0 -7
  9. package/dist/nodes/LimeCrm/GenericTypes.js.map +0 -1
  10. package/dist/nodes/LimeCrm/LimeCrmNode.node.d.ts +0 -17
  11. package/dist/nodes/LimeCrm/LimeCrmNode.node.js +0 -114
  12. package/dist/nodes/LimeCrm/LimeCrmNode.node.js.map +0 -1
  13. package/dist/nodes/LimeCrm/LimeCrmTrigger/LimeCrmTrigger.node.d.ts +0 -17
  14. package/dist/nodes/LimeCrm/LimeCrmTrigger/LimeCrmTrigger.node.js +0 -408
  15. package/dist/nodes/LimeCrm/LimeCrmTrigger/LimeCrmTrigger.node.js.map +0 -1
  16. package/dist/nodes/LimeCrm/LimeCrmTrigger.node.d.ts +0 -17
  17. package/dist/nodes/LimeCrm/LimeCrmTrigger.node.js +0 -439
  18. package/dist/nodes/LimeCrm/LimeCrmTrigger.node.js.map +0 -1
  19. package/dist/nodes/LimeCrm/lime-crm.svg +0 -1
  20. package/dist/nodes/LimeCrm/methods/getAllSortableFields.d.ts +0 -7
  21. package/dist/nodes/LimeCrm/methods/getAllSortableFields.js +0 -53
  22. package/dist/nodes/LimeCrm/methods/getAllSortableFields.js.map +0 -1
  23. package/dist/nodes/LimeCrm/methods/getLimeTypeProperties.d.ts +0 -3
  24. package/dist/nodes/LimeCrm/methods/getLimeTypeProperties.js +0 -40
  25. package/dist/nodes/LimeCrm/methods/getLimeTypeProperties.js.map +0 -1
  26. package/dist/nodes/LimeCrm/methods/getLimeTypeRelations.d.ts +0 -7
  27. package/dist/nodes/LimeCrm/methods/getLimeTypeRelations.js +0 -30
  28. package/dist/nodes/LimeCrm/methods/getLimeTypeRelations.js.map +0 -1
  29. package/dist/nodes/LimeCrm/methods/getLimeTypes.d.ts +0 -3
  30. package/dist/nodes/LimeCrm/methods/getLimeTypes.js +0 -33
  31. package/dist/nodes/LimeCrm/methods/getLimeTypes.js.map +0 -1
  32. package/dist/nodes/LimeCrm/methods/getRelatedTypeProperties.d.ts +0 -7
  33. package/dist/nodes/LimeCrm/methods/getRelatedTypeProperties.js +0 -39
  34. package/dist/nodes/LimeCrm/methods/getRelatedTypeProperties.js.map +0 -1
  35. package/dist/nodes/LimeCrm/methods/index.d.ts +0 -5
  36. package/dist/nodes/LimeCrm/methods/index.js +0 -14
  37. package/dist/nodes/LimeCrm/methods/index.js.map +0 -1
  38. package/dist/nodes/LimeCrm/resources/limeObject/commonFields.d.ts +0 -4
  39. package/dist/nodes/LimeCrm/resources/limeObject/commonFields.js +0 -165
  40. package/dist/nodes/LimeCrm/resources/limeObject/commonFields.js.map +0 -1
  41. package/dist/nodes/LimeCrm/resources/limeObject/index.d.ts +0 -6
  42. package/dist/nodes/LimeCrm/resources/limeObject/index.js +0 -79
  43. package/dist/nodes/LimeCrm/resources/limeObject/index.js.map +0 -1
  44. package/dist/nodes/LimeCrm/resources/limeObject/operations/common.operation.d.ts +0 -2
  45. package/dist/nodes/LimeCrm/resources/limeObject/operations/common.operation.js +0 -36
  46. package/dist/nodes/LimeCrm/resources/limeObject/operations/common.operation.js.map +0 -1
  47. package/dist/nodes/LimeCrm/resources/limeObject/operations/create.operation.d.ts +0 -9
  48. package/dist/nodes/LimeCrm/resources/limeObject/operations/create.operation.js +0 -234
  49. package/dist/nodes/LimeCrm/resources/limeObject/operations/create.operation.js.map +0 -1
  50. package/dist/nodes/LimeCrm/resources/limeObject/operations/delete.operation.d.ts +0 -9
  51. package/dist/nodes/LimeCrm/resources/limeObject/operations/delete.operation.js +0 -136
  52. package/dist/nodes/LimeCrm/resources/limeObject/operations/delete.operation.js.map +0 -1
  53. package/dist/nodes/LimeCrm/resources/limeObject/operations/get.operation.d.ts +0 -9
  54. package/dist/nodes/LimeCrm/resources/limeObject/operations/get.operation.js +0 -125
  55. package/dist/nodes/LimeCrm/resources/limeObject/operations/get.operation.js.map +0 -1
  56. package/dist/nodes/LimeCrm/resources/limeObject/operations/getAll.operation.d.ts +0 -3
  57. package/dist/nodes/LimeCrm/resources/limeObject/operations/getAll.operation.js +0 -212
  58. package/dist/nodes/LimeCrm/resources/limeObject/operations/getAll.operation.js.map +0 -1
  59. package/dist/nodes/LimeCrm/resources/limeObject/operations/search.operation.d.ts +0 -9
  60. package/dist/nodes/LimeCrm/resources/limeObject/operations/search.operation.js +0 -232
  61. package/dist/nodes/LimeCrm/resources/limeObject/operations/search.operation.js.map +0 -1
  62. package/dist/nodes/LimeCrm/resources/limeObject/operations/update.operation.d.ts +0 -9
  63. package/dist/nodes/LimeCrm/resources/limeObject/operations/update.operation.js +0 -186
  64. package/dist/nodes/LimeCrm/resources/limeObject/operations/update.operation.js.map +0 -1
  65. package/dist/nodes/LimeCrm/resources/limeType/index.d.ts +0 -6
  66. package/dist/nodes/LimeCrm/resources/limeType/index.js +0 -81
  67. package/dist/nodes/LimeCrm/resources/limeType/index.js.map +0 -1
  68. package/dist/nodes/LimeCrm/resources/limeType/operations/getProperties.operation.d.ts +0 -9
  69. package/dist/nodes/LimeCrm/resources/limeType/operations/getProperties.operation.js +0 -112
  70. package/dist/nodes/LimeCrm/resources/limeType/operations/getProperties.operation.js.map +0 -1
  71. package/dist/nodes/LimeCrm/resources/limeType/operations/getRelations.operation.d.ts +0 -9
  72. package/dist/nodes/LimeCrm/resources/limeType/operations/getRelations.operation.js +0 -112
  73. package/dist/nodes/LimeCrm/resources/limeType/operations/getRelations.operation.js.map +0 -1
  74. package/dist/nodes/LimeCrm/resources/limeType/operations/getType.operation.d.ts +0 -9
  75. package/dist/nodes/LimeCrm/resources/limeType/operations/getType.operation.js +0 -70
  76. package/dist/nodes/LimeCrm/resources/limeType/operations/getType.operation.js.map +0 -1
  77. package/dist/nodes/LimeCrm/resources/limeType/operations/listTypes.operation.d.ts +0 -9
  78. package/dist/nodes/LimeCrm/resources/limeType/operations/listTypes.operation.js +0 -86
  79. package/dist/nodes/LimeCrm/resources/limeType/operations/listTypes.operation.js.map +0 -1
  80. package/dist/nodes/LimeCrm/resources/queryApi/index.d.ts +0 -6
  81. package/dist/nodes/LimeCrm/resources/queryApi/index.js +0 -57
  82. package/dist/nodes/LimeCrm/resources/queryApi/index.js.map +0 -1
  83. package/dist/nodes/LimeCrm/resources/queryApi/operations/executeQuery.operation.d.ts +0 -9
  84. package/dist/nodes/LimeCrm/resources/queryApi/operations/executeQuery.operation.js +0 -559
  85. package/dist/nodes/LimeCrm/resources/queryApi/operations/executeQuery.operation.js.map +0 -1
  86. package/dist/nodes/LimeCrm/transport/index.d.ts +0 -2
  87. package/dist/nodes/LimeCrm/transport/index.js +0 -50
  88. package/dist/nodes/LimeCrm/transport/index.js.map +0 -1
  89. package/dist/nodes/LimeGo/LimeGo.node.d.ts +0 -8
  90. package/dist/nodes/LimeGo/LimeGo.node.js +0 -123
  91. package/dist/nodes/LimeGo/LimeGo.node.js.map +0 -1
  92. package/dist/nodes/LimeGo/actions/organization/get.operation.d.ts +0 -5
  93. package/dist/nodes/LimeGo/actions/organization/get.operation.js +0 -39
  94. package/dist/nodes/LimeGo/actions/organization/get.operation.js.map +0 -1
  95. package/dist/nodes/LimeGo/actions/organization/getByExternalKey.operation.d.ts +0 -5
  96. package/dist/nodes/LimeGo/actions/organization/getByExternalKey.operation.js +0 -54
  97. package/dist/nodes/LimeGo/actions/organization/getByExternalKey.operation.js.map +0 -1
  98. package/dist/nodes/LimeGo/actions/organization/index.d.ts +0 -7
  99. package/dist/nodes/LimeGo/actions/organization/index.js +0 -92
  100. package/dist/nodes/LimeGo/actions/organization/index.js.map +0 -1
  101. package/dist/nodes/LimeGo/actions/organization/organizationFields.d.ts +0 -2
  102. package/dist/nodes/LimeGo/actions/organization/organizationFields.js +0 -162
  103. package/dist/nodes/LimeGo/actions/organization/organizationFields.js.map +0 -1
  104. package/dist/nodes/LimeGo/actions/organization/search.operation.d.ts +0 -5
  105. package/dist/nodes/LimeGo/actions/organization/search.operation.js +0 -70
  106. package/dist/nodes/LimeGo/actions/organization/search.operation.js.map +0 -1
  107. package/dist/nodes/LimeGo/actions/organization/update.operation.d.ts +0 -5
  108. package/dist/nodes/LimeGo/actions/organization/update.operation.js +0 -125
  109. package/dist/nodes/LimeGo/actions/organization/update.operation.js.map +0 -1
  110. package/dist/nodes/LimeGo/actions/person/createMail.operation.d.ts +0 -7
  111. package/dist/nodes/LimeGo/actions/person/createMail.operation.js +0 -130
  112. package/dist/nodes/LimeGo/actions/person/createMail.operation.js.map +0 -1
  113. package/dist/nodes/LimeGo/actions/person/get.operation.d.ts +0 -7
  114. package/dist/nodes/LimeGo/actions/person/get.operation.js +0 -45
  115. package/dist/nodes/LimeGo/actions/person/get.operation.js.map +0 -1
  116. package/dist/nodes/LimeGo/actions/person/index.d.ts +0 -7
  117. package/dist/nodes/LimeGo/actions/person/index.js +0 -92
  118. package/dist/nodes/LimeGo/actions/person/index.js.map +0 -1
  119. package/dist/nodes/LimeGo/actions/person/personFields.d.ts +0 -2
  120. package/dist/nodes/LimeGo/actions/person/personFields.js +0 -134
  121. package/dist/nodes/LimeGo/actions/person/personFields.js.map +0 -1
  122. package/dist/nodes/LimeGo/actions/person/search.operation.d.ts +0 -7
  123. package/dist/nodes/LimeGo/actions/person/search.operation.js +0 -81
  124. package/dist/nodes/LimeGo/actions/person/search.operation.js.map +0 -1
  125. package/dist/nodes/LimeGo/actions/person/update.operation.d.ts +0 -7
  126. package/dist/nodes/LimeGo/actions/person/update.operation.js +0 -104
  127. package/dist/nodes/LimeGo/actions/person/update.operation.js.map +0 -1
  128. package/dist/nodes/LimeGo/lime-go.svg +0 -1
  129. package/dist/nodes/LimeGo/transport/graphqlRequest.d.ts +0 -2
  130. package/dist/nodes/LimeGo/transport/graphqlRequest.js +0 -23
  131. package/dist/nodes/LimeGo/transport/graphqlRequest.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"LimeCrmTrigger.node.js","sourceRoot":"","sources":["../../../../nodes/LimeCrm/LimeCrmTrigger/LimeCrmTrigger.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAasB;AAGtB,+CAAiC;AACjC,wCAA0C;AAE1C,MAAa,cAAc;IAA3B;QACI,gBAAW,GAAyB;YAChC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACN,IAAI,EAAE,kBAAkB;aAC3B;YACD,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,QAAyB;YAClC,WAAW,EAAE;gBACT;oBACI,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,IAAI;iBACjB;aACJ;YACD,QAAQ,EAAE;gBACN;oBACI,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,MAAM;oBAClB,YAAY,EAAE,YAAY;oBAC1B,IAAI,EAAE,SAAS;iBAClB;aACJ;YACD,UAAU,EAAE;gBACR;oBACI,WAAW,EAAE,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,iBAAiB;oBACvB,WAAW,EAAE;wBACT,cAAc,EAAE,IAAI;wBACpB,QAAQ,EAAE,IAAI;qBACjB;oBACD,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,WAAW;oBACxB,WAAW,EAAE,wBAAwB;oBACrC,OAAO,EAAE;wBACL;4BACI,IAAI,EAAE,OAAO;4BACb,WAA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EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;YAElF,OAAO;gBACH,YAAY,EAAE,CAAC,IAAI,CAAC;aACvB,CAAC;SACL;QAAC,OAAO,KAAK,EAAE;YACZ,0BAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;YACxF,MAAM,KAAK,CAAC;SACf;IACL,CAAC;CACJ;AAzbD,wCAybC"}
@@ -1,17 +0,0 @@
1
- import { IHookFunctions, IWebhookFunctions, INodeType, INodeTypeDescription, IWebhookResponseData, ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
2
- export declare class LimeCrmTrigger implements INodeType {
3
- description: INodeTypeDescription;
4
- methods: {
5
- loadOptions: {
6
- getLimeTypes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
- };
8
- };
9
- webhookMethods: {
10
- default: {
11
- checkExists(this: IHookFunctions): Promise<boolean>;
12
- create(this: IHookFunctions): Promise<boolean>;
13
- delete(this: IHookFunctions): Promise<boolean>;
14
- };
15
- };
16
- webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
17
- }
@@ -1,439 +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.LimeCrmTrigger = void 0;
27
- const n8n_workflow_1 = require("n8n-workflow");
28
- const crypto = __importStar(require("crypto"));
29
- class LimeCrmTrigger {
30
- constructor() {
31
- this.description = {
32
- displayName: 'Lime CRM Trigger',
33
- name: 'limeCrmTrigger',
34
- icon: 'file:lime.svg',
35
- group: ['trigger'],
36
- version: 1,
37
- description: 'Handle Lime CRM webhook events',
38
- defaults: {
39
- name: 'Lime CRM Trigger',
40
- },
41
- inputs: [],
42
- outputs: ["main"],
43
- credentials: [
44
- {
45
- name: 'limeCrmApi',
46
- required: true,
47
- },
48
- ],
49
- webhooks: [
50
- {
51
- name: 'default',
52
- httpMethod: 'POST',
53
- responseMode: 'onReceived',
54
- path: 'webhook',
55
- },
56
- ],
57
- properties: [
58
- {
59
- displayName: 'Events',
60
- name: 'events',
61
- type: 'fixedCollection',
62
- typeOptions: {
63
- multipleValues: true,
64
- required: true,
65
- },
66
- default: {},
67
- placeholder: 'Add Event',
68
- description: 'Events to subscribe to',
69
- options: [
70
- {
71
- name: 'event',
72
- displayName: 'Event',
73
- values: [
74
- {
75
- displayName: 'Lime Type',
76
- name: 'limeType',
77
- type: 'options',
78
- typeOptions: {
79
- loadOptionsMethod: 'getLimeTypes',
80
- },
81
- default: '',
82
- description: 'Lime Type to subscribe to events for',
83
- },
84
- {
85
- displayName: 'Event Type',
86
- name: 'eventType',
87
- type: 'options',
88
- options: [
89
- {
90
- name: 'New',
91
- value: 'new',
92
- description: 'When a new record is created',
93
- },
94
- {
95
- name: 'Update',
96
- value: 'update',
97
- description: 'When a record is updated',
98
- },
99
- {
100
- name: 'Delete',
101
- value: 'delete',
102
- description: 'When a record is deleted',
103
- },
104
- ],
105
- default: 'new',
106
- description: 'Type of event to subscribe to',
107
- },
108
- ],
109
- },
110
- ],
111
- },
112
- {
113
- displayName: 'Name',
114
- name: 'name',
115
- type: 'string',
116
- default: '',
117
- placeholder: 'my-lime-webhook',
118
- required: true,
119
- description: 'Name for this webhook subscription',
120
- },
121
- {
122
- displayName: 'Options',
123
- name: 'options',
124
- type: 'collection',
125
- placeholder: 'Add Option',
126
- default: {},
127
- options: [
128
- {
129
- displayName: 'Include Headers',
130
- name: 'includeHeaders',
131
- type: 'fixedCollection',
132
- typeOptions: {
133
- multipleValues: true,
134
- },
135
- default: {},
136
- placeholder: 'Add Header',
137
- description: 'Headers to add to webhook requests',
138
- options: [
139
- {
140
- name: 'header',
141
- displayName: 'Header',
142
- values: [
143
- {
144
- displayName: 'Name',
145
- name: 'name',
146
- type: 'string',
147
- default: '',
148
- description: 'Name of the header',
149
- },
150
- {
151
- displayName: 'Value',
152
- name: 'value',
153
- type: 'string',
154
- default: '',
155
- description: 'Value of the header',
156
- },
157
- {
158
- displayName: 'Is Secret',
159
- name: 'isSecret',
160
- type: 'boolean',
161
- default: false,
162
- description: 'Whether this value is a secret',
163
- },
164
- ],
165
- },
166
- ],
167
- },
168
- {
169
- displayName: 'Secret',
170
- name: 'secret',
171
- type: 'string',
172
- typeOptions: {
173
- password: true,
174
- },
175
- default: '',
176
- description: 'Secret to verify the authenticity of received data',
177
- },
178
- ],
179
- },
180
- ],
181
- };
182
- this.methods = {
183
- loadOptions: {
184
- async getLimeTypes() {
185
- const returnData = [];
186
- try {
187
- const credentials = await this.getCredentials('limeCrmApi');
188
- if (!credentials) {
189
- throw new Error('No credentials provided');
190
- }
191
- const endpoint = '/api/v1/limetype/';
192
- const options = {
193
- method: 'GET',
194
- uri: endpoint,
195
- json: true,
196
- baseURL: credentials.url,
197
- headers: {
198
- 'X-API-Key': credentials.apiKey,
199
- 'Accept': 'application/json',
200
- },
201
- };
202
- const response = await this.helpers.requestWithAuthentication.call(this, 'limeCrmApi', options);
203
- if (response._links && response._links.limetypes) {
204
- for (const limeType of response._links.limetypes) {
205
- if (limeType.name) {
206
- returnData.push({
207
- name: limeType.name,
208
- value: limeType.name,
209
- });
210
- }
211
- }
212
- }
213
- return returnData;
214
- }
215
- catch (error) {
216
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to load Lime Types: ${error}`);
217
- }
218
- },
219
- },
220
- };
221
- this.webhookMethods = {
222
- default: {
223
- async checkExists() {
224
- const nodeId = this.getNode().id;
225
- const workflowId = this.getWorkflow().id;
226
- const workflowName = this.getWorkflow().name;
227
- const webhookData = this.getWorkflowStaticData('node');
228
- const webhookUrl = this.getNodeWebhookUrl('default');
229
- if (webhookData.webhookId) {
230
- try {
231
- const credentials = await this.getCredentials('limeCrmApi');
232
- if (!credentials) {
233
- throw new Error('No credentials provided');
234
- }
235
- const currentWebhook = await this.helpers.requestWithAuthentication.call(this, 'limeCrmApi', {
236
- method: 'GET',
237
- uri: `/api/v1/subscription/${webhookData.webhookId}/`,
238
- json: true,
239
- baseURL: credentials.url,
240
- headers: {
241
- 'X-API-Key': credentials.apiKey,
242
- 'Accept': 'application/json',
243
- },
244
- });
245
- if (currentWebhook && currentWebhook.target_url === webhookUrl) {
246
- n8n_workflow_1.LoggerProxy.debug(`Webhook exists: ${webhookData.webhookId}`, { webhookId: webhookData.webhookId, nodeId, workflowId, workflowName });
247
- return true;
248
- }
249
- }
250
- catch (error) {
251
- n8n_workflow_1.LoggerProxy.warn(`Webhook check failed: ${error}`, { webhookId: webhookData.webhookId, nodeId, workflowId, workflowName, error });
252
- delete webhookData.webhookId;
253
- return false;
254
- }
255
- }
256
- return false;
257
- },
258
- async create() {
259
- const nodeId = this.getNode().id;
260
- const workflowId = this.getWorkflow().id;
261
- const workflowName = this.getWorkflow().name;
262
- const webhookData = this.getWorkflowStaticData('node');
263
- const webhookUrl = this.getNodeWebhookUrl('default');
264
- if (!webhookUrl) {
265
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No webhook URL was returned by the system');
266
- }
267
- const name = this.getNodeParameter('name');
268
- const eventsCollection = this.getNodeParameter('events.event', []);
269
- const options = this.getNodeParameter('options', {});
270
- const credentials = await this.getCredentials('limeCrmApi');
271
- if (!credentials) {
272
- throw new Error('No credentials provided');
273
- }
274
- const events = [];
275
- for (const eventItem of eventsCollection) {
276
- events.push(`${eventItem.limeType}.${eventItem.eventType}`);
277
- }
278
- events.sort();
279
- const headersCollection = (options.includeHeaders || {}).header || [];
280
- const headers = [];
281
- for (const header of headersCollection) {
282
- if (header.isSecret) {
283
- headers.push({
284
- name: header.name,
285
- value: '',
286
- secret_value: header.value,
287
- type: 'text',
288
- });
289
- }
290
- else {
291
- headers.push({
292
- name: header.name,
293
- value: header.value,
294
- type: 'text',
295
- });
296
- }
297
- }
298
- const body = {
299
- name,
300
- events,
301
- target_url: webhookUrl,
302
- enabled: true,
303
- headers,
304
- };
305
- const secret = options.secret;
306
- if (secret) {
307
- body.secret = secret;
308
- }
309
- try {
310
- n8n_workflow_1.LoggerProxy.info('Creating new webhook subscription', { nodeId, workflowId, workflowName });
311
- const webhookResponse = await this.helpers.requestWithAuthentication.call(this, 'limeCrmApi', {
312
- method: 'POST',
313
- uri: '/api/v1/subscription/',
314
- body,
315
- json: true,
316
- baseURL: credentials.url,
317
- headers: {
318
- 'X-API-Key': credentials.apiKey,
319
- 'Accept': 'application/json',
320
- 'Content-Type': 'application/json',
321
- },
322
- });
323
- if (webhookResponse.id) {
324
- webhookData.webhookId = webhookResponse.id;
325
- n8n_workflow_1.LoggerProxy.info(`Created webhook with ID: ${webhookResponse.id}`, { webhookId: webhookResponse.id, nodeId, workflowId, workflowName });
326
- return true;
327
- }
328
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Webhook creation failed: No ID was returned');
329
- }
330
- catch (error) {
331
- n8n_workflow_1.LoggerProxy.error(`Webhook creation failed: ${error}`, { nodeId, workflowId, workflowName, error });
332
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Webhook creation failed: ${error}`);
333
- }
334
- },
335
- async delete() {
336
- const nodeId = this.getNode().id;
337
- const workflowId = this.getWorkflow().id;
338
- const workflowName = this.getWorkflow().name;
339
- const webhookData = this.getWorkflowStaticData('node');
340
- const webhookId = webhookData.webhookId;
341
- if (webhookId !== undefined) {
342
- try {
343
- n8n_workflow_1.LoggerProxy.info(`Deleting webhook with ID: ${webhookId}`, { webhookId, nodeId, workflowId, workflowName });
344
- const credentials = await this.getCredentials('limeCrmApi');
345
- if (!credentials) {
346
- throw new Error('No credentials provided');
347
- }
348
- await this.helpers.requestWithAuthentication.call(this, 'limeCrmApi', {
349
- method: 'DELETE',
350
- uri: `/api/v1/subscription/${webhookId}/`,
351
- json: true,
352
- baseURL: credentials.url,
353
- headers: {
354
- 'X-API-Key': credentials.apiKey,
355
- 'Accept': 'application/json',
356
- },
357
- });
358
- delete webhookData.webhookId;
359
- n8n_workflow_1.LoggerProxy.info('Webhook deleted successfully', { webhookId, nodeId, workflowId, workflowName });
360
- return true;
361
- }
362
- catch (error) {
363
- n8n_workflow_1.LoggerProxy.error(`Webhook deletion failed: ${error}`, { webhookId, nodeId, workflowId, workflowName, error });
364
- return false;
365
- }
366
- }
367
- return true;
368
- },
369
- },
370
- };
371
- }
372
- async webhook() {
373
- const nodeId = this.getNode().id;
374
- const workflowId = this.getWorkflow().id;
375
- const workflowName = this.getWorkflow().name;
376
- n8n_workflow_1.LoggerProxy.info('Webhook received. Starting webhook processing...', { nodeId, workflowId, workflowName });
377
- try {
378
- const options = this.getNodeParameter('options', {});
379
- const secret = options.secret;
380
- const bodyData = this.getBodyData();
381
- const headerData = this.getHeaderData();
382
- if (secret && headerData['x-lime-signature']) {
383
- n8n_workflow_1.LoggerProxy.debug('Verifying webhook signature...', { nodeId, workflowId, workflowName });
384
- const signature = headerData['x-lime-signature'];
385
- const req = this.getRequestObject();
386
- const rawBody = req.rawBody || JSON.stringify(bodyData);
387
- const hmac = crypto.createHmac('sha256', secret);
388
- hmac.update(rawBody);
389
- const expectedSignature = hmac.digest('hex');
390
- if (signature !== expectedSignature) {
391
- n8n_workflow_1.LoggerProxy.warn('Signature verification FAILED!', { nodeId, workflowId, workflowName });
392
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Invalid webhook signature');
393
- }
394
- n8n_workflow_1.LoggerProxy.debug('Signature verification successful', { nodeId, workflowId, workflowName });
395
- }
396
- const typedBodyData = bodyData;
397
- if (!typedBodyData || !typedBodyData.event || !typedBodyData.body) {
398
- n8n_workflow_1.LoggerProxy.warn('Webhook data is invalid. Missing event or body', { nodeId, workflowId, workflowName });
399
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Webhook data is invalid');
400
- }
401
- const eventParts = typedBodyData.event.split('.');
402
- if (eventParts.length !== 2) {
403
- n8n_workflow_1.LoggerProxy.warn(`Invalid event format: ${typedBodyData.event}`, { nodeId, workflowId, workflowName, event: typedBodyData.event });
404
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Invalid event format: ${typedBodyData.event}`);
405
- }
406
- const limeType = eventParts[0];
407
- const eventType = eventParts[1];
408
- n8n_workflow_1.LoggerProxy.info(`Processing ${limeType}.${eventType} event for ID: ${typedBodyData.body.id}`, {
409
- limeType,
410
- eventType,
411
- recordId: typedBodyData.body.id,
412
- nodeId,
413
- workflowId,
414
- workflowName
415
- });
416
- const data = [
417
- {
418
- json: {
419
- limeType,
420
- eventType,
421
- id: typedBodyData.body.id,
422
- data: typedBodyData.body.values || {},
423
- rawEvent: typedBodyData,
424
- },
425
- },
426
- ];
427
- n8n_workflow_1.LoggerProxy.debug('Webhook processing complete', { nodeId, workflowId, workflowName });
428
- return {
429
- workflowData: [data],
430
- };
431
- }
432
- catch (error) {
433
- n8n_workflow_1.LoggerProxy.error('Error in webhook execution', { error, nodeId, workflowId, workflowName });
434
- throw error;
435
- }
436
- }
437
- }
438
- exports.LimeCrmTrigger = LimeCrmTrigger;
439
- //# sourceMappingURL=LimeCrmTrigger.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LimeCrmTrigger.node.js","sourceRoot":"","sources":["../../../nodes/LimeCrm/LimeCrmTrigger.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAasB;AAGtB,+CAAiC;AAEjC,MAAa,cAAc;IAA3B;QACI,gBAAW,GAAyB;YAChC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACN,IAAI,EAAE,kBAAkB;aAC3B;YACD,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,QAAyB;YAClC,WAAW,EAAE;gBACT;oBACI,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,IAAI;iBACjB;aACJ;YACD,QAAQ,EAAE;gBACN;oBACI,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,MAAM;oBAClB,YAAY,EAAE,YAAY;oBAC1B,IAAI,EAAE,SAAS;iBAClB;aACJ;YACD,UAAU,EAAE;gBACR;oBACI,WAAW,EAAE,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,iBAAiB;oBACvB,WAAW,EAAE;wBACT,cAAc,EAAE,IAAI;wBACpB,QAAQ,EAAE,IAAI;qBACjB;oBACD,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,WAAW;oBACxB,WAAW,EAAE,wBAAwB;oBACrC,OAAO,EAAE;wBACL;4BACI,IAAI,EAAE,OAAO;4BACb,WAAW,EAAE,OAAO;4BACpB,MAAM,EAAE;gCACJ;oCACI,WAAW,EAAE,WAAW;oCACxB,IAAI,EAAE,UAAU;oCAChB,IAAI,EAAE,SAAS;oCACf,WAAW,EAAE;wCACT,iBAAiB,EAAE,cAAc;qCACpC;oCACD,OAAO,EAAE,EAAE;oCACX,WAAW,EAAE,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.org/2000/svg" xml:space="preserve"><clipPath id="a"><path d="M0 .03h1024v1024H0z"/></clipPath><g clip-path="url(#a)"><path d="M92.399 480.888c0-257.059 208.719-465.779 465.78-465.779C815.28 15.109 1024 223.829 1024 480.888c0 133.713-55.806 271.139-193.403 385.355-166.779 138.45-390.39 157.35-736.15 134.525-102.653-6.785-117.502-24.319-64.468-63.444 166.694-123.047 62.42-217.167 62.42-456.436Z" style="fill:#bee034"/><clipPath id="b"><path d="M92.399 480.888c0-257.059 208.719-465.779 465.78-465.779C815.28 15.109 1024 223.829 1024 480.888c0 133.713-55.806 271.139-193.403 385.355-166.779 138.45-390.39 157.35-736.15 134.525-102.653-6.785-117.502-24.319-64.468-63.444 166.694-123.047 62.42-217.167 62.42-456.436Z"/></clipPath><g clip-path="url(#b)"><path d="M1023-361.59c0 784.587-711.326 1420.62-1588.79 1420.62C-1402.638-283.55 1023-1146.18 1023-361.59Z" style="fill:#a6efff;filter:blur(200px)"/></g><path d="M433.85 723.911c-24.702-12.757-47.23-29.226-66.813-48.596-9.088-9.002-23.765-8.959-32.768.129-9.001 9.087-8.916 23.763.171 32.766 22.911 22.698 49.236 41.941 78.121 56.873 11.392 5.888 25.385 1.409 31.231-9.94 5.888-11.349 1.409-25.344-9.942-31.232Zm367.266-363.98a270.163 270.163 0 0 1 25.556 78.547c2.048 12.629 13.952 21.206 26.581 19.158 12.586-2.006 21.204-13.951 19.156-26.539a316.387 316.387 0 0 0-29.907-92.029c-5.803-11.434-19.754-15.999-31.146-10.24-11.393 5.76-16 19.713-10.24 31.103Zm-51.497 315.384c-19.584 19.37-42.069 35.839-66.815 48.596-11.349 5.888-15.786 19.883-9.94 31.232 5.887 11.349 19.881 15.828 31.229 9.94 28.929-14.932 55.253-34.175 78.164-56.873 9.045-9.003 9.131-23.679.128-32.766-9.002-9.088-23.678-9.131-32.766-.129ZM517.006 213.546a274.904 274.904 0 0 1 41.343-3.114c14.036 0 27.861 1.066 41.343 3.114 12.629 1.919 24.448-6.784 26.367-19.413 1.962-12.628-6.741-24.446-19.371-26.409a322.626 322.626 0 0 0-48.339-3.627 322.201 322.201 0 0 0-48.34 3.627c-12.672 1.963-21.332 13.781-19.413 26.409 1.92 12.629 13.739 21.332 26.41 19.413Zm41.343 490.355c-40.489 0-73.385 32.853-73.385 73.342s32.896 73.385 73.385 73.385c40.489 0 73.342-32.896 73.342-73.385 0-40.489-32.853-73.342-73.342-73.342ZM290.025 438.478c4.481-27.818 13.227-54.227 25.514-78.547 5.761-11.39 1.195-25.343-10.239-31.103-11.392-5.759-25.343-1.194-31.104 10.24a313.893 313.893 0 0 0-29.908 92.029c-2.048 12.588 6.527 24.533 19.157 26.539 12.629 2.048 24.532-6.529 26.58-19.158Zm479.092 112.254c-12.501 38.527 8.618 79.955 47.102 92.456 38.528 12.502 79.956-8.618 92.457-47.104 12.501-38.525-8.619-79.953-47.103-92.455-38.527-12.501-79.955 8.619-92.456 47.103Zm-80.51-247.802c32.766 23.808 78.675 16.554 102.482-16.212 23.808-32.767 16.512-78.675-16.256-102.482-32.723-23.809-78.675-16.512-102.439 16.254-23.808 32.725-16.555 78.633 16.213 102.44Zm-260.558 0c32.766-23.807 40.063-69.715 16.254-102.44-23.807-32.766-69.715-40.063-102.482-16.254-32.766 23.807-40.02 69.715-16.255 102.482 23.806 32.766 69.758 40.02 102.483 16.212Zm-80.51 247.802c-12.501-38.484-53.929-59.604-92.415-47.103-38.526 12.502-59.645 53.93-47.102 92.455 12.501 38.486 53.929 59.606 92.413 47.104 38.528-12.501 59.605-53.929 47.104-92.456Z" style="fill:#fff"/></g></svg>
@@ -1,7 +0,0 @@
1
- import { ILoadOptionsFunctions } from 'n8n-workflow';
2
- interface SortableField {
3
- name: string;
4
- value: string;
5
- }
6
- export declare function getAllSortableFields(this: ILoadOptionsFunctions): Promise<SortableField[]>;
7
- export default getAllSortableFields;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAllSortableFields = void 0;
4
- const transport_1 = require("../transport");
5
- async function getAllSortableFields() {
6
- const limeType = this.getNodeParameter('limetype', '');
7
- const includeRelations = this.getNodeParameter('includeRelations', false);
8
- if (!limeType)
9
- return [];
10
- try {
11
- const propertiesResponse = await transport_1.apiRequest.call(this, {
12
- method: 'GET',
13
- endpoint: `/api/v1/limetype/${limeType}/property`,
14
- });
15
- let sortableFields = [];
16
- if (propertiesResponse && Array.isArray(propertiesResponse)) {
17
- sortableFields = propertiesResponse.map((property) => ({
18
- name: property.name,
19
- value: property.name,
20
- }));
21
- }
22
- if (includeRelations) {
23
- const relationsResponse = await transport_1.apiRequest.call(this, {
24
- method: 'GET',
25
- endpoint: `/api/v1/limetype/${limeType}/relation`,
26
- });
27
- if (relationsResponse && Array.isArray(relationsResponse)) {
28
- for (const relation of relationsResponse) {
29
- const targetType = relation.targettype;
30
- const relationName = relation.name;
31
- const targetPropertiesResponse = await transport_1.apiRequest.call(this, {
32
- method: 'GET',
33
- endpoint: `/api/v1/limetype/${targetType}/property`,
34
- });
35
- if (targetPropertiesResponse && Array.isArray(targetPropertiesResponse)) {
36
- sortableFields.push(...targetPropertiesResponse.map((property) => ({
37
- name: `${relationName}.${property.name}`,
38
- value: `${relationName}.${property.name}`,
39
- })));
40
- }
41
- }
42
- }
43
- }
44
- return sortableFields;
45
- }
46
- catch (error) {
47
- console.error(`Error loading sortable fields for ${limeType}:`, error);
48
- return [];
49
- }
50
- }
51
- exports.getAllSortableFields = getAllSortableFields;
52
- exports.default = getAllSortableFields;
53
- //# sourceMappingURL=getAllSortableFields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAllSortableFields.js","sourceRoot":"","sources":["../../../../nodes/LimeCrm/methods/getAllSortableFields.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAanC,KAAK,UAAU,oBAAoB;IACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,CAAW,CAAC;IACjE,MAAM,gBAAgB,GAA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,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC,QAAqB,EAAE,EAAE,CAAC,CAAC;4BACxD,IAAI,EAAE,GAAG,YAAY,IAAI,QAAQ,CAAC,IAAI,EAAE;4BACxC,KAAK,EAAE,GAAG,YAAY,IAAI,QAAQ,CAAC,IAAI,EAAE;yBAC5C,CAAC,CAAC,CACN,CAAC;qBACL;iBACJ;aACJ;SACJ;QAED,OAAO,cAAc,CAAC;KACzB;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,qCAAqC,QAAQ,GAAG,EAAE,KAAK,CAAC,CAAC;QACvE,OAAO,EAAE,CAAC;KACb;AACL,CAAC;AAxDD,oDAwDC;AAED,kBAAe,oBAAoB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
2
- export declare function getLimeTypeProperties(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
3
- export default getLimeTypeProperties;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getLimeTypeProperties = void 0;
4
- const transport_1 = require("../transport");
5
- async function getLimeTypeProperties() {
6
- const limeType = this.getNodeParameter('limeType', '');
7
- console.log('Fetching properties for Lime type:', limeType);
8
- if (!limeType)
9
- return [];
10
- try {
11
- const response = await transport_1.apiRequest.call(this, {
12
- method: 'GET',
13
- endpoint: `/api/v1/limetype/${limeType}/`,
14
- qs: {
15
- _embed: 'properties',
16
- },
17
- });
18
- const systemProperties = [
19
- { name: 'ID', value: 'id', description: 'Unique identifier (integer)' },
20
- { name: 'Updated (System)', value: 'timestamp', description: 'Last update timestamp (datetime)' },
21
- { name: 'Created (System)', value: 'createdtime', description: 'Creation timestamp (datetime)' },
22
- { name: 'Created By', value: 'createduser', description: 'User ID that created the record (integer)' },
23
- { name: 'Updated By', value: 'updateduser', description: 'User ID that last updated the record (integer)' },
24
- ];
25
- let apiProperties = [];
26
- apiProperties = response._embedded.properties.map((property) => ({
27
- name: property.localname || property.name,
28
- value: property.name,
29
- description: `Type: ${property.type}${property.required ? ' (Required)' : ''} | DB: ${property.name}`,
30
- }));
31
- return [...systemProperties, ...apiProperties];
32
- }
33
- catch (error) {
34
- console.error(`Error loading properties for ${limeType}:`, error);
35
- return [];
36
- }
37
- }
38
- exports.getLimeTypeProperties = getLimeTypeProperties;
39
- exports.default = getLimeTypeProperties;
40
- //# sourceMappingURL=getLimeTypeProperties.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getLimeTypeProperties.js","sourceRoot":"","sources":["../../../../nodes/LimeCrm/methods/getLimeTypeProperties.ts"],"names":[],"mappings":";;;AACA,4CAA0C;AAKnC,KAAK,UAAU,qBAAqB;IACvC,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,CAAW,CAAC;IACjE,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,QAAQ,CAAC,CAAC;IAC5D,IAAI,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEzB,IAAI;QACA,MAAM,QAAQ,GAAG,MAAM,sBAAU,CAAC,IAAI,CAAC,IAAI,EAAE;YACzC,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,oBAAoB,QAAQ,GAAG;YACzC,EAAE,EAAE;gBACA,MAAM,EAAE,YAAY;aACvB;SACJ,CAAC,CAAC;QAGH,MAAM,gBAAgB,GAA2B;YAC7C,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,6BAA6B,EAAE;YACvE,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,kCAAkC,EAAE;YACjG,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,+BAA+B,EAAE;YAChG,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,2CAA2C,EAAE;YACtG,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,gDAAgD,EAAE;SAC9G,CAAC;QAGF,IAAI,aAAa,GAA2B,EAAE,CAAC;QAG/C,aAAa,GAAG,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,QAAqB,EAAE,EAAE,CAAC,CAAC;YAC1E,IAAI,EAAG,QAAQ,CAAC,SAAoB,IAAK,QAAQ,CAAC,IAAe;YACjE,KAAK,EAAE,QAAQ,CAAC,IAAc;YAC9B,WAAW,EAAE,SAAS,QAAQ,CAAC,IAAc,GAAI,QAAQ,CAAC,QAAoB,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,UAAU,QAAQ,CAAC,IAAc,EAAE;SACzI,CAAC,CAAC,CAAC;QAGJ,OAAO,CAAC,GAAG,gBAAgB,EAAE,GAAG,aAAa,CAAC,CAAC;KAClD;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,gCAAgC,QAAQ,GAAG,EAAE,KAAK,CAAC,CAAC;QAClE,OAAO,EAAE,CAAC;KACb;AACL,CAAC;AAvCD,sDAuCC;AAED,kBAAe,qBAAqB,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ILoadOptionsFunctions } from 'n8n-workflow';
2
- export declare function getLimeTypeRelations(this: ILoadOptionsFunctions): Promise<{
3
- name: string;
4
- value: string;
5
- description: string;
6
- }[]>;
7
- export default getLimeTypeRelations;