@limetech/n8n-nodes-lime 2.5.5 → 2.6.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/credentials/LimeFormsApi.credentials.ts +100 -0
  3. package/credentials/index.ts +1 -0
  4. package/dist/credentials/LimeFormsApi.credentials.d.ts +10 -0
  5. package/dist/credentials/LimeFormsApi.credentials.js +65 -0
  6. package/dist/credentials/LimeFormsApi.credentials.js.map +1 -0
  7. package/dist/credentials/index.d.ts +1 -0
  8. package/dist/credentials/index.js +1 -0
  9. package/dist/credentials/index.js.map +1 -1
  10. package/dist/nodes/{lime-crm/utils/hmac.js → common.js} +1 -1
  11. package/dist/nodes/common.js.map +1 -0
  12. package/dist/nodes/index.d.ts +1 -0
  13. package/dist/nodes/index.js +1 -0
  14. package/dist/nodes/index.js.map +1 -1
  15. package/dist/nodes/lime-crm/LimeCrmTrigger.node.js +2 -1
  16. package/dist/nodes/lime-crm/LimeCrmTrigger.node.js.map +1 -1
  17. package/dist/nodes/lime-crm/utils/index.d.ts +0 -1
  18. package/dist/nodes/lime-crm/utils/index.js +1 -3
  19. package/dist/nodes/lime-crm/utils/index.js.map +1 -1
  20. package/dist/nodes/lime-forms/LimeFormsTrigger.node.d.ts +17 -0
  21. package/dist/nodes/lime-forms/LimeFormsTrigger.node.js +187 -0
  22. package/dist/nodes/lime-forms/LimeFormsTrigger.node.js.map +1 -0
  23. package/dist/nodes/lime-forms/index.d.ts +1 -0
  24. package/dist/nodes/lime-forms/index.js +18 -0
  25. package/dist/nodes/lime-forms/index.js.map +1 -0
  26. package/dist/nodes/lime-forms/lime-forms.svg +6 -0
  27. package/dist/nodes/lime-forms/transport/request.d.ts +11 -0
  28. package/dist/nodes/lime-forms/transport/request.js +42 -0
  29. package/dist/nodes/lime-forms/transport/request.js.map +1 -0
  30. package/dist/nodes/lime-forms/types/enums/ObservableAction.d.ts +6 -0
  31. package/dist/nodes/lime-forms/types/enums/ObservableAction.js +11 -0
  32. package/dist/nodes/lime-forms/types/enums/ObservableAction.js.map +1 -0
  33. package/dist/nodes/lime-forms/types/enums/ObservableType.d.ts +3 -0
  34. package/dist/nodes/lime-forms/types/enums/ObservableType.js +8 -0
  35. package/dist/nodes/lime-forms/types/enums/ObservableType.js.map +1 -0
  36. package/dist/nodes/lime-forms/types/resources/BaseResponse.d.ts +4 -0
  37. package/dist/nodes/lime-forms/types/resources/BaseResponse.js +3 -0
  38. package/dist/nodes/lime-forms/types/resources/BaseResponse.js.map +1 -0
  39. package/dist/nodes/lime-forms/types/resources/FormExternalIntegrationSimpleResource.d.ts +4 -0
  40. package/dist/nodes/lime-forms/types/resources/FormExternalIntegrationSimpleResource.js +3 -0
  41. package/dist/nodes/lime-forms/types/resources/FormExternalIntegrationSimpleResource.js.map +1 -0
  42. package/dist/nodes/lime-forms/types/resources/ObservableWebhookResources.d.ts +13 -0
  43. package/dist/nodes/lime-forms/types/resources/ObservableWebhookResources.js +3 -0
  44. package/dist/nodes/lime-forms/types/resources/ObservableWebhookResources.js.map +1 -0
  45. package/dist/nodes/lime-forms/utils/workflow.d.ts +2 -0
  46. package/dist/nodes/lime-forms/utils/workflow.js +13 -0
  47. package/dist/nodes/lime-forms/utils/workflow.js.map +1 -0
  48. package/dist/package.json +7 -2
  49. package/dist/tsconfig.tsbuildinfo +1 -1
  50. package/docker-compose.yml +0 -0
  51. package/nodes/index.ts +1 -0
  52. package/nodes/lime-crm/LimeCrmTrigger.node.ts +2 -1
  53. package/nodes/lime-crm/utils/index.ts +0 -1
  54. package/nodes/lime-forms/LimeFormsTrigger.node.ts +258 -0
  55. package/nodes/lime-forms/index.ts +1 -0
  56. package/nodes/lime-forms/lime-forms.svg +6 -0
  57. package/nodes/lime-forms/transport/request.ts +60 -0
  58. package/nodes/lime-forms/types/enums/ObservableAction.ts +7 -0
  59. package/nodes/lime-forms/types/enums/ObservableType.ts +3 -0
  60. package/nodes/lime-forms/types/resources/BaseResponse.ts +4 -0
  61. package/nodes/lime-forms/types/resources/FormExternalIntegrationSimpleResource.ts +4 -0
  62. package/nodes/lime-forms/types/resources/ObservableWebhookResources.ts +16 -0
  63. package/nodes/lime-forms/utils/workflow.ts +17 -0
  64. package/package.json +8 -3
  65. package/dist/nodes/lime-crm/utils/hmac.js.map +0 -1
  66. /package/dist/nodes/{lime-crm/utils/hmac.d.ts → common.d.ts} +0 -0
  67. /package/nodes/{lime-crm/utils/hmac.ts → common.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # [2.6.0](https://github.com/Lundalogik/lime-n8n/compare/v2.5.5...v2.6.0) (2026-01-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * handle duplicates when mismatching state between n8n and forms ([8ea7732](https://github.com/Lundalogik/lime-n8n/commit/8ea773254d5358d0b895484277315e2999507bd5))
7
+ * use function from crm node to verify signature ([a5e3d9d](https://github.com/Lundalogik/lime-n8n/commit/a5e3d9d059a6a21b154a979f40f9cec6f6a31f8c))
8
+
9
+
10
+ ### Features
11
+
12
+ * data integrity validation ([daadd60](https://github.com/Lundalogik/lime-n8n/commit/daadd6007d9ad0af1dd0eac95263da0001f3a723))
13
+ * expose local network ([d136246](https://github.com/Lundalogik/lime-n8n/commit/d136246ea3dd557a7878e0c40da82da213eb0e7f))
14
+ * generate webhook secret in credentials ([e76b39c](https://github.com/Lundalogik/lime-n8n/commit/e76b39c95962752418a0d10ad2d9b5eb3bc2524e))
15
+ * return editor url for node to webhook ([fc7190c](https://github.com/Lundalogik/lime-n8n/commit/fc7190c308d0375f60670c34a65a83596f0d58bd))
16
+ * update .gitignore ([c6dce23](https://github.com/Lundalogik/lime-n8n/commit/c6dce2339b50a834e913a0fdfebc9a1b899eac03))
17
+
1
18
  ## [2.5.5](https://github.com/Lundalogik/lime-n8n/compare/v2.5.4...v2.5.5) (2026-01-09)
2
19
 
3
20
 
@@ -0,0 +1,100 @@
1
+ import {
2
+ ICredentialTestRequest,
3
+ ICredentialType,
4
+ INodeProperties,
5
+ IAuthenticate,
6
+ IHttpRequestMethods,
7
+ } from 'n8n-workflow';
8
+ import crypto from 'node:crypto';
9
+
10
+ export const FORMS_API_CREDENTIALS_NAME = 'limeFormsApi';
11
+
12
+ /**
13
+ * Credentials for Lime Forms
14
+ * --------------------------
15
+ *
16
+ * Allows n8n to connect to Lime Forms API.
17
+ *
18
+ * ## Authentication
19
+ * Uses Bearer Token authentication with an API key/token.
20
+ * Once the credentials are set up, it can be reused across multiple nodes/workflows.
21
+ * N8N will automatically include the API key all requests in Forms nodes.
22
+ *
23
+ * ## Required Fields
24
+ * - **Server URL:** The base URL of your Lime Forms instance.
25
+ * - Example: `https://instance.lime-forms.com`
26
+ *
27
+ * - **API Key:** The API key generated in Lime Forms.
28
+ * - You can obtain it from Lime Forms Admin, under settings page.
29
+ *
30
+ * ## Additional Fields
31
+ * - **Webhook Secret:** A hidden, automatically generated secret (32-byte hex string) used to
32
+ * verify incoming webhook requests from Lime Forms to n8n. This ensures no other entity can
33
+ * send webhooks to your Forms nodes in n8n.
34
+ *
35
+ * ## Testing Connection
36
+ * The `test` property verifies credentials by pinging an endpoint of the provided Lime Forms instance.
37
+ * If the response is successful (HTTP 200), the credentials are valid.
38
+ *
39
+ * ## Related Documentation
40
+ * - Lime Forms Internal Documentation: https://docs.lime-forms.com/
41
+ * - n8n Credentials Guide: https://docs.n8n.io/integrations/credentials/
42
+ * - Forms authentication layer, Laravel Sanctum: https://laravel.com/docs/12.x/sanctum
43
+ *
44
+ */
45
+ export class LimeFormsApi implements ICredentialType {
46
+ name = FORMS_API_CREDENTIALS_NAME;
47
+ displayName = 'Lime Forms API';
48
+ documentationUrl = 'https://docs.lime-forms.com/';
49
+ properties: INodeProperties[] = [
50
+ {
51
+ displayName: 'Server URL',
52
+ name: 'url',
53
+ type: 'string',
54
+ default: '',
55
+ placeholder: 'https://instance.lime-forms.com',
56
+ required: true,
57
+ description: 'The URL of your Lime Forms instance',
58
+ },
59
+ {
60
+ displayName: 'API Key',
61
+ name: 'apiKey',
62
+ type: 'string',
63
+ typeOptions: {
64
+ password: true,
65
+ },
66
+ default: '',
67
+ required: true,
68
+ description: 'API key obtained from Lime Forms',
69
+ },
70
+ {
71
+ displayName: 'Webhook secret',
72
+ name: 'webhookSecret',
73
+ type: 'hidden',
74
+ typeOptions: {
75
+ password: true,
76
+ },
77
+ default: crypto.randomBytes(32).toString('hex'),
78
+ required: true,
79
+ description:
80
+ 'A secret to verify integrity of incoming webhooks from Lime Forms',
81
+ },
82
+ ];
83
+
84
+ test: ICredentialTestRequest = {
85
+ request: {
86
+ baseURL: '={{$credentials.url}}'.replace('/+$', ''),
87
+ url: '/api/v1/external-integrations/ping',
88
+ method: 'GET' as IHttpRequestMethods,
89
+ },
90
+ };
91
+
92
+ authenticate: IAuthenticate = {
93
+ type: 'generic',
94
+ properties: {
95
+ headers: {
96
+ Authorization: '=Bearer {{$credentials.apiKey}}',
97
+ },
98
+ },
99
+ };
100
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './LimeCrmApi.credentials';
2
2
  export * from './FortnoxApi.credentials';
3
+ export * from './LimeFormsApi.credentials';
@@ -0,0 +1,10 @@
1
+ import { ICredentialTestRequest, ICredentialType, INodeProperties, IAuthenticate } from 'n8n-workflow';
2
+ export declare const FORMS_API_CREDENTIALS_NAME = "limeFormsApi";
3
+ export declare class LimeFormsApi implements ICredentialType {
4
+ name: string;
5
+ displayName: string;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ test: ICredentialTestRequest;
9
+ authenticate: IAuthenticate;
10
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LimeFormsApi = exports.FORMS_API_CREDENTIALS_NAME = void 0;
7
+ const node_crypto_1 = __importDefault(require("node:crypto"));
8
+ exports.FORMS_API_CREDENTIALS_NAME = 'limeFormsApi';
9
+ class LimeFormsApi {
10
+ constructor() {
11
+ this.name = exports.FORMS_API_CREDENTIALS_NAME;
12
+ this.displayName = 'Lime Forms API';
13
+ this.documentationUrl = 'https://docs.lime-forms.com/';
14
+ this.properties = [
15
+ {
16
+ displayName: 'Server URL',
17
+ name: 'url',
18
+ type: 'string',
19
+ default: '',
20
+ placeholder: 'https://instance.lime-forms.com',
21
+ required: true,
22
+ description: 'The URL of your Lime Forms instance',
23
+ },
24
+ {
25
+ displayName: 'API Key',
26
+ name: 'apiKey',
27
+ type: 'string',
28
+ typeOptions: {
29
+ password: true,
30
+ },
31
+ default: '',
32
+ required: true,
33
+ description: 'API key obtained from Lime Forms',
34
+ },
35
+ {
36
+ displayName: 'Webhook secret',
37
+ name: 'webhookSecret',
38
+ type: 'hidden',
39
+ typeOptions: {
40
+ password: true,
41
+ },
42
+ default: node_crypto_1.default.randomBytes(32).toString('hex'),
43
+ required: true,
44
+ description: 'A secret to verify integrity of incoming webhooks from Lime Forms',
45
+ },
46
+ ];
47
+ this.test = {
48
+ request: {
49
+ baseURL: '={{$credentials.url}}'.replace('/+$', ''),
50
+ url: '/api/v1/external-integrations/ping',
51
+ method: 'GET',
52
+ },
53
+ };
54
+ this.authenticate = {
55
+ type: 'generic',
56
+ properties: {
57
+ headers: {
58
+ Authorization: '=Bearer {{$credentials.apiKey}}',
59
+ },
60
+ },
61
+ };
62
+ }
63
+ }
64
+ exports.LimeFormsApi = LimeFormsApi;
65
+ //# sourceMappingURL=LimeFormsApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimeFormsApi.credentials.js","sourceRoot":"","sources":["../../credentials/LimeFormsApi.credentials.ts"],"names":[],"mappings":";;;;;;AAOA,8DAAiC;AAEpB,QAAA,0BAA0B,GAAG,cAAc,CAAC;AAmCzD,MAAa,YAAY;IAAzB;QACI,SAAI,GAAG,kCAA0B,CAAC;QAClC,gBAAW,GAAG,gBAAgB,CAAC;QAC/B,qBAAgB,GAAG,8BAA8B,CAAC;QAClD,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;gBAC9C,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,qCAAqC;aACrD;YACD;gBACI,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,kCAAkC;aAClD;YACD;gBACI,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,OAAO,EAAE,qBAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAC/C,QAAQ,EAAE,IAAI;gBACd,WAAW,EACP,mEAAmE;aAC1E;SACJ,CAAC;QAEF,SAAI,GAA2B;YAC3B,OAAO,EAAE;gBACL,OAAO,EAAE,uBAAuB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;gBACnD,GAAG,EAAE,oCAAoC;gBACzC,MAAM,EAAE,KAA4B;aACvC;SACJ,CAAC;QAEF,iBAAY,GAAkB;YAC1B,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,aAAa,EAAE,iCAAiC;iBACnD;aACJ;SACJ,CAAC;IACN,CAAC;CAAA;AAvDD,oCAuDC"}
@@ -1,2 +1,3 @@
1
1
  export * from './LimeCrmApi.credentials';
2
2
  export * from './FortnoxApi.credentials';
3
+ export * from './LimeFormsApi.credentials';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./LimeCrmApi.credentials"), exports);
18
18
  __exportStar(require("./FortnoxApi.credentials"), exports);
19
+ __exportStar(require("./LimeFormsApi.credentials"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../credentials/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../credentials/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,2DAAyC;AACzC,6DAA2C"}
@@ -8,4 +8,4 @@ function generateHmac(key, data) {
8
8
  function verifyHmac(key, data, comparedHmac) {
9
9
  return generateHmac(key, data) === comparedHmac;
10
10
  }
11
- //# sourceMappingURL=hmac.js.map
11
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../nodes/common.ts"],"names":[],"mappings":";;AA4BA,gCAMC;AAlCD,6CAAyC;AAYzC,SAAS,YAAY,CAAC,GAAW,EAAE,IAAY;IAC3C,OAAO,SAAS,GAAG,IAAA,wBAAU,EAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5E,CAAC;AAcD,SAAgB,UAAU,CACtB,GAAW,EACX,IAAY,EACZ,YAAoB;IAEpB,OAAO,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,YAAY,CAAC;AACpD,CAAC"}
@@ -2,3 +2,4 @@ export * from './response';
2
2
  export * from './lime-crm';
3
3
  export * from './fortnox';
4
4
  export * from './modules';
5
+ export * from './lime-forms';
@@ -18,4 +18,5 @@ __exportStar(require("./response"), exports);
18
18
  __exportStar(require("./lime-crm"), exports);
19
19
  __exportStar(require("./fortnox"), exports);
20
20
  __exportStar(require("./modules"), exports);
21
+ __exportStar(require("./lime-forms"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../nodes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../nodes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B"}
@@ -6,6 +6,7 @@ const models_1 = require("./models");
6
6
  const methods_1 = require("./methods");
7
7
  const transport_1 = require("./transport");
8
8
  const utils_1 = require("./utils");
9
+ const common_1 = require("../common");
9
10
  class LimeCrmTrigger {
10
11
  constructor() {
11
12
  this.description = {
@@ -193,7 +194,7 @@ class LimeCrmTrigger {
193
194
  const bodyData = this.getBodyData();
194
195
  const limeSignature = headerData['x-lime-signature'];
195
196
  if ((webhookSecret || limeSignature) &&
196
- !(0, utils_1.verifyHmac)(webhookSecret, requestObject.rawBody, limeSignature)) {
197
+ !(0, common_1.verifyHmac)(webhookSecret, requestObject.rawBody, limeSignature)) {
197
198
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Webhook authentication failed, secret keys do not match!');
198
199
  }
199
200
  if (!bodyData || !bodyData.event || !bodyData.body) {
@@ -1 +1 @@
1
- {"version":3,"file":"LimeCrmTrigger.node.js","sourceRoot":"","sources":["../../../nodes/lime-crm/LimeCrmTrigger.node.ts"],"names":[],"mappings":";;;AAAA,+CAWsB;AAEtB,qCAAuD;AACvD,uCAAyC;AACzC,2CAKqB;AAErB,mCAAiD;AAqBjD,MAAa,cAAc;IAA3B;QAKI,gBAAW,GAAyB;YAChC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE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CACxB,IAAI,CAAC,OAAO,EAAE,EACd,0DAA0D,CAC7D,CAAC;QACN,CAAC;QAED,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACjD,0BAAM,CAAC,IAAI,CAAC,gDAAgD,EAAE;gBAC1D,GAAG,OAAO,CAAC,OAAO;aACrB,CAAC,CAAC;YACH,MAAM,IAAI,iCAAkB,CACxB,IAAI,CAAC,OAAO,EAAE,EACd,yBAAyB,CAC5B,CAAC;QACN,CAAC;QAED,MAAM,UAAU,GAAkB,EAAE,CAAC;QACrC,UAAU,CAAC,IAAI,CAAC;YACZ,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,UAAU;YACnB,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE;SAC7B,CAAC,CAAC;QAEH,OAAO,EAAE,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC;IACxE,CAAC;CACJ;AApSD,wCAoSC"}
@@ -1,4 +1,3 @@
1
1
  export { setFilename, getFilenameFromHeader, getFilePropertiesNames, processFileResponse, setFileProperties, } from './files';
2
- export { verifyHmac } from './hmac';
3
2
  export { getWebhook } from './webhook';
4
3
  export { handleWorkflowError, WorkflowErrorContext } from '../../errorHandling';
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handleWorkflowError = exports.getWebhook = exports.verifyHmac = exports.setFileProperties = exports.processFileResponse = exports.getFilePropertiesNames = exports.getFilenameFromHeader = exports.setFilename = void 0;
3
+ exports.handleWorkflowError = exports.getWebhook = exports.setFileProperties = exports.processFileResponse = exports.getFilePropertiesNames = exports.getFilenameFromHeader = exports.setFilename = void 0;
4
4
  var files_1 = require("./files");
5
5
  Object.defineProperty(exports, "setFilename", { enumerable: true, get: function () { return files_1.setFilename; } });
6
6
  Object.defineProperty(exports, "getFilenameFromHeader", { enumerable: true, get: function () { return files_1.getFilenameFromHeader; } });
7
7
  Object.defineProperty(exports, "getFilePropertiesNames", { enumerable: true, get: function () { return files_1.getFilePropertiesNames; } });
8
8
  Object.defineProperty(exports, "processFileResponse", { enumerable: true, get: function () { return files_1.processFileResponse; } });
9
9
  Object.defineProperty(exports, "setFileProperties", { enumerable: true, get: function () { return files_1.setFileProperties; } });
10
- var hmac_1 = require("./hmac");
11
- Object.defineProperty(exports, "verifyHmac", { enumerable: true, get: function () { return hmac_1.verifyHmac; } });
12
10
  var webhook_1 = require("./webhook");
13
11
  Object.defineProperty(exports, "getWebhook", { enumerable: true, get: function () { return webhook_1.getWebhook; } });
14
12
  var errorHandling_1 = require("../../errorHandling");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/utils/index.ts"],"names":[],"mappings":";;;AAAA,iCAMiB;AALb,oGAAA,WAAW,OAAA;AACX,8GAAA,qBAAqB,OAAA;AACrB,+GAAA,sBAAsB,OAAA;AACtB,4GAAA,mBAAmB,OAAA;AACnB,0GAAA,iBAAiB,OAAA;AAErB,+BAAoC;AAA3B,kGAAA,UAAU,OAAA;AACnB,qCAAuC;AAA9B,qGAAA,UAAU,OAAA;AACnB,qDAAgF;AAAvE,oHAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/lime-crm/utils/index.ts"],"names":[],"mappings":";;;AAAA,iCAMiB;AALb,oGAAA,WAAW,OAAA;AACX,8GAAA,qBAAqB,OAAA;AACrB,+GAAA,sBAAsB,OAAA;AACtB,4GAAA,mBAAmB,OAAA;AACnB,0GAAA,iBAAiB,OAAA;AAErB,qCAAuC;AAA9B,qGAAA,UAAU,OAAA;AACnB,qDAAgF;AAAvE,oHAAA,mBAAmB,OAAA"}
@@ -0,0 +1,17 @@
1
+ import { IHookFunctions, ILoadOptionsFunctions, INodePropertyOptions, INodeType, INodeTypeDescription, IWebhookFunctions, IWebhookResponseData } from 'n8n-workflow';
2
+ export declare class LimeFormsTrigger implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getForms(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
+ }
@@ -0,0 +1,187 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LimeFormsTrigger = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const request_1 = require("./transport/request");
6
+ const ObservableAction_1 = require("./types/enums/ObservableAction");
7
+ const ObservableType_1 = require("./types/enums/ObservableType");
8
+ const credentials_1 = require("../../credentials");
9
+ const workflow_1 = require("./utils/workflow");
10
+ const common_1 = require("../common");
11
+ const errorHandling_1 = require("../errorHandling");
12
+ const FORMS_OBSERVABLE_WEBHOOK_NAME_PREFIX = 'N8N';
13
+ class LimeFormsTrigger {
14
+ constructor() {
15
+ this.description = {
16
+ displayName: 'Lime Forms Trigger',
17
+ name: 'limeFormsTrigger',
18
+ group: ['trigger'],
19
+ version: 1,
20
+ icon: 'file:lime-forms.svg',
21
+ description: 'Handle webhooks from Lime Forms',
22
+ defaults: {
23
+ name: 'Lime Forms',
24
+ },
25
+ credentials: [
26
+ {
27
+ name: credentials_1.FORMS_API_CREDENTIALS_NAME,
28
+ required: true,
29
+ },
30
+ ],
31
+ inputs: [],
32
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
33
+ webhooks: [
34
+ {
35
+ name: 'default',
36
+ httpMethod: 'POST',
37
+ responseMode: 'onReceived',
38
+ path: 'lime-forms',
39
+ },
40
+ ],
41
+ properties: [
42
+ {
43
+ displayName: 'Trigger Name',
44
+ name: 'name',
45
+ type: 'string',
46
+ default: '',
47
+ placeholder: 'my-lime-webhook',
48
+ required: true,
49
+ description: 'Name for this webhook subscription',
50
+ },
51
+ {
52
+ displayName: 'Form to monitor',
53
+ name: 'formId',
54
+ type: 'options',
55
+ typeOptions: {
56
+ loadOptionsMethod: 'getForms',
57
+ },
58
+ default: '',
59
+ description: 'Lime Forms to observe submissions for. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
60
+ },
61
+ ],
62
+ };
63
+ this.methods = {
64
+ loadOptions: {
65
+ async getForms() {
66
+ const response = await new request_1.LimeFormsRequest(this).get('/api/v1/external-integrations/forms/');
67
+ if (!response.success) {
68
+ n8n_workflow_1.LoggerProxy.error(`Lime Forms: Failed to load list of forms`);
69
+ return [];
70
+ }
71
+ return response.data.map((form) => {
72
+ return {
73
+ name: form.name,
74
+ value: form.id,
75
+ };
76
+ });
77
+ },
78
+ },
79
+ };
80
+ this.webhookMethods = {
81
+ default: {
82
+ async checkExists() {
83
+ var _a;
84
+ const webhookData = this.getWorkflowStaticData('node');
85
+ const webhookId = webhookData.id;
86
+ if (webhookId === undefined) {
87
+ return false;
88
+ }
89
+ try {
90
+ const response = await new request_1.LimeFormsRequest(this).get(`/api/v1/observable-webhooks/${webhookId}`);
91
+ return response.data !== null;
92
+ }
93
+ catch (error) {
94
+ if ((error === null || error === void 0 ? void 0 : error.response) && ((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 404) {
95
+ return false;
96
+ }
97
+ if (error.message) {
98
+ n8n_workflow_1.LoggerProxy.error(`Lime Forms: ${error.message}`);
99
+ }
100
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
101
+ message: 'Failed to check if webhook exists in Lime Forms',
102
+ });
103
+ }
104
+ },
105
+ async create() {
106
+ var _a, _b, _c;
107
+ const credentials = await this.getCredentials(credentials_1.FORMS_API_CREDENTIALS_NAME);
108
+ const data = {
109
+ name: `${FORMS_OBSERVABLE_WEBHOOK_NAME_PREFIX}: ${this.getNodeParameter('name')}`,
110
+ observableType: ObservableType_1.ObservableType.FORM,
111
+ observableId: this.getNodeParameter('formId'),
112
+ action: ObservableAction_1.ObservableActionType.FORM_SUBMITTED,
113
+ webhookUrl: this.getNodeWebhookUrl('default'),
114
+ secret: credentials.webhookSecret,
115
+ workflowUrl: (0, workflow_1.getWorkflowUrl)(this.getNode(), this.getWorkflow().id),
116
+ };
117
+ const webhookData = this.getWorkflowStaticData('node');
118
+ try {
119
+ const response = await new request_1.LimeFormsRequest(this).post('/api/v1/observable-webhooks', data);
120
+ if (!response.success) {
121
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
122
+ message: 'Failed to create webhook in Lime Forms',
123
+ });
124
+ }
125
+ webhookData.id = response.data.id;
126
+ return true;
127
+ }
128
+ catch (error) {
129
+ if ((error === null || error === void 0 ? void 0 : error.httpCode) == '409') {
130
+ n8n_workflow_1.LoggerProxy.info(`Webhook ${webhookData.name} already exists in Lime Forms, retrieving existing webhook ID`, { errorResponse: (_a = error.context) === null || _a === void 0 ? void 0 : _a.data });
131
+ const errorResponse = (_c = (_b = error.context) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.error;
132
+ webhookData.id = errorResponse.id;
133
+ webhookData.name = errorResponse.name.replace(`${FORMS_OBSERVABLE_WEBHOOK_NAME_PREFIX}: `, '');
134
+ return true;
135
+ }
136
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
137
+ message: 'Failed to create webhook in Lime Forms',
138
+ });
139
+ }
140
+ },
141
+ async delete() {
142
+ const webhookData = this.getWorkflowStaticData('node');
143
+ const webhookId = webhookData.id;
144
+ if (webhookId === undefined) {
145
+ return false;
146
+ }
147
+ const response = await new request_1.LimeFormsRequest(this).delete(`/api/v1/observable-webhooks/${webhookId}`);
148
+ if (!response.success) {
149
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
150
+ message: 'Failed to delete webhook in Lime Forms',
151
+ });
152
+ }
153
+ delete webhookData.id;
154
+ delete webhookData.secret;
155
+ return true;
156
+ },
157
+ },
158
+ };
159
+ }
160
+ async webhook() {
161
+ const body = this.getBodyData();
162
+ const headers = this.getHeaderData();
163
+ const returnData = [];
164
+ try {
165
+ if (!('x-signature' in headers)) {
166
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No signature header passed. Unable to verify integrity of the data.');
167
+ }
168
+ const webhookSecret = await this.getCredentials(credentials_1.FORMS_API_CREDENTIALS_NAME).then((c) => c.webhookSecret);
169
+ const isValidSignature = (0, common_1.verifyHmac)(webhookSecret, Buffer.from(JSON.stringify(body)), ('sha256=' + headers['x-signature']));
170
+ if (!isValidSignature) {
171
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Invalid signature');
172
+ }
173
+ returnData.push(body);
174
+ }
175
+ catch (error) {
176
+ const response = (0, errorHandling_1.handleWorkflowError)(this, {
177
+ message: error.message,
178
+ });
179
+ returnData.push(response);
180
+ }
181
+ return {
182
+ workflowData: [this.helpers.returnJsonArray(returnData)],
183
+ };
184
+ }
185
+ }
186
+ exports.LimeFormsTrigger = LimeFormsTrigger;
187
+ //# sourceMappingURL=LimeFormsTrigger.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimeFormsTrigger.node.js","sourceRoot":"","sources":["../../../nodes/lime-forms/LimeFormsTrigger.node.ts"],"names":[],"mappings":";;;AAAA,+CAasB;AACtB,iDAAuD;AAMvD,qEAAsE;AACtE,iEAA8D;AAC9D,mDAA+D;AAC/D,+CAAkD;AAClD,sCAAuC;AACvC,oDAAuD;AAEvD,MAAM,oCAAoC,GAAG,KAAK,CAAC;AAEnD,MAAa,gBAAgB;IAA7B;QACI,gBAAW,GAAyB;YAChC,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC;YACV,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,iCAA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,EAAE,EACd,qEAAqE,CACxE,CAAC;YACN,CAAC;YAED,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,cAAc,CAC3C,wCAA0B,CAC7B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAuB,CAAC,CAAC;YACzC,MAAM,gBAAgB,GAAG,IAAA,mBAAU,EAC/B,aAAa,EACb,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EACjC,CAAC,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAW,CACjD,CAAC;YAEF,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBACpB,MAAM,IAAI,iCAAkB,CACxB,IAAI,CAAC,OAAO,EAAE,EACd,mBAAmB,CACtB,CAAC;YACN,CAAC;YACD,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,QAAQ,GAAG,IAAA,mCAAmB,EAAC,IAAI,EAAE;gBACvC,OAAO,EAAE,KAAK,CAAC,OAAO;aACzB,CAAC,CAAC;YAEH,UAAU,CAAC,IAAI,CAAC,QAAuB,CAAC,CAAC;QAC7C,CAAC;QAED,OAAO;YACH,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;SAC3D,CAAC;IACN,CAAC;CACJ;AApOD,4CAoOC"}
@@ -0,0 +1 @@
1
+ export * from './LimeFormsTrigger.node';
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./LimeFormsTrigger.node"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../nodes/lime-forms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,6 @@
1
+ <svg viewBox="0 0 1025 1025" xmlns="http://www.w3.org/2000/svg" xml:space="preserve"><clipPath id="a"><path d="M.067.03h1024v1024H.067z"/></clipPath>
2
+ <g clip-path="url(#a)"><path d="M92.466 480.888c0-257.059 208.718-465.779 465.78-465.779 257.101 0 465.821 208.72 465.821 465.779 0 133.713-55.806 271.139-193.404 385.355-166.779 138.45-390.389 157.35-736.149 134.525-102.653-6.785-117.502-24.319-64.469-63.444C196.74 814.277 92.466 720.157 92.466 480.888Z" style="fill:#a6efff"/>
3
+ <clipPath id="b"><path d="M92.466 480.888c0-257.059 208.718-465.779 465.78-465.779 257.101 0 465.821 208.72 465.821 465.779 0 133.713-55.806 271.139-193.404 385.355-166.779 138.45-390.389 157.35-736.149 134.525-102.653-6.785-117.502-24.319-64.469-63.444C196.74 814.277 92.466 720.157 92.466 480.888Z"/></clipPath>
4
+ <g clip-path="url(#b)"><path d="M-810.991 1517.47c-520.197-174.655 602.109-1999.19 1122.31-1824.54 520.198 174.652 347.26 364.038 243.982 791.188-103.277 427.149-846.091 1208-1366.29 1033.35Z" style="fill:#ffa6ea;filter:blur(200px)"/></g>
5
+ <path d="M415.273 301.267c-40.49 0-73.342 32.894-73.342 73.385 0 40.489 32.852 73.342 73.342 73.342 40.489 0 73.384-32.853 73.384-73.342 0-40.491-32.895-73.385-73.384-73.385Zm168.017 96.552h175.653c12.8 0 23.168-10.368 23.168-23.167 0-12.801-10.368-23.168-23.168-23.168H583.29c-12.8 0-23.168 10.367-23.168 23.168 0 12.799 10.368 23.167 23.168 23.167Zm0 212.345h175.653c12.8 0 23.168-10.367 23.168-23.167 0-12.756-10.368-23.166-23.168-23.166H583.29c-12.8 0-23.168 10.41-23.168 23.166 0 12.8 10.368 23.167 23.168 23.167Zm-168.017-96.509c-40.49 0-73.342 32.853-73.342 73.342 0 40.49 32.852 73.385 73.342 73.385 40.489 0 73.384-32.895 73.384-73.385 0-40.489-32.895-73.342-73.384-73.342Z"
6
+ style="fill:#fff"/></g></svg>
@@ -0,0 +1,11 @@
1
+ import { IHookFunctions, ILoadOptionsFunctions } from 'n8n-workflow';
2
+ import { BaseResponse } from '../types/resources/BaseResponse';
3
+ export declare class LimeFormsRequest<T = unknown> {
4
+ private readonly loader;
5
+ constructor(loader: ILoadOptionsFunctions | IHookFunctions);
6
+ get(url: string): Promise<BaseResponse<T>>;
7
+ post(url: string, data: object): Promise<BaseResponse<T>>;
8
+ put(url: string, data: object): Promise<BaseResponse<T>>;
9
+ delete(url: string): Promise<BaseResponse<T>>;
10
+ private baseRequest;
11
+ }