n8n-nodes-everformat 0.0.0-stage → 1.0.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/README.md +98 -2
- package/dist/credentials/EverformatApi.credentials.d.ts +9 -0
- package/dist/credentials/EverformatApi.credentials.js +101 -0
- package/dist/credentials/EverformatApi.credentials.js.map +1 -0
- package/dist/nodes/Everformat/Everformat.node.d.ts +5 -0
- package/dist/nodes/Everformat/Everformat.node.js +345 -0
- package/dist/nodes/Everformat/Everformat.node.js.map +1 -0
- package/dist/nodes/Everformat/everformat.svg +8 -0
- package/package.json +67 -4
package/README.md
CHANGED
|
@@ -1,3 +1,99 @@
|
|
|
1
|
-
#
|
|
1
|
+
# n8n-nodes-everformat
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Convert proprietary and legacy enterprise files inside **n8n** workflows — without CloudConvert format gaps or expensive Aspose SDK licenses.
|
|
4
|
+
|
|
5
|
+
[](https://everformat.com)
|
|
6
|
+
[](https://everformat.com)
|
|
7
|
+
|
|
8
|
+
## Why Automation Agencies Use Everformat
|
|
9
|
+
|
|
10
|
+
Mainstream file APIs (CloudConvert, ConvertAPI, Zamzar) fail or charge enterprise minimums on legacy B2B formats that clients still email every day:
|
|
11
|
+
|
|
12
|
+
| Legacy Format | Common Industry | Output Formats |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| **Microsoft Project** (`.mpp`, `.mpt`, `.mpx`) | Construction, IT PMO, Engineering | `json`, `xlsx`, `csv` |
|
|
15
|
+
| **Primavera P6** (`.xer`) | Heavy Civil, EPC, Oil & Gas | `json`, `xlsx`, `csv` |
|
|
16
|
+
| **Microsoft Publisher** (`.pub`, `.pmd`) | Print Shops, Real Estate, Nonprofits | `pdf`, `pptx`, `docx`, `idml`, `png`, `jpg` |
|
|
17
|
+
| **Microsoft Visio** (`.vsdx`, `.vsd`, `.vdx`) | IT Architecture, Manufacturing | `pdf`, `png`, `svg`, `json` |
|
|
18
|
+
| **Outlook Email & Mailboxes** (`.msg`, `.pst`) | Legal, Insurance, Compliance | `json`, `csv`, `xlsx` |
|
|
19
|
+
| **Corel WordPerfect & Works** (`.wpd`, `.wps`, `.wri`) | Law Firms, Courts, Government | `pdf`, `docx`, `png`, `json` |
|
|
20
|
+
| **Microsoft Access** (`.accdb`, `.mdb`) | SMB ERP, Field Services, Clinics | `json`, `xlsx`, `csv` |
|
|
21
|
+
| **OpenDocument, RTF, XPS, Apple iWork, SAS, DjVu, CDR** | Cross-platform back-office ops | `pdf`, `xlsx`, `docx`, `pptx`, `csv`, `json`, `png`, `svg` |
|
|
22
|
+
|
|
23
|
+
**Zero File Retention:** Every conversion runs in an isolated, ephemeral temp directory and is purged immediately upon response (`X-Everformat-Retention: zero`).
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Installation in n8n
|
|
28
|
+
|
|
29
|
+
### Community Nodes UI (Recommended)
|
|
30
|
+
1. Open your n8n instance and go to **Settings → Community Nodes**.
|
|
31
|
+
2. Click **Install a community node**.
|
|
32
|
+
3. Enter `n8n-nodes-everformat` and click **Install**.
|
|
33
|
+
|
|
34
|
+
### Manual / Docker
|
|
35
|
+
```bash
|
|
36
|
+
npm install n8n-nodes-everformat
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Credentials Setup
|
|
42
|
+
|
|
43
|
+
The node supports **both** authentication channels:
|
|
44
|
+
|
|
45
|
+
1. **RapidAPI Hub (Fastest — Free 50/mo tier included)**
|
|
46
|
+
- Subscribe on RapidAPI Hub to **Everformat Legacy File Conversion API**.
|
|
47
|
+
- In n8n Credentials → **Everformat API**, select **RapidAPI Hub** and paste your `X-RapidAPI-Key`.
|
|
48
|
+
2. **Direct Everformat API Key**
|
|
49
|
+
- Select **Direct Everformat API Key**, enter `https://everformat.com`, and paste your `ef_live_...` Bearer token.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Popular Agency Workflow Recipes
|
|
54
|
+
|
|
55
|
+
### 1. Auto-Parse Client `.mpp` / `.xer` Schedules into Notion, Airtable, or Postgres
|
|
56
|
+
1. **Trigger:** Gmail / Outlook / Google Drive / SharePoint receives a `.mpp` or `.xer` attachment.
|
|
57
|
+
2. **Everformat Node:** Operation = `Convert File`, Input = `Binary Property` (`attachment_0`), Target Format = `JSON`, `Parse JSON Output Into Item Data = true`.
|
|
58
|
+
3. **Downstream:** Map `{{$json.data.tasks}}` directly into Airtable, Notion, Monday.com, or Postgres — including WBS, start/finish dates, % complete, critical path flags, and resource names.
|
|
59
|
+
|
|
60
|
+
### 2. Convert Law Firm `.wpd` & `.msg` Email Attachments to Searchable PDF / DOCX
|
|
61
|
+
1. **Trigger:** Watch a client intake folder in Google Drive or Dropbox for `.wpd` or `.msg` files.
|
|
62
|
+
2. **Everformat Node:** Convert `.wpd` → `docx` or `pdf` (or `.msg` → `json` to extract sender, subject, body, and attachment list).
|
|
63
|
+
3. **Downstream:** Upload clean PDF/DOCX to Clio / SharePoint or feed extracted `.msg` text to an LLM triage node.
|
|
64
|
+
|
|
65
|
+
### 3. Nightly `.accdb` Microsoft Access Sync to Google Sheets / Excel
|
|
66
|
+
1. **Trigger:** Schedule Trigger + OneDrive/SharePoint Download File (`.accdb`).
|
|
67
|
+
2. **Everformat Node:** Convert `.accdb` → `xlsx` (multi-sheet Excel workbook) or `json` (all tables + schemas).
|
|
68
|
+
3. **Downstream:** Upsert rows into Supabase, BigQuery, or Google Sheets.
|
|
69
|
+
|
|
70
|
+
### 4. Convert Legacy `.pub` & `.vsdx` Files to PDF / PowerPoint for Slack Approvals
|
|
71
|
+
1. **Trigger:** Slack file upload or Zendesk ticket attachment (`.pub` or `.vsdx`).
|
|
72
|
+
2. **Everformat Node:** Convert `.pub` → `pdf` / `pptx` or `.vsdx` → `pdf` / `png`.
|
|
73
|
+
3. **Downstream:** Post the rendered PDF/PNG back to the Slack thread automatically.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Using Everformat in Make.com (HTTP Module)
|
|
78
|
+
|
|
79
|
+
Make.com agencies can call the exact same endpoint with the built-in **HTTP → Make a request** module:
|
|
80
|
+
|
|
81
|
+
- **URL:** `https://everformat.com/v1/convert` (or `https://everformat-legacy-file-conversion-api.p.rapidapi.com/v1/convert`)
|
|
82
|
+
- **Method:** `POST`
|
|
83
|
+
- **Headers:**
|
|
84
|
+
- `Authorization`: `Bearer YOUR_API_KEY` (or `X-RapidAPI-Key` + `X-RapidAPI-Host`)
|
|
85
|
+
- **Body type:** `Multipart/form-data`
|
|
86
|
+
- Field `file` (File): map the incoming binary file from Gmail/Drive/Dropbox
|
|
87
|
+
- Field `target_format` (Text): `pdf`, `xlsx`, `docx`, `pptx`, `json`, `csv`, or `png`
|
|
88
|
+
- **Parse response:** `No` (to receive converted binary file directly) or add field `response_format = json` + `Parse response = Yes` to get `{ filename, content_type, file_base64 }`.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Support & Pricing
|
|
93
|
+
|
|
94
|
+
- **Free Tier:** 50 conversions/month (up to 10 MB/file)
|
|
95
|
+
- **Basic (\$19/mo):** 1,000 conversions/month (up to 25 MB/file)
|
|
96
|
+
- **Pro (\$79/mo):** 10,000 conversions/month (up to 40 MB/file)
|
|
97
|
+
- **Ultra (\$199/mo):** 50,000 conversions/month (up to 40 MB/file)
|
|
98
|
+
|
|
99
|
+
Questions or enterprise volume? Email [support@everformat.com](mailto:support@everformat.com).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class EverformatApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EverformatApi = void 0;
|
|
4
|
+
class EverformatApi {
|
|
5
|
+
name = 'everformatApi';
|
|
6
|
+
displayName = 'Everformat API';
|
|
7
|
+
documentationUrl = 'https://everformat.com/api/';
|
|
8
|
+
properties = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Authentication Mode',
|
|
11
|
+
name: 'authMode',
|
|
12
|
+
type: 'options',
|
|
13
|
+
default: 'rapidapi',
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'RapidAPI Hub',
|
|
17
|
+
value: 'rapidapi',
|
|
18
|
+
description: 'Connect using your RapidAPI subscription key (fastest setup)',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Direct Everformat API Key',
|
|
22
|
+
value: 'direct',
|
|
23
|
+
description: 'Connect directly to api.everformat.com using a Bearer API key',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
displayName: 'RapidAPI Key',
|
|
29
|
+
name: 'rapidApiKey',
|
|
30
|
+
type: 'string',
|
|
31
|
+
typeOptions: { password: true },
|
|
32
|
+
default: '',
|
|
33
|
+
required: true,
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: {
|
|
36
|
+
authMode: ['rapidapi'],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
description: 'Your X-RapidAPI-Key from RapidAPI Hub',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'RapidAPI Host',
|
|
43
|
+
name: 'rapidApiHost',
|
|
44
|
+
type: 'string',
|
|
45
|
+
default: 'everformat-legacy-file-conversion-api.p.rapidapi.com',
|
|
46
|
+
required: true,
|
|
47
|
+
displayOptions: {
|
|
48
|
+
show: {
|
|
49
|
+
authMode: ['rapidapi'],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
description: 'RapidAPI host header shown on the Everformat RapidAPI listing',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'API Key',
|
|
56
|
+
name: 'apiKey',
|
|
57
|
+
type: 'string',
|
|
58
|
+
typeOptions: { password: true },
|
|
59
|
+
default: '',
|
|
60
|
+
required: true,
|
|
61
|
+
displayOptions: {
|
|
62
|
+
show: {
|
|
63
|
+
authMode: ['direct'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
description: 'Direct Everformat Bearer token (e.g. ef_live_...)',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Base URL',
|
|
70
|
+
name: 'baseUrl',
|
|
71
|
+
type: 'string',
|
|
72
|
+
default: 'https://everformat.com',
|
|
73
|
+
required: true,
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
authMode: ['direct'],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
description: 'Everformat API Gateway base URL (no trailing slash)',
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
authenticate = {
|
|
83
|
+
type: 'generic',
|
|
84
|
+
properties: {
|
|
85
|
+
headers: {
|
|
86
|
+
Authorization: '={{ $credentials.authMode === "direct" ? "Bearer " + $credentials.apiKey : undefined }}',
|
|
87
|
+
'X-RapidAPI-Key': '={{ $credentials.authMode === "rapidapi" ? $credentials.rapidApiKey : undefined }}',
|
|
88
|
+
'X-RapidAPI-Host': '={{ $credentials.authMode === "rapidapi" ? $credentials.rapidApiHost : undefined }}',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
test = {
|
|
93
|
+
request: {
|
|
94
|
+
baseURL: '={{ $credentials.authMode === "rapidapi" ? "https://" + $credentials.rapidApiHost : $credentials.baseUrl }}',
|
|
95
|
+
url: '/v1/usage',
|
|
96
|
+
method: 'GET',
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
exports.EverformatApi = EverformatApi;
|
|
101
|
+
//# sourceMappingURL=EverformatApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EverformatApi.credentials.js","sourceRoot":"","sources":["../../credentials/EverformatApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,aAAa;IACzB,IAAI,GAAG,eAAe,CAAC;IACvB,WAAW,GAAG,gBAAgB,CAAC;IAC/B,gBAAgB,GAAG,6BAA6B,CAAC;IAEjD,UAAU,GAAsB;QAC/B;YACC,WAAW,EAAE,qBAAqB;YAClC,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,cAAc;oBACpB,KAAK,EAAE,UAAU;oBACjB,WAAW,EAAE,8DAA8D;iBAC3E;gBACD;oBACC,IAAI,EAAE,2BAA2B;oBACjC,KAAK,EAAE,QAAQ;oBACf,WAAW,EAAE,+DAA+D;iBAC5E;aACD;SACD;QACD;YACC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;iBACtB;aACD;YACD,WAAW,EAAE,uCAAuC;SACpD;QACD;YACC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,sDAAsD;YAC/D,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;iBACtB;aACD;YACD,WAAW,EAAE,+DAA+D;SAC5E;QACD;YACC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/B,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;iBACpB;aACD;YACD,WAAW,EAAE,mDAAmD;SAChE;QACD;YACC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAwB;YACjC,QAAQ,EAAE,IAAI;YACd,cAAc,EAAE;gBACf,IAAI,EAAE;oBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;iBACpB;aACD;YACD,WAAW,EAAE,qDAAqD;SAClE;KACD,CAAC;IAEF,YAAY,GAAyB;QACpC,IAAI,EAAE,SAAS;QACf,UAAU,EAAE;YACX,OAAO,EAAE;gBACR,aAAa,EACZ,yFAAyF;gBAC1F,gBAAgB,EACf,oFAAoF;gBACrF,iBAAiB,EAChB,qFAAqF;aACtF;SACD;KACD,CAAC;IAEF,IAAI,GAA2B;QAC9B,OAAO,EAAE;YACR,OAAO,EACN,6GAA6G;YAC9G,GAAG,EAAE,WAAW;YAChB,MAAM,EAAE,KAAK;SACb;KACD,CAAC;CACF;AAtGD,sCAsGC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class Everformat implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Everformat = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class Everformat {
|
|
6
|
+
description = {
|
|
7
|
+
displayName: 'Everformat',
|
|
8
|
+
name: 'everformat',
|
|
9
|
+
icon: 'file:everformat.svg',
|
|
10
|
+
group: ['transform'],
|
|
11
|
+
version: 1,
|
|
12
|
+
subtitle: '={{$parameter["operation"]}}',
|
|
13
|
+
description: 'Convert legacy & proprietary files (.mpp, .pub, .vsdx, .msg, .pst, .wpd, .accdb, .xer, .ods, .rtf, .xps, Apple iWork) with zero file retention',
|
|
14
|
+
defaults: {
|
|
15
|
+
name: 'Everformat',
|
|
16
|
+
},
|
|
17
|
+
inputs: ['main'],
|
|
18
|
+
outputs: ['main'],
|
|
19
|
+
credentials: [
|
|
20
|
+
{
|
|
21
|
+
name: 'everformatApi',
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
properties: [
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Operation',
|
|
28
|
+
name: 'operation',
|
|
29
|
+
type: 'options',
|
|
30
|
+
noDataExpression: true,
|
|
31
|
+
default: 'convert',
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
name: 'Convert File',
|
|
35
|
+
value: 'convert',
|
|
36
|
+
description: 'Convert a proprietary or legacy file to PDF, Excel, Word, PowerPoint, JSON, CSV, or PNG',
|
|
37
|
+
action: 'Convert a legacy file',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'List Supported Formats',
|
|
41
|
+
value: 'listFormats',
|
|
42
|
+
description: 'Fetch all supported input extensions and target output formats',
|
|
43
|
+
action: 'List supported formats',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Check Usage & Quota',
|
|
47
|
+
value: 'getUsage',
|
|
48
|
+
description: 'Inspect current plan, monthly usage, and remaining conversion quota',
|
|
49
|
+
action: 'Check monthly usage and quota',
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
// --- Convert File parameters ---
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Input Source',
|
|
56
|
+
name: 'inputSource',
|
|
57
|
+
type: 'options',
|
|
58
|
+
default: 'binary',
|
|
59
|
+
displayOptions: {
|
|
60
|
+
show: {
|
|
61
|
+
operation: ['convert'],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
options: [
|
|
65
|
+
{
|
|
66
|
+
name: 'Binary Property',
|
|
67
|
+
value: 'binary',
|
|
68
|
+
description: 'Read file bytes from an incoming n8n binary field (Gmail, Google Drive, SharePoint, S3, HTTP)',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Base64 String',
|
|
72
|
+
value: 'base64',
|
|
73
|
+
description: 'Provide Base64-encoded file contents directly from an expression or JSON field',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: 'Input Binary Property',
|
|
79
|
+
name: 'binaryPropertyName',
|
|
80
|
+
type: 'string',
|
|
81
|
+
default: 'data',
|
|
82
|
+
required: true,
|
|
83
|
+
displayOptions: {
|
|
84
|
+
show: {
|
|
85
|
+
operation: ['convert'],
|
|
86
|
+
inputSource: ['binary'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
description: 'Name of the binary property containing the input file (e.g. data, attachment_0)',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: 'File Base64',
|
|
93
|
+
name: 'fileBase64',
|
|
94
|
+
type: 'string',
|
|
95
|
+
default: '',
|
|
96
|
+
required: true,
|
|
97
|
+
displayOptions: {
|
|
98
|
+
show: {
|
|
99
|
+
operation: ['convert'],
|
|
100
|
+
inputSource: ['base64'],
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
description: 'Base64-encoded file bytes (optional data: URI prefix allowed)',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Filename',
|
|
107
|
+
name: 'filename',
|
|
108
|
+
type: 'string',
|
|
109
|
+
default: '',
|
|
110
|
+
placeholder: 'project-schedule.mpp',
|
|
111
|
+
displayOptions: {
|
|
112
|
+
show: {
|
|
113
|
+
operation: ['convert'],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
description: 'Filename including extension (e.g. schedule.mpp, flyer.pub, diagram.vsdx). Required for Base64 input; optional override for binary input.',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
displayName: 'Target Format',
|
|
120
|
+
name: 'targetFormat',
|
|
121
|
+
type: 'options',
|
|
122
|
+
default: 'pdf',
|
|
123
|
+
required: true,
|
|
124
|
+
displayOptions: {
|
|
125
|
+
show: {
|
|
126
|
+
operation: ['convert'],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
options: [
|
|
130
|
+
{ name: 'PDF (.pdf)', value: 'pdf' },
|
|
131
|
+
{ name: 'Excel (.xlsx)', value: 'xlsx' },
|
|
132
|
+
{ name: 'Word (.docx)', value: 'docx' },
|
|
133
|
+
{ name: 'PowerPoint (.pptx)', value: 'pptx' },
|
|
134
|
+
{ name: 'JSON (.json)', value: 'json' },
|
|
135
|
+
{ name: 'CSV (.csv / .zip)', value: 'csv' },
|
|
136
|
+
{ name: 'PNG (.png / .zip)', value: 'png' },
|
|
137
|
+
{ name: 'SVG (.svg / .zip)', value: 'svg' },
|
|
138
|
+
{ name: 'InDesign IDML (.idml)', value: 'idml' },
|
|
139
|
+
{ name: 'JPEG (.jpg / .zip)', value: 'jpg' },
|
|
140
|
+
],
|
|
141
|
+
description: 'Desired output format (available formats depend on input extension)',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
displayName: 'Output Binary Property',
|
|
145
|
+
name: 'outputBinaryPropertyName',
|
|
146
|
+
type: 'string',
|
|
147
|
+
default: 'data',
|
|
148
|
+
displayOptions: {
|
|
149
|
+
show: {
|
|
150
|
+
operation: ['convert'],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
description: 'Binary property name where the converted file will be stored',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Additional Options',
|
|
157
|
+
name: 'options',
|
|
158
|
+
type: 'collection',
|
|
159
|
+
placeholder: 'Add Option',
|
|
160
|
+
default: {},
|
|
161
|
+
displayOptions: {
|
|
162
|
+
show: {
|
|
163
|
+
operation: ['convert'],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
options: [
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Parse JSON Output Into Item Data',
|
|
169
|
+
name: 'parseJsonOutput',
|
|
170
|
+
type: 'boolean',
|
|
171
|
+
default: true,
|
|
172
|
+
description: 'When Target Format is JSON (e.g. .mpp, .xer, .accdb, .msg, .pst), parse the converted JSON directly into the n8n item JSON alongside the binary property',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Table / Sheet Name (CSV Only)',
|
|
176
|
+
name: 'table',
|
|
177
|
+
type: 'string',
|
|
178
|
+
default: '',
|
|
179
|
+
placeholder: 'Customers',
|
|
180
|
+
description: 'Export a single named table or sheet as CSV from a multi-table file (.accdb, .mdb, .xer, .ods)',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
displayName: 'Include Conversion Metadata',
|
|
184
|
+
name: 'includeMetadata',
|
|
185
|
+
type: 'boolean',
|
|
186
|
+
default: true,
|
|
187
|
+
description: 'Include request_id, conversion_ms, content_type, and byte count on output item JSON',
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
// --- List Formats parameters ---
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Category Filter',
|
|
194
|
+
name: 'category',
|
|
195
|
+
type: 'options',
|
|
196
|
+
default: '',
|
|
197
|
+
displayOptions: {
|
|
198
|
+
show: {
|
|
199
|
+
operation: ['listFormats'],
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
options: [
|
|
203
|
+
{ name: 'All Categories', value: '' },
|
|
204
|
+
{ name: 'Project Schedules (.mpp, .xer)', value: 'project' },
|
|
205
|
+
{ name: 'Desktop Publishing (.pub, .pmd)', value: 'desktop-publishing' },
|
|
206
|
+
{ name: 'Diagrams (.vsdx, .vsd)', value: 'diagram' },
|
|
207
|
+
{ name: 'Email & Mailboxes (.msg, .pst)', value: 'email' },
|
|
208
|
+
{ name: 'Databases (.accdb, .mdb, .wdb)', value: 'database' },
|
|
209
|
+
{ name: 'Word Processing (.wpd, .rtf, .odt, .pages)', value: 'word-processing' },
|
|
210
|
+
{ name: 'Spreadsheets (.ods, .numbers, .wks)', value: 'spreadsheet' },
|
|
211
|
+
{ name: 'Presentations (.odp, .key)', value: 'presentation' },
|
|
212
|
+
{ name: 'Documents (.xps, .djvu)', value: 'document' },
|
|
213
|
+
{ name: 'Notes (.one, .onepkg)', value: 'notes' },
|
|
214
|
+
{ name: 'Vector (.ai, .eps, .cdr)', value: 'vector' },
|
|
215
|
+
{ name: 'Statistics (.sas7bdat, .xpt)', value: 'statistics' },
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
};
|
|
220
|
+
async execute() {
|
|
221
|
+
const items = this.getInputData();
|
|
222
|
+
const returnData = [];
|
|
223
|
+
const credentials = (await this.getCredentials('everformatApi'));
|
|
224
|
+
const baseUrl = credentials.authMode === 'rapidapi'
|
|
225
|
+
? `https://${(credentials.rapidApiHost || 'everformat-legacy-file-conversion-api.p.rapidapi.com').replace(/^https?:\/\//, '')}`
|
|
226
|
+
: (credentials.baseUrl || 'https://everformat.com').replace(/\/+$/, '');
|
|
227
|
+
for (let i = 0; i < items.length; i++) {
|
|
228
|
+
try {
|
|
229
|
+
const operation = this.getNodeParameter('operation', i);
|
|
230
|
+
if (operation === 'listFormats') {
|
|
231
|
+
const category = this.getNodeParameter('category', i, '');
|
|
232
|
+
const qs = {};
|
|
233
|
+
if (category) {
|
|
234
|
+
qs.category = category;
|
|
235
|
+
}
|
|
236
|
+
const response = await this.helpers.httpRequestWithAuthentication.call(this, 'everformatApi', {
|
|
237
|
+
method: 'GET',
|
|
238
|
+
url: `${baseUrl}/v1/formats`,
|
|
239
|
+
qs,
|
|
240
|
+
json: true,
|
|
241
|
+
});
|
|
242
|
+
returnData.push({ json: response, pairedItem: { item: i } });
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
if (operation === 'getUsage') {
|
|
246
|
+
const response = await this.helpers.httpRequestWithAuthentication.call(this, 'everformatApi', {
|
|
247
|
+
method: 'GET',
|
|
248
|
+
url: `${baseUrl}/v1/usage`,
|
|
249
|
+
json: true,
|
|
250
|
+
});
|
|
251
|
+
returnData.push({ json: response, pairedItem: { item: i } });
|
|
252
|
+
continue;
|
|
253
|
+
}
|
|
254
|
+
if (operation === 'convert') {
|
|
255
|
+
const inputSource = this.getNodeParameter('inputSource', i);
|
|
256
|
+
const targetFormat = this.getNodeParameter('targetFormat', i);
|
|
257
|
+
const outputBinaryProperty = this.getNodeParameter('outputBinaryPropertyName', i, 'data');
|
|
258
|
+
const filenameOverride = this.getNodeParameter('filename', i, '').trim();
|
|
259
|
+
const options = this.getNodeParameter('options', i, {});
|
|
260
|
+
let fileBase64 = '';
|
|
261
|
+
let filename = filenameOverride;
|
|
262
|
+
if (inputSource === 'binary') {
|
|
263
|
+
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i);
|
|
264
|
+
const binaryMeta = items[i].binary?.[binaryPropertyName];
|
|
265
|
+
if (!binaryMeta) {
|
|
266
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `No binary data found in property "${binaryPropertyName}" on item ${i}.`, { itemIndex: i });
|
|
267
|
+
}
|
|
268
|
+
const buffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);
|
|
269
|
+
fileBase64 = buffer.toString('base64');
|
|
270
|
+
if (!filename) {
|
|
271
|
+
filename = binaryMeta.fileName || '';
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
fileBase64 = this.getNodeParameter('fileBase64', i).trim();
|
|
276
|
+
}
|
|
277
|
+
if (!filename || !filename.includes('.')) {
|
|
278
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Filename must include a file extension (e.g. "schedule.mpp", "brochure.pub", "diagram.vsdx").', { itemIndex: i });
|
|
279
|
+
}
|
|
280
|
+
const body = {
|
|
281
|
+
filename,
|
|
282
|
+
file_base64: fileBase64,
|
|
283
|
+
target_format: targetFormat,
|
|
284
|
+
response_format: 'json',
|
|
285
|
+
};
|
|
286
|
+
if (typeof options.table === 'string' && options.table.trim()) {
|
|
287
|
+
body.table = options.table.trim();
|
|
288
|
+
}
|
|
289
|
+
const requestOptions = {
|
|
290
|
+
method: 'POST',
|
|
291
|
+
url: `${baseUrl}/v1/convert`,
|
|
292
|
+
body,
|
|
293
|
+
json: true,
|
|
294
|
+
};
|
|
295
|
+
const envelope = (await this.helpers.httpRequestWithAuthentication.call(this, 'everformatApi', requestOptions));
|
|
296
|
+
const outBuffer = Buffer.from(envelope.file_base64, 'base64');
|
|
297
|
+
const binaryData = await this.helpers.prepareBinaryData(outBuffer, envelope.filename, envelope.content_type);
|
|
298
|
+
const outJson = {};
|
|
299
|
+
if (options.includeMetadata !== false) {
|
|
300
|
+
outJson.everformat = {
|
|
301
|
+
request_id: envelope.request_id,
|
|
302
|
+
source_extension: envelope.source_extension,
|
|
303
|
+
target_format: envelope.target_format,
|
|
304
|
+
filename: envelope.filename,
|
|
305
|
+
content_type: envelope.content_type,
|
|
306
|
+
bytes: envelope.bytes,
|
|
307
|
+
conversion_ms: envelope.conversion_ms,
|
|
308
|
+
zero_retention: envelope.zero_retention,
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
if (targetFormat === 'json' && options.parseJsonOutput !== false) {
|
|
312
|
+
try {
|
|
313
|
+
outJson.data = JSON.parse(outBuffer.toString('utf-8'));
|
|
314
|
+
}
|
|
315
|
+
catch {
|
|
316
|
+
outJson.text = outBuffer.toString('utf-8');
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
returnData.push({
|
|
320
|
+
json: outJson,
|
|
321
|
+
binary: {
|
|
322
|
+
[outputBinaryProperty]: binaryData,
|
|
323
|
+
},
|
|
324
|
+
pairedItem: { item: i },
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
catch (error) {
|
|
329
|
+
if (this.continueOnFail()) {
|
|
330
|
+
returnData.push({
|
|
331
|
+
json: {
|
|
332
|
+
error: error instanceof Error ? error.message : String(error),
|
|
333
|
+
},
|
|
334
|
+
pairedItem: { item: i },
|
|
335
|
+
});
|
|
336
|
+
continue;
|
|
337
|
+
}
|
|
338
|
+
throw error;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return [returnData];
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
exports.Everformat = Everformat;
|
|
345
|
+
//# sourceMappingURL=Everformat.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Everformat.node.js","sourceRoot":"","sources":["../../../nodes/Everformat/Everformat.node.ts"],"names":[],"mappings":";;;AAQA,+CAAkD;AAoBlD,MAAa,UAAU;IACtB,WAAW,GAAyB;QACnC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,qBAAqB;QAC3B,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,8BAA8B;QACxC,WAAW,EACV,gJAAgJ;QACjJ,QAAQ,EAAE;YACT,IAAI,EAAE,YAAY;SAClB;QACD,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE;YACZ;gBACC,IAAI,EAAE,eAAe;gBACrB,QAAQ,EAAE,IAAI;aACd;SACD;QACD,UAAU,EAAE;YACX;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,gBAAgB,EAAE,IAAI;gBACtB,OAAO,EAAE,SAAS;gBAClB,OAAO,EAAE;oBACR;wBACC,IAA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AAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE;4BACL,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;yBAC7D;wBACD,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,MAAM,KAAK,CAAC;YACb,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAvXD,gCAuXC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#0F172A"/>
|
|
3
|
+
<path d="M16 14h20l12 12v24a4 4 0 0 1-4 4H16a4 4 0 0 1-4-4V18a4 4 0 0 1 4-4z" fill="#1E293B" stroke="#38BDF8" stroke-width="2.5"/>
|
|
4
|
+
<path d="M36 14v12h12" fill="none" stroke="#38BDF8" stroke-width="2.5" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M21 35h16m0 0-5-5m5 5-5 5" fill="none" stroke="#22C55E" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<rect x="21" y="23" width="10" height="3" rx="1.5" fill="#94A3B8"/>
|
|
7
|
+
<rect x="21" y="45" width="18" height="3" rx="1.5" fill="#38BDF8"/>
|
|
8
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-everformat",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "n8n community node for Everformat Legacy File Conversion API — convert Microsoft Project (.mpp), Publisher (.pub), Visio (.vsdx), Outlook (.msg/.pst), WordPerfect (.wpd), Access (.accdb), Primavera P6 (.xer), OpenDocument (.ods), RTF, XPS, and Apple iWork files to PDF, Excel, Word, PowerPoint, JSON, CSV, or PNG.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"n8n",
|
|
8
|
+
"everformat",
|
|
9
|
+
"file-conversion",
|
|
10
|
+
"mpp",
|
|
11
|
+
"microsoft-project",
|
|
12
|
+
"pub",
|
|
13
|
+
"microsoft-publisher",
|
|
14
|
+
"vsdx",
|
|
15
|
+
"visio",
|
|
16
|
+
"wpd",
|
|
17
|
+
"wordperfect",
|
|
18
|
+
"accdb",
|
|
19
|
+
"access",
|
|
20
|
+
"xer",
|
|
21
|
+
"primavera",
|
|
22
|
+
"msg",
|
|
23
|
+
"pst",
|
|
24
|
+
"outlook",
|
|
25
|
+
"xps",
|
|
26
|
+
"pdf",
|
|
27
|
+
"xlsx"
|
|
28
|
+
],
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"homepage": "https://everformat.com",
|
|
31
|
+
"author": {
|
|
32
|
+
"name": "Everformat",
|
|
33
|
+
"email": "support@everformat.com",
|
|
34
|
+
"url": "https://everformat.com"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/everformat/n8n-nodes-everformat.git"
|
|
39
|
+
},
|
|
40
|
+
"main": "index.js",
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc && npm run copy:icons",
|
|
43
|
+
"copy:icons": "node -e \"const fs=require('fs');fs.mkdirSync('dist/nodes/Everformat',{recursive:true});fs.copyFileSync('nodes/Everformat/everformat.svg','dist/nodes/Everformat/everformat.svg');\"",
|
|
44
|
+
"dev": "tsc --watch",
|
|
45
|
+
"lint": "eslint nodes credentials",
|
|
46
|
+
"prepublishOnly": "npm run build"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"dist",
|
|
50
|
+
"README.md"
|
|
51
|
+
],
|
|
52
|
+
"n8n": {
|
|
53
|
+
"n8nNodesApiVersion": 1,
|
|
54
|
+
"credentials": [
|
|
55
|
+
"dist/credentials/EverformatApi.credentials.js"
|
|
56
|
+
],
|
|
57
|
+
"nodes": [
|
|
58
|
+
"dist/nodes/Everformat/Everformat.node.js"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@types/node": "^20.14.0",
|
|
63
|
+
"n8n-workflow": "^1.55.0",
|
|
64
|
+
"typescript": "^5.5.0"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=18.17.0"
|
|
68
|
+
}
|
|
69
|
+
}
|