n8n-nodes-formbase 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +19 -0
- package/README.md +93 -0
- package/dist/credentials/FormbaseApi.credentials.d.ts +10 -0
- package/dist/credentials/FormbaseApi.credentials.js +52 -0
- package/dist/credentials/FormbaseApi.credentials.js.map +1 -0
- package/dist/nodes/Formbase/FormbaseTrigger.node.d.ts +17 -0
- package/dist/nodes/Formbase/FormbaseTrigger.node.js +181 -0
- package/dist/nodes/Formbase/FormbaseTrigger.node.js.map +1 -0
- package/dist/nodes/Formbase/GenericFunctions.d.ts +3 -0
- package/dist/nodes/Formbase/GenericFunctions.js +46 -0
- package/dist/nodes/Formbase/GenericFunctions.js.map +1 -0
- package/dist/nodes/Formbase/constants.d.ts +7 -0
- package/dist/nodes/Formbase/constants.js +10 -0
- package/dist/nodes/Formbase/constants.js.map +1 -0
- package/dist/nodes/Formbase/formbase.dark.svg +4 -0
- package/dist/nodes/Formbase/formbase.svg +4 -0
- package/dist/package.json +61 -0
- package/package.json +61 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2026 Formbase AS
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# n8n-nodes-formbase
|
|
2
|
+
|
|
3
|
+
Community node for [n8n](https://n8n.io) that starts workflows when a [Formbase](https://formbase.so) form receives a submission.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Trigger on completed submissions.
|
|
8
|
+
- Trigger on abandoned submissions when partial submission tracking is enabled.
|
|
9
|
+
- Load forms dynamically from every workspace available to the credential.
|
|
10
|
+
- Register and remove Formbase webhook subscriptions with the n8n workflow lifecycle.
|
|
11
|
+
- Connect securely with workspace-scoped Formbase API tokens.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
Open **Settings → Community Nodes**, select **Install**, and enter:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
n8n-nodes-formbase
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Community nodes must be enabled on self-hosted n8n. Installation in n8n Cloud requires a verified community node.
|
|
22
|
+
|
|
23
|
+
## Configure credentials
|
|
24
|
+
|
|
25
|
+
1. In Formbase, open **OAuth and API Keys** in the workspace sidebar.
|
|
26
|
+
2. Create an API token and copy it immediately. Tokens start with `fb_` and are shown once.
|
|
27
|
+
3. In n8n, create a **Formbase API** credential and paste the token.
|
|
28
|
+
4. Keep **API Base URL** set to `https://api.formbase.so`.
|
|
29
|
+
5. Select **Test**. n8n calls `me.get` to verify the token.
|
|
30
|
+
|
|
31
|
+
Formbase API tokens expire after 30 days. Rotate the token and update the n8n credential before expiration.
|
|
32
|
+
|
|
33
|
+
## Use trigger
|
|
34
|
+
|
|
35
|
+
1. Add **Formbase Trigger** to a workflow.
|
|
36
|
+
2. Select form and event.
|
|
37
|
+
3. For a test execution, select **Listen for Test Event**, then submit the selected form.
|
|
38
|
+
4. Activate the workflow. n8n registers its production webhook with Formbase and removes it when the workflow is deactivated or deleted.
|
|
39
|
+
|
|
40
|
+
n8n webhook URL must be publicly reachable over HTTPS. For reverse-proxy or tunnel deployments, configure n8n's `WEBHOOK_URL` so generated webhook URLs use public origin.
|
|
41
|
+
|
|
42
|
+
## Output
|
|
43
|
+
|
|
44
|
+
Each webhook produces one n8n item containing Formbase payload:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"eventId": "evt_abc123",
|
|
49
|
+
"eventType": "SUBMIT_RESPONSE",
|
|
50
|
+
"eventTimestamp": "2026-04-25T12:34:56.000Z",
|
|
51
|
+
"form": {
|
|
52
|
+
"id": "frm_abc123",
|
|
53
|
+
"name": "Customer Feedback"
|
|
54
|
+
},
|
|
55
|
+
"submission": {
|
|
56
|
+
"id": "sub_xyz789",
|
|
57
|
+
"respondentEmail": "respondent@example.com",
|
|
58
|
+
"submittedAt": "2026-04-25T12:34:56.000Z",
|
|
59
|
+
"submissionPdfLink": "https://api.formbase.so/api/storage/...",
|
|
60
|
+
"language": "en"
|
|
61
|
+
},
|
|
62
|
+
"fields": [
|
|
63
|
+
{
|
|
64
|
+
"fieldId": "fld_rating",
|
|
65
|
+
"title": "How likely are you to recommend us?",
|
|
66
|
+
"type": "rating",
|
|
67
|
+
"value": {
|
|
68
|
+
"raw": 9,
|
|
69
|
+
"display": "9"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`eventType` is `SUBMIT_RESPONSE` for a new completed or abandoned response and `UPDATE_RESPONSE` when an existing response changes. Use `eventId` to deduplicate retries.
|
|
77
|
+
|
|
78
|
+
Full contracts: [Formbase API methods](https://docs.formbase.so/developers/rest-api) and [webhook reference](https://docs.formbase.so/developers/webhooks-reference).
|
|
79
|
+
|
|
80
|
+
## Develop
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm ci
|
|
84
|
+
npm test
|
|
85
|
+
npm run build
|
|
86
|
+
npm run lint
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`npm run dev` starts n8n with the node loaded and rebuilds on changes. Compiled package files are written to `dist/`. Run `npm pack --dry-run` before publishing to inspect package contents.
|
|
90
|
+
|
|
91
|
+
## License
|
|
92
|
+
|
|
93
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class FormbaseApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormbaseApi = void 0;
|
|
4
|
+
const constants_1 = require("../nodes/Formbase/constants");
|
|
5
|
+
class FormbaseApi {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.name = 'formbaseApi';
|
|
8
|
+
this.displayName = 'Formbase API';
|
|
9
|
+
this.icon = { light: 'file:../nodes/Formbase/formbase.svg', dark: 'file:../nodes/Formbase/formbase.dark.svg' };
|
|
10
|
+
this.documentationUrl = 'https://docs.formbase.so/developers/api-tokens';
|
|
11
|
+
this.properties = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'API Key',
|
|
14
|
+
name: 'apiKey',
|
|
15
|
+
type: 'string',
|
|
16
|
+
typeOptions: { password: true },
|
|
17
|
+
default: '',
|
|
18
|
+
required: true,
|
|
19
|
+
description: 'API token from Formbase (OAuth and API Keys). Starts with <code>fb_</code>.',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'API Base URL',
|
|
23
|
+
name: 'baseUrl',
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: constants_1.DEFAULT_FORMBASE_API_URL,
|
|
26
|
+
required: true,
|
|
27
|
+
description: 'Formbase API origin. Keep the default unless Formbase support provides a different URL.',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
this.authenticate = {
|
|
31
|
+
type: 'generic',
|
|
32
|
+
properties: {
|
|
33
|
+
headers: {
|
|
34
|
+
Authorization: '=Bearer {{$credentials.apiKey}}',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
this.test = {
|
|
39
|
+
request: {
|
|
40
|
+
baseURL: '={{$credentials.baseUrl}}',
|
|
41
|
+
url: constants_1.FORMBASE_API_PATH,
|
|
42
|
+
method: 'POST',
|
|
43
|
+
body: {
|
|
44
|
+
method: 'me.get',
|
|
45
|
+
params: {},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.FormbaseApi = FormbaseApi;
|
|
52
|
+
//# sourceMappingURL=FormbaseApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormbaseApi.credentials.js","sourceRoot":"","sources":["../../credentials/FormbaseApi.credentials.ts"],"names":[],"mappings":";;;AAEA,2DAAyF;AAEzF,MAAa,WAAW;IAAxB;QACE,SAAI,GAAG,aAAa,CAAA;QAEpB,gBAAW,GAAG,cAAc,CAAA;QAE5B,SAAI,GAAS,EAAE,KAAK,EAAE,qCAAqC,EAAE,IAAI,EAAE,0CAA0C,EAAE,CAAA;QAE/G,qBAAgB,GAAG,gDAAgD,CAAA;QAEnE,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,6EAA6E;aAC3F;YACD;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oCAAwB;gBACjC,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,yFAAyF;aACvG;SACF,CAAA;QAED,iBAAY,GAAyB;YACnC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,aAAa,EAAE,iCAAiC;iBACjD;aACF;SACF,CAAA;QAED,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,6BAAiB;gBACtB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE;oBACJ,MAAM,EAAE,QAAQ;oBAChB,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAA;IACH,CAAC;CAAA;AAjDD,kCAiDC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IHookFunctions, ILoadOptionsFunctions, INodePropertyOptions, INodeType, INodeTypeDescription, IWebhookFunctions, IWebhookResponseData } from 'n8n-workflow';
|
|
2
|
+
export declare class FormbaseTrigger 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,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormbaseTrigger = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
const GenericFunctions_1 = require("./GenericFunctions");
|
|
7
|
+
const FORMS_PAGE_SIZE = 100;
|
|
8
|
+
async function listWorkspaceForms(context, workspace) {
|
|
9
|
+
const forms = [];
|
|
10
|
+
let cursor;
|
|
11
|
+
do {
|
|
12
|
+
const result = (await GenericFunctions_1.formbaseApiRequest.call(context, 'forms.list', {
|
|
13
|
+
workspaceId: workspace.id,
|
|
14
|
+
limit: FORMS_PAGE_SIZE,
|
|
15
|
+
...(cursor ? { cursor } : {}),
|
|
16
|
+
}));
|
|
17
|
+
forms.push(...result.items);
|
|
18
|
+
if (!result.hasMore)
|
|
19
|
+
break;
|
|
20
|
+
if (!result.nextCursor) {
|
|
21
|
+
throw new n8n_workflow_1.NodeApiError(context.getNode(), { message: 'Formbase returned an incomplete forms page' });
|
|
22
|
+
}
|
|
23
|
+
cursor = result.nextCursor;
|
|
24
|
+
} while (cursor);
|
|
25
|
+
return forms;
|
|
26
|
+
}
|
|
27
|
+
function findWebhookSubscription(subscriptions, targetUrl, eventType) {
|
|
28
|
+
return subscriptions.find((subscription) => subscription.targetUrl === targetUrl && subscription.provider === 'n8n' && subscription.eventType === eventType);
|
|
29
|
+
}
|
|
30
|
+
class FormbaseTrigger {
|
|
31
|
+
constructor() {
|
|
32
|
+
this.description = {
|
|
33
|
+
displayName: 'Formbase Trigger',
|
|
34
|
+
name: 'formbaseTrigger',
|
|
35
|
+
icon: { light: 'file:formbase.svg', dark: 'file:formbase.dark.svg' },
|
|
36
|
+
group: ['trigger'],
|
|
37
|
+
version: 1,
|
|
38
|
+
subtitle: '={{$parameter["event"]}}',
|
|
39
|
+
description: 'Starts the workflow when a Formbase form receives a submission',
|
|
40
|
+
usableAsTool: true,
|
|
41
|
+
defaults: {
|
|
42
|
+
name: 'Formbase Trigger',
|
|
43
|
+
},
|
|
44
|
+
inputs: [],
|
|
45
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
46
|
+
credentials: [
|
|
47
|
+
{
|
|
48
|
+
name: 'formbaseApi',
|
|
49
|
+
required: true,
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
webhooks: [
|
|
53
|
+
{
|
|
54
|
+
name: 'default',
|
|
55
|
+
httpMethod: 'POST',
|
|
56
|
+
responseMode: 'onReceived',
|
|
57
|
+
path: 'formbase',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
triggerPanel: {
|
|
61
|
+
header: 'Listening for Formbase submissions',
|
|
62
|
+
executionsHelp: {
|
|
63
|
+
inactive: 'While building the workflow, click <em>Listen for Test Event</em> and submit the form once. New submissions arrive in real time after the workflow is activated.',
|
|
64
|
+
active: 'New submissions to the selected form trigger this workflow. The webhook remains registered while the workflow is active.',
|
|
65
|
+
},
|
|
66
|
+
activationHint: 'Activate the workflow to register the webhook with Formbase. Deactivating removes it.',
|
|
67
|
+
},
|
|
68
|
+
properties: [
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Form Name or ID',
|
|
71
|
+
name: 'formId',
|
|
72
|
+
type: 'options',
|
|
73
|
+
typeOptions: {
|
|
74
|
+
loadOptionsMethod: 'getForms',
|
|
75
|
+
},
|
|
76
|
+
default: '',
|
|
77
|
+
required: true,
|
|
78
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Event',
|
|
82
|
+
name: 'event',
|
|
83
|
+
type: 'options',
|
|
84
|
+
options: [
|
|
85
|
+
{
|
|
86
|
+
name: 'Submission Abandoned',
|
|
87
|
+
value: constants_1.FORMBASE_WEBHOOK_EVENTS.submissionAbandoned,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Submission Created',
|
|
91
|
+
value: constants_1.FORMBASE_WEBHOOK_EVENTS.submissionCreated,
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
default: 'submission_created',
|
|
95
|
+
description: 'Event to subscribe to. Abandoned submissions require partial submission tracking.',
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
};
|
|
99
|
+
this.methods = {
|
|
100
|
+
loadOptions: {
|
|
101
|
+
async getForms() {
|
|
102
|
+
const workspaceResult = (await GenericFunctions_1.formbaseApiRequest.call(this, 'workspaces.list', {}));
|
|
103
|
+
const formsByWorkspace = await Promise.all(workspaceResult.items.map(async (workspace) => ({
|
|
104
|
+
workspace,
|
|
105
|
+
forms: await listWorkspaceForms(this, workspace),
|
|
106
|
+
})));
|
|
107
|
+
const showWorkspaceName = formsByWorkspace.length > 1;
|
|
108
|
+
return formsByWorkspace.flatMap(({ workspace, forms }) => forms.map((form) => ({
|
|
109
|
+
name: showWorkspaceName ? `${workspace.name} / ${form.name}` : form.name,
|
|
110
|
+
value: form.id,
|
|
111
|
+
})));
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
this.webhookMethods = {
|
|
116
|
+
default: {
|
|
117
|
+
async checkExists() {
|
|
118
|
+
const webhookUrl = this.getNodeWebhookUrl('default');
|
|
119
|
+
if (!webhookUrl)
|
|
120
|
+
return false;
|
|
121
|
+
const formId = this.getNodeParameter('formId');
|
|
122
|
+
if (!formId)
|
|
123
|
+
return false;
|
|
124
|
+
const eventType = this.getNodeParameter('event');
|
|
125
|
+
const webhookData = this.getWorkflowStaticData('node');
|
|
126
|
+
const result = (await GenericFunctions_1.formbaseApiRequest.call(this, 'webhooks.list', {
|
|
127
|
+
formId,
|
|
128
|
+
}));
|
|
129
|
+
const match = findWebhookSubscription(result.items, webhookUrl, eventType);
|
|
130
|
+
if (match) {
|
|
131
|
+
webhookData.subscriptionId = match.subscriptionId;
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
return false;
|
|
135
|
+
},
|
|
136
|
+
async create() {
|
|
137
|
+
const webhookUrl = this.getNodeWebhookUrl('default');
|
|
138
|
+
if (!webhookUrl)
|
|
139
|
+
return false;
|
|
140
|
+
const formId = this.getNodeParameter('formId');
|
|
141
|
+
const eventType = this.getNodeParameter('event');
|
|
142
|
+
const created = (await GenericFunctions_1.formbaseApiRequest.call(this, 'webhooks.create', {
|
|
143
|
+
formId,
|
|
144
|
+
targetUrl: webhookUrl,
|
|
145
|
+
provider: 'n8n',
|
|
146
|
+
eventType,
|
|
147
|
+
}));
|
|
148
|
+
const webhookData = this.getWorkflowStaticData('node');
|
|
149
|
+
webhookData.subscriptionId = created.subscriptionId;
|
|
150
|
+
return true;
|
|
151
|
+
},
|
|
152
|
+
async delete() {
|
|
153
|
+
const webhookData = this.getWorkflowStaticData('node');
|
|
154
|
+
const subscriptionId = webhookData.subscriptionId;
|
|
155
|
+
if (typeof subscriptionId !== 'string')
|
|
156
|
+
return true;
|
|
157
|
+
try {
|
|
158
|
+
await GenericFunctions_1.formbaseApiRequest.call(this, 'webhooks.delete', {
|
|
159
|
+
subscriptionId,
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
if (!(error instanceof n8n_workflow_1.NodeApiError) || error.httpCode !== '404') {
|
|
164
|
+
return false;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
delete webhookData.subscriptionId;
|
|
168
|
+
return true;
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
async webhook() {
|
|
174
|
+
const body = this.getBodyData();
|
|
175
|
+
return {
|
|
176
|
+
workflowData: [this.helpers.returnJsonArray(body)],
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
exports.FormbaseTrigger = FormbaseTrigger;
|
|
181
|
+
//# sourceMappingURL=FormbaseTrigger.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormbaseTrigger.node.js","sourceRoot":"","sources":["../../../nodes/Formbase/FormbaseTrigger.node.ts"],"names":[],"mappings":";;;AAUA,+CAAgE;AAEhE,2CAAgF;AAChF,yDAAuD;AA8BvD,MAAM,eAAe,GAAG,GAAG,CAAA;AAE3B,KAAK,UAAU,kBAAkB,CAAC,OAA8B,EAAE,SAA2B;IAC3F,MAAM,KAAK,GAAkB,EAAE,CAAA;IAC/B,IAAI,MAA0B,CAAA;IAE9B,GAAG,CAAC;QACF,MAAM,MAAM,GAAG,CAAC,MAAM,qCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE;YACnE,WAAW,EAAE,SAAS,CAAC,EAAE;YACzB,KAAK,EAAE,eAAe;YACtB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9B,CAAC,CAA8B,CAAA;QAEhC,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;QAC3B,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,MAAK;QAC1B,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YACvB,MAAM,IAAI,2BAAY,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC,CAAA;QACtG,CAAC;QACD,MAAM,GAAG,MAAM,CAAC,UAAU,CAAA;IAC5B,CAAC,QAAQ,MAAM,EAAC;IAEhB,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAS,uBAAuB,CAC9B,aAAoC,EACpC,SAAiB,EACjB,SAA+B;IAE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;wBACrB,QAAQ,EAAE,KAAK;wBACf,SAAS;qBACV,CAAC,CAA0B,CAAA;oBAE5B,MAAM,WAAW,GAAG,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;oBACtD,WAAW,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAA;oBACnD,OAAO,IAAI,CAAA;gBACb,CAAC;gBAED,KAAK,CAAC,MAAM;oBACV,MAAM,WAAW,GAAG,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAA;oBACtD,MAAM,cAAc,GAAG,WAAW,CAAC,cAAc,CAAA;oBACjD,IAAI,OAAO,cAAc,KAAK,QAAQ;wBAAE,OAAO,IAAI,CAAA;oBAEnD,IAAI,CAAC;wBACH,MAAM,qCAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,iBAAiB,EAAE;4BACrD,cAAc;yBACf,CAAC,CAAA;oBACJ,CAAC;oBAAC,OAAO,KAAc,EAAE,CAAC;wBACxB,IAAI,CAAC,CAAC,KAAK,YAAY,2BAAY,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;4BACjE,OAAO,KAAK,CAAA;wBACd,CAAC;oBACH,CAAC;oBACD,OAAO,WAAW,CAAC,cAAc,CAAA;oBACjC,OAAO,IAAI,CAAA;gBACb,CAAC;aACF;SACF,CAAA;IAQH,CAAC;IANC,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,GAAgB,IAAI,CAAC,WAAW,EAAE,CAAA;QAC5C,OAAO;YACL,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SACnD,CAAA;IACH,CAAC;CACF;AA/JD,0CA+JC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IHookFunctions, ILoadOptionsFunctions, IWebhookFunctions } from 'n8n-workflow';
|
|
2
|
+
export type FormbaseRpcContext = IHookFunctions | ILoadOptionsFunctions | IWebhookFunctions;
|
|
3
|
+
export declare function formbaseApiRequest<T = unknown>(this: FormbaseRpcContext, method: string, params?: Record<string, unknown>): Promise<T>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formbaseApiRequest = formbaseApiRequest;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
const ERROR_CODE_TO_HTTP = {
|
|
7
|
+
VALIDATION_ERROR: 400,
|
|
8
|
+
UNAUTHORIZED: 401,
|
|
9
|
+
UPGRADE_REQUIRED: 402,
|
|
10
|
+
FORBIDDEN: 403,
|
|
11
|
+
NOT_FOUND: 404,
|
|
12
|
+
METHOD_NOT_FOUND: 404,
|
|
13
|
+
CONFLICT: 409,
|
|
14
|
+
RATE_LIMITED: 429,
|
|
15
|
+
INTERNAL_ERROR: 500,
|
|
16
|
+
};
|
|
17
|
+
async function formbaseApiRequest(method, params = {}) {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f;
|
|
19
|
+
const credentials = await this.getCredentials('formbaseApi');
|
|
20
|
+
const baseUrl = String((_a = credentials.baseUrl) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_FORMBASE_API_URL).replace(/\/+$/, '');
|
|
21
|
+
const options = {
|
|
22
|
+
method: 'POST',
|
|
23
|
+
url: `${baseUrl}${constants_1.FORMBASE_API_PATH}`,
|
|
24
|
+
body: { method, params },
|
|
25
|
+
json: true,
|
|
26
|
+
ignoreHttpStatusErrors: true,
|
|
27
|
+
returnFullResponse: false,
|
|
28
|
+
};
|
|
29
|
+
const response = (await this.helpers.httpRequestWithAuthentication.call(this, 'formbaseApi', options));
|
|
30
|
+
if (!response || typeof response !== 'object') {
|
|
31
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), { message: 'Invalid response from Formbase API' });
|
|
32
|
+
}
|
|
33
|
+
if (response.ok === false) {
|
|
34
|
+
const code = (_c = (_b = response.error) === null || _b === void 0 ? void 0 : _b.code) !== null && _c !== void 0 ? _c : 'INTERNAL_ERROR';
|
|
35
|
+
const message = (_e = (_d = response.error) === null || _d === void 0 ? void 0 : _d.message) !== null && _e !== void 0 ? _e : 'Formbase API error';
|
|
36
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), { message, code }, {
|
|
37
|
+
message: `${code}: ${message}`,
|
|
38
|
+
httpCode: String((_f = ERROR_CODE_TO_HTTP[code]) !== null && _f !== void 0 ? _f : 500),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
if (response.ok !== true || !('data' in response)) {
|
|
42
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), { message: 'Invalid response from Formbase API' });
|
|
43
|
+
}
|
|
44
|
+
return response.data;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=GenericFunctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Formbase/GenericFunctions.ts"],"names":[],"mappings":";;AAoCA,gDAsCC;AApED,+CAA2C;AAE3C,2CAAyE;AAgBzE,MAAM,kBAAkB,GAA2B;IACjD,gBAAgB,EAAE,GAAG;IACrB,YAAY,EAAE,GAAG;IACjB,gBAAgB,EAAE,GAAG;IACrB,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,GAAG;IACd,gBAAgB,EAAE,GAAG;IACrB,QAAQ,EAAE,GAAG;IACb,YAAY,EAAE,GAAG;IACjB,cAAc,EAAE,GAAG;CACpB,CAAA;AAEM,KAAK,UAAU,kBAAkB,CAEtC,MAAc,EACd,SAAkC,EAAE;;IAEpC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,CAAA;IAC5D,MAAM,OAAO,GAAG,MAAM,CAAC,MAAA,WAAW,CAAC,OAAO,mCAAI,oCAAwB,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAA;IAE3F,MA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CAAoC,EAAE,CAAC,CAAA;IAC3F,CAAC;IAED,OAAO,QAAQ,CAAC,IAAI,CAAA;AACtB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DEFAULT_FORMBASE_API_URL = "https://api.formbase.so";
|
|
2
|
+
export declare const FORMBASE_API_PATH = "/api/v1";
|
|
3
|
+
export declare const FORMBASE_WEBHOOK_EVENTS: {
|
|
4
|
+
readonly submissionCreated: "submission_created";
|
|
5
|
+
readonly submissionAbandoned: "submission_abandoned";
|
|
6
|
+
};
|
|
7
|
+
export type FormbaseWebhookEvent = (typeof FORMBASE_WEBHOOK_EVENTS)[keyof typeof FORMBASE_WEBHOOK_EVENTS];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FORMBASE_WEBHOOK_EVENTS = exports.FORMBASE_API_PATH = exports.DEFAULT_FORMBASE_API_URL = void 0;
|
|
4
|
+
exports.DEFAULT_FORMBASE_API_URL = 'https://api.formbase.so';
|
|
5
|
+
exports.FORMBASE_API_PATH = '/api/v1';
|
|
6
|
+
exports.FORMBASE_WEBHOOK_EVENTS = {
|
|
7
|
+
submissionCreated: 'submission_created',
|
|
8
|
+
submissionAbandoned: 'submission_abandoned',
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../nodes/Formbase/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG,yBAAyB,CAAA;AAEpD,QAAA,iBAAiB,GAAG,SAAS,CAAA;AAE7B,QAAA,uBAAuB,GAAG;IACrC,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;CACnC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="60" height="60">
|
|
2
|
+
<circle cx="30" cy="30" r="28" fill="#818CF8"/>
|
|
3
|
+
<text x="30" y="40" font-family="Inter, system-ui, sans-serif" font-size="32" font-weight="700" text-anchor="middle" fill="#ffffff">F</text>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="60" height="60">
|
|
2
|
+
<circle cx="30" cy="30" r="28" fill="#6366F1"/>
|
|
3
|
+
<text x="30" y="40" font-family="Inter, system-ui, sans-serif" font-size="32" font-weight="700" text-anchor="middle" fill="#ffffff">F</text>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-formbase",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "n8n community node for Formbase — trigger workflows from form submissions.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"n8n",
|
|
8
|
+
"formbase",
|
|
9
|
+
"forms",
|
|
10
|
+
"webhook"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"homepage": "https://formbase.so",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "formbase",
|
|
16
|
+
"email": "support@formbase.so"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/formbaseso/n8n-nodes-formbase.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/formbaseso/n8n-nodes-formbase/issues"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "n8n-node build",
|
|
27
|
+
"build:watch": "tsc --watch",
|
|
28
|
+
"dev": "n8n-node dev",
|
|
29
|
+
"lint": "n8n-node lint",
|
|
30
|
+
"lintfix": "n8n-node lint --fix",
|
|
31
|
+
"test": "vitest run --config test/vitest.config.mjs",
|
|
32
|
+
"prepublishOnly": "npm test && npm run build && npm run lint"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=22"
|
|
39
|
+
},
|
|
40
|
+
"n8n": {
|
|
41
|
+
"n8nNodesApiVersion": 1,
|
|
42
|
+
"strict": true,
|
|
43
|
+
"credentials": [
|
|
44
|
+
"dist/credentials/FormbaseApi.credentials.js"
|
|
45
|
+
],
|
|
46
|
+
"nodes": [
|
|
47
|
+
"dist/nodes/Formbase/FormbaseTrigger.node.js"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@n8n/node-cli": "^0.39.3",
|
|
52
|
+
"@types/node": "^22.0.0",
|
|
53
|
+
"eslint": "9.39.4",
|
|
54
|
+
"prettier": "3.8.3",
|
|
55
|
+
"typescript": "5.9.3",
|
|
56
|
+
"vitest": "4.1.10"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"n8n-workflow": "*"
|
|
60
|
+
}
|
|
61
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-formbase",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "n8n community node for Formbase — trigger workflows from form submissions.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"n8n",
|
|
8
|
+
"formbase",
|
|
9
|
+
"forms",
|
|
10
|
+
"webhook"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"homepage": "https://formbase.so",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "formbase",
|
|
16
|
+
"email": "support@formbase.so"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/formbaseso/n8n-nodes-formbase.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/formbaseso/n8n-nodes-formbase/issues"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "n8n-node build",
|
|
27
|
+
"build:watch": "tsc --watch",
|
|
28
|
+
"dev": "n8n-node dev",
|
|
29
|
+
"lint": "n8n-node lint",
|
|
30
|
+
"lintfix": "n8n-node lint --fix",
|
|
31
|
+
"test": "vitest run --config test/vitest.config.mjs",
|
|
32
|
+
"prepublishOnly": "npm test && npm run build && npm run lint"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=22"
|
|
39
|
+
},
|
|
40
|
+
"n8n": {
|
|
41
|
+
"n8nNodesApiVersion": 1,
|
|
42
|
+
"strict": true,
|
|
43
|
+
"credentials": [
|
|
44
|
+
"dist/credentials/FormbaseApi.credentials.js"
|
|
45
|
+
],
|
|
46
|
+
"nodes": [
|
|
47
|
+
"dist/nodes/Formbase/FormbaseTrigger.node.js"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@n8n/node-cli": "^0.39.3",
|
|
52
|
+
"@types/node": "^22.0.0",
|
|
53
|
+
"eslint": "9.39.4",
|
|
54
|
+
"prettier": "3.8.3",
|
|
55
|
+
"typescript": "5.9.3",
|
|
56
|
+
"vitest": "4.1.10"
|
|
57
|
+
},
|
|
58
|
+
"peerDependencies": {
|
|
59
|
+
"n8n-workflow": "*"
|
|
60
|
+
}
|
|
61
|
+
}
|