n8n-nodes-calagopus 0.2.0 → 0.4.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/CHANGELOG.md +23 -0
- package/README.md +96 -37
- package/dist/nodes/Calagopus/Calagopus.node.js +129 -24
- package/dist/nodes/Calagopus/Calagopus.node.js.map +1 -1
- package/dist/nodes/Calagopus/operations.d.ts +7 -5
- package/dist/nodes/Calagopus/operations.js +411 -21
- package/dist/nodes/Calagopus/operations.js.map +1 -1
- package/dist/package.json +10 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,31 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [0.4.0](https://github.com/nn-home-com/n8n-nodes-calagopus/compare/0.3.0...0.4.0)
|
|
8
|
+
|
|
9
|
+
- Credit maintainer account as package author [`#11`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/11)
|
|
10
|
+
- Bump the dev-dependencies group with 2 updates [`#9`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/9)
|
|
11
|
+
- Sync with Calagopus Panel 1.2.8 [`#10`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/10)
|
|
12
|
+
- Bump actions/checkout from 6 to 7 [`#6`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/6)
|
|
13
|
+
- Bump actions/setup-node from 6 to 7 [`#5`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/5)
|
|
14
|
+
- Limit Dependabot npm updates to non-breaking versions [`#8`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/8)
|
|
15
|
+
- Sync operations with Calagopus Panel 1.2.8 [`184627b`](https://github.com/nn-home-com/n8n-nodes-calagopus/commit/184627bb4c5eb1a0868e414304ea64331cf7f2bd)
|
|
16
|
+
- Credit the maintainer's GitHub account as package author [`be16312`](https://github.com/nn-home-com/n8n-nodes-calagopus/commit/be16312a3c555573f28d49abad5d1b1b16515019)
|
|
17
|
+
|
|
18
|
+
#### [0.3.0](https://github.com/nn-home-com/n8n-nodes-calagopus/compare/0.2.0...0.3.0)
|
|
19
|
+
|
|
20
|
+
> 4 October 2026
|
|
21
|
+
|
|
22
|
+
- Sync with Calagopus Panel 1.2.4 [`#4`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/4)
|
|
23
|
+
- Retry npm registry fetches in CI workflows [`#3`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/3)
|
|
24
|
+
- Sync operations with Calagopus Panel 1.2.4 [`09c59ea`](https://github.com/nn-home-com/n8n-nodes-calagopus/commit/09c59ea446e03eaaf7c93353ad83936c7385f2f0)
|
|
25
|
+
- Expand documentation and repository templates [`d30a3cb`](https://github.com/nn-home-com/n8n-nodes-calagopus/commit/d30a3cb91d963236ec922f92d765a3a53062013d)
|
|
26
|
+
- Check operations against Calagopus Panel routes in CI [`ae92dbb`](https://github.com/nn-home-com/n8n-nodes-calagopus/commit/ae92dbba25968cae99c910319f33ef9d969917b6)
|
|
27
|
+
|
|
7
28
|
#### 0.2.0
|
|
8
29
|
|
|
30
|
+
> 30 June 2026
|
|
31
|
+
|
|
9
32
|
- Use npm trusted publishing (OIDC) for releases [`#2`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/2)
|
|
10
33
|
- Sync operations with current Calagopus API [`#1`](https://github.com/nn-home-com/n8n-nodes-calagopus/pull/1)
|
|
11
34
|
- Track npm lockfile for reproducible builds [`74247aa`](https://github.com/nn-home-com/n8n-nodes-calagopus/commit/74247aa11fec01f4edaf4610a5c4e583e908413c)
|
package/README.md
CHANGED
|
@@ -1,79 +1,138 @@
|
|
|
1
1
|
# n8n-nodes-calagopus
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/n8n-nodes-calagopus)
|
|
4
|
+
[](https://github.com/nn-home-com/n8n-nodes-calagopus/actions/workflows/ci.yml)
|
|
5
|
+
[](LICENSE)
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
An [n8n](https://n8n.io/) community node for [Calagopus](https://calagopus.com/), the open-source game server management panel.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
Use it to automate everything the Calagopus Panel API offers from your n8n workflows: provision servers, run backups, manage eggs and nodes, administer users, or react to panel state in any other integration n8n supports.
|
|
8
10
|
|
|
9
|
-
[Installation](#installation)
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
11
|
+
- [Installation](#installation)
|
|
12
|
+
- [Credentials](#credentials)
|
|
13
|
+
- [Operations](#operations)
|
|
14
|
+
- [Usage](#usage)
|
|
15
|
+
- [Compatibility](#compatibility)
|
|
16
|
+
- [Development](#development)
|
|
17
|
+
- [Resources](#resources)
|
|
16
18
|
|
|
17
19
|
## Installation
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
In a self-hosted n8n instance:
|
|
20
22
|
|
|
21
|
-
1. Open **Settings
|
|
23
|
+
1. Open **Settings → Community Nodes**.
|
|
22
24
|
2. Select **Install**.
|
|
23
25
|
3. Enter `n8n-nodes-calagopus`.
|
|
24
|
-
4. Accept the community
|
|
26
|
+
4. Accept the community node notice and install.
|
|
25
27
|
|
|
26
|
-
For manual installation, install the
|
|
28
|
+
For manual installation, install the package into the custom nodes directory and restart n8n:
|
|
27
29
|
|
|
28
30
|
```bash
|
|
29
31
|
cd ~/.n8n/custom
|
|
30
32
|
npm install n8n-nodes-calagopus
|
|
31
33
|
```
|
|
32
34
|
|
|
33
|
-
See the [n8n community nodes
|
|
35
|
+
See the [n8n community nodes guide](https://docs.n8n.io/integrations/community-nodes/installation/) for Docker and environment-variable based setups.
|
|
36
|
+
|
|
37
|
+
## Credentials
|
|
38
|
+
|
|
39
|
+
Create an API key in your Calagopus Panel account settings, then add a **Calagopus API** credential in n8n:
|
|
40
|
+
|
|
41
|
+
| Field | Description |
|
|
42
|
+
| -------------- | ----------------------------------------------------- |
|
|
43
|
+
| Panel Base URL | The URL of your panel, e.g. `https://panel.example.com` |
|
|
44
|
+
| API Token | The API key. It is sent as a bearer token. |
|
|
45
|
+
|
|
46
|
+
The key's permissions decide which operations succeed. Admin operations require an account with admin permissions. n8n validates the credential by requesting `/api/client/permissions`.
|
|
34
47
|
|
|
35
48
|
## Operations
|
|
36
49
|
|
|
37
|
-
The node
|
|
50
|
+
The node covers every user-facing endpoint of the Calagopus Panel API, which is 589 operations across 43 resources. Coverage is checked in CI against the [supported panel version](#compatibility).
|
|
38
51
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
52
|
+
| Area | Resources |
|
|
53
|
+
| ------- | --------- |
|
|
54
|
+
| Account | Client Account (profile, API keys, SSH and security keys, sessions, two-factor, OAuth links, command snippets, synced settings) |
|
|
55
|
+
| Servers | Client Server, Allocations, Announcements, Backups, Backup Groups, Databases, Database Instances, Database Explorer, Database Instance Explorer, Devices, Files, Firewall, Mounts, Schedules, Settings, Startup, Subusers, Tunnel |
|
|
56
|
+
| Admin | Activity, Announcements, Assets, Backup Configurations, Database Hosts, Database Agent Hosts, Database Agent Templates, Devices, Egg Configurations, Egg Repositories, Extensions, Locations, Mounts, Nests and Eggs, Nodes, OAuth Providers, Roles, Servers, Settings, Stats, System, System Backup Policies, Users |
|
|
57
|
+
| Public | System (announcements, languages, public settings, OpenAPI document) |
|
|
43
58
|
|
|
44
|
-
|
|
59
|
+
Endpoints for interactive sign-in (`/api/auth`) and for Wings and database agent communication (`/api/remote`) are intentionally not exposed.
|
|
60
|
+
|
|
61
|
+
**Custom Request** lets you call any other path with your credential, for example endpoints added by panel extensions.
|
|
45
62
|
|
|
46
|
-
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
### Path parameters
|
|
66
|
+
|
|
67
|
+
Every UUID or name in the endpoint path, such as the server or backup UUID, has its own field. Values are URL-encoded automatically.
|
|
68
|
+
|
|
69
|
+
### Query parameters
|
|
70
|
+
|
|
71
|
+
List operations accept query parameters as a JSON object in **Query Parameters JSON**, for example:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{ "page": 2, "per_page": 50, "search": "survival" }
|
|
75
|
+
```
|
|
47
76
|
|
|
48
|
-
|
|
49
|
-
* API Token
|
|
77
|
+
### Request bodies
|
|
50
78
|
|
|
51
|
-
|
|
79
|
+
Operations that send a body offer three modes:
|
|
80
|
+
|
|
81
|
+
- **JSON** (default): the object in **Body JSON** is sent as the request body. Common operations also have dedicated fields, such as the power action, backup name or startup command. Body JSON is merged on top of these fields, so you can always set additional or overriding properties.
|
|
82
|
+
- **Raw Text**: the text is sent as `text/plain`. This is the default for **Server Files → Write**.
|
|
83
|
+
- **None**: no body is sent.
|
|
84
|
+
|
|
85
|
+
Refer to your panel's API reference at `/api` for the accepted fields of each endpoint.
|
|
86
|
+
|
|
87
|
+
### Files
|
|
88
|
+
|
|
89
|
+
Database dump imports read the file from a binary field of the input item (default `data`). Database exports return the downloaded file in a binary field of the output item, with `fileName`, `mimeType` and `fileSize` in the item JSON. Combine them with nodes such as **Read/Write Files from Disk**, **FTP** or **S3** to move dumps in and out of the panel.
|
|
90
|
+
|
|
91
|
+
### Error handling
|
|
92
|
+
|
|
93
|
+
By default, HTTP errors fail the item. Under **Additional Options** you can enable **Ignore HTTP Status Errors** to receive the error response instead, or **Return Full Response** to include status code and headers. The node supports n8n's **Continue On Fail** setting.
|
|
52
94
|
|
|
53
95
|
## Compatibility
|
|
54
96
|
|
|
55
|
-
|
|
97
|
+
| Component | Supported version |
|
|
98
|
+
| --------------- | ---------------------------------------------- |
|
|
99
|
+
| Calagopus Panel | 1.2.8 (operations are verified against its routes) |
|
|
100
|
+
| n8n | Self-hosted instances with community node support |
|
|
56
101
|
|
|
57
|
-
|
|
102
|
+
Older panel releases work for every endpoint they already provide. Calling an endpoint that your panel does not have yet returns `404 Not Found`.
|
|
58
103
|
|
|
59
|
-
|
|
104
|
+
A scheduled workflow compares the node with the latest panel release every week, so new and changed endpoints are picked up quickly.
|
|
60
105
|
|
|
61
|
-
|
|
106
|
+
## Development
|
|
107
|
+
|
|
108
|
+
Requirements: Node.js 22 or later.
|
|
62
109
|
|
|
63
110
|
```bash
|
|
64
111
|
npm install
|
|
65
|
-
npm run dev
|
|
112
|
+
npm run dev # start a local n8n instance with the node loaded
|
|
113
|
+
npm run build # compile to dist/
|
|
114
|
+
npm run lint # n8n community node lint rules
|
|
115
|
+
npm test # unit tests (requires a build)
|
|
66
116
|
```
|
|
67
117
|
|
|
68
|
-
|
|
118
|
+
To check the node against a Calagopus Panel checkout:
|
|
69
119
|
|
|
70
|
-
|
|
120
|
+
```bash
|
|
121
|
+
git clone --depth 1 --branch release-1.2.8 https://github.com/calagopus/panel.git ../panel
|
|
122
|
+
npm run build
|
|
123
|
+
npm run api:coverage -- ../panel # fails if an operation targets a missing route
|
|
124
|
+
npm run api:coverage -- ../panel --strict # also fails if a panel route has no operation
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for how to add operations and release new versions.
|
|
71
128
|
|
|
72
|
-
|
|
73
|
-
* [Calagopus documentation](https://calagopus.com/docs/)
|
|
129
|
+
## Resources
|
|
74
130
|
|
|
75
|
-
|
|
131
|
+
- [Calagopus documentation](https://calagopus.com/docs/)
|
|
132
|
+
- [Calagopus Panel source](https://github.com/calagopus/panel)
|
|
133
|
+
- [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
|
|
134
|
+
- [Changelog](CHANGELOG.md)
|
|
76
135
|
|
|
77
|
-
|
|
136
|
+
## License
|
|
78
137
|
|
|
79
|
-
|
|
138
|
+
[MIT](LICENSE)
|
|
@@ -31,6 +31,28 @@ function toJsonObject(response) {
|
|
|
31
31
|
}
|
|
32
32
|
return { data: response };
|
|
33
33
|
}
|
|
34
|
+
function getHeader(headers, name) {
|
|
35
|
+
const value = headers[name.toLowerCase()];
|
|
36
|
+
if (Array.isArray(value)) {
|
|
37
|
+
return value.length > 0 ? String(value[0]) : undefined;
|
|
38
|
+
}
|
|
39
|
+
return value === undefined || value === null ? undefined : String(value);
|
|
40
|
+
}
|
|
41
|
+
function parseContentDispositionFileName(header) {
|
|
42
|
+
if (!header) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
const extended = /filename\*\s*=\s*(?:UTF-8|utf-8)''([^;]+)/.exec(header);
|
|
46
|
+
if (extended) {
|
|
47
|
+
try {
|
|
48
|
+
return decodeURIComponent(extended[1].trim());
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const plain = /filename\s*=\s*"?([^";]+)"?/.exec(header);
|
|
54
|
+
return plain ? plain[1].trim() : undefined;
|
|
55
|
+
}
|
|
34
56
|
function parseMultilineList(value) {
|
|
35
57
|
return value
|
|
36
58
|
.split(/\r?\n/)
|
|
@@ -50,11 +72,13 @@ function buildStructuredBody(operationValue, itemIndex) {
|
|
|
50
72
|
addStringIfNotEmpty(body, 'command', this.getNodeParameter('consoleCommand', itemIndex, ''));
|
|
51
73
|
break;
|
|
52
74
|
case 'clientServer.setPowerState':
|
|
75
|
+
case 'serverDatabaseInstances.setPowerState':
|
|
53
76
|
body.action = this.getNodeParameter('powerAction', itemIndex, 'start');
|
|
54
77
|
break;
|
|
55
78
|
case 'serverBackups.create':
|
|
56
79
|
addStringIfNotEmpty(body, 'name', this.getNodeParameter('backupName', itemIndex, ''));
|
|
57
80
|
body.ignored_files = parseMultilineList(this.getNodeParameter('backupIgnoredFiles', itemIndex, ''));
|
|
81
|
+
addStringIfNotEmpty(body, 'backup_group_uuid', this.getNodeParameter('backupGroupUuidBody', itemIndex, ''));
|
|
58
82
|
break;
|
|
59
83
|
case 'serverBackups.restore':
|
|
60
84
|
body.truncate_directory = this.getNodeParameter('truncateDirectory', itemIndex, false);
|
|
@@ -88,6 +112,24 @@ function buildStructuredBody(operationValue, itemIndex) {
|
|
|
88
112
|
case 'serverSettings.updateTimezone':
|
|
89
113
|
addStringIfNotEmpty(body, 'timezone', this.getNodeParameter('serverTimezone', itemIndex, ''));
|
|
90
114
|
break;
|
|
115
|
+
case 'adminBackupConfigurations.retryFailedDeletions':
|
|
116
|
+
case 'adminDatabaseAgentHosts.retryFailedDeletions':
|
|
117
|
+
case 'adminNodes.retryFailedDeletions':
|
|
118
|
+
case 'adminServers.retryFailedDeletions':
|
|
119
|
+
case 'adminSystemBackupPolicies.retryFailedDeletions':
|
|
120
|
+
body.force = this.getNodeParameter('retryDeletionsForce', itemIndex, false);
|
|
121
|
+
break;
|
|
122
|
+
case 'serverFiles.deleteTrash': {
|
|
123
|
+
const selector = this.getNodeParameter('trashSelector', itemIndex, 'uuids');
|
|
124
|
+
body.selector =
|
|
125
|
+
selector === 'all'
|
|
126
|
+
? { type: 'all' }
|
|
127
|
+
: {
|
|
128
|
+
type: 'uuids',
|
|
129
|
+
uuids: parseMultilineList(this.getNodeParameter('trashEntryUuids', itemIndex, '')),
|
|
130
|
+
};
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
91
133
|
case 'serverStartup.updateCommand':
|
|
92
134
|
addStringIfNotEmpty(body, 'command', this.getNodeParameter('startupCommand', itemIndex, ''));
|
|
93
135
|
break;
|
|
@@ -97,6 +139,87 @@ function buildStructuredBody(operationValue, itemIndex) {
|
|
|
97
139
|
}
|
|
98
140
|
return body;
|
|
99
141
|
}
|
|
142
|
+
async function setRequestBody(operation, itemIndex, requestOptions) {
|
|
143
|
+
if (operation.body === 'binary') {
|
|
144
|
+
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', itemIndex);
|
|
145
|
+
const binaryData = this.helpers.assertBinaryData(itemIndex, binaryPropertyName);
|
|
146
|
+
requestOptions.body = await this.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
|
|
147
|
+
requestOptions.json = false;
|
|
148
|
+
requestOptions.headers = {
|
|
149
|
+
...requestOptions.headers,
|
|
150
|
+
'Content-Type': binaryData.mimeType || 'application/octet-stream',
|
|
151
|
+
};
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const bodyMode = this.getNodeParameter('bodyMode', itemIndex, operation.body);
|
|
155
|
+
if (bodyMode === 'json') {
|
|
156
|
+
const structuredBody = buildStructuredBody.call(this, operation.value, itemIndex);
|
|
157
|
+
const jsonBody = parseJsonParameter(this.getNodeParameter('bodyJson', itemIndex, '{}'), 'Body JSON');
|
|
158
|
+
requestOptions.body = {
|
|
159
|
+
...structuredBody,
|
|
160
|
+
...jsonBody,
|
|
161
|
+
};
|
|
162
|
+
requestOptions.headers = {
|
|
163
|
+
...requestOptions.headers,
|
|
164
|
+
'Content-Type': 'application/json',
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
else if (bodyMode === 'raw') {
|
|
168
|
+
requestOptions.body = this.getNodeParameter('rawBody', itemIndex, '');
|
|
169
|
+
requestOptions.json = false;
|
|
170
|
+
requestOptions.headers = {
|
|
171
|
+
...requestOptions.headers,
|
|
172
|
+
'Content-Type': 'text/plain',
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
async function requestBinary(itemIndex, requestOptions) {
|
|
177
|
+
var _a, _b;
|
|
178
|
+
const response = (await this.helpers.httpRequestWithAuthentication.call(this, 'calagopusApi', {
|
|
179
|
+
...requestOptions,
|
|
180
|
+
json: false,
|
|
181
|
+
encoding: 'arraybuffer',
|
|
182
|
+
returnFullResponse: true,
|
|
183
|
+
headers: {
|
|
184
|
+
...requestOptions.headers,
|
|
185
|
+
Accept: '*/*',
|
|
186
|
+
},
|
|
187
|
+
}));
|
|
188
|
+
const headers = ((_a = response.headers) !== null && _a !== void 0 ? _a : {});
|
|
189
|
+
const statusCode = response.statusCode;
|
|
190
|
+
const content = Buffer.from(response.body);
|
|
191
|
+
if (statusCode >= 400) {
|
|
192
|
+
const text = content.toString('utf8');
|
|
193
|
+
let body = text;
|
|
194
|
+
try {
|
|
195
|
+
body = JSON.parse(text);
|
|
196
|
+
}
|
|
197
|
+
catch {
|
|
198
|
+
}
|
|
199
|
+
return {
|
|
200
|
+
json: { statusCode, body },
|
|
201
|
+
pairedItem: itemIndex,
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
const mimeType = (_b = getHeader(headers, 'content-type')) !== null && _b !== void 0 ? _b : 'application/octet-stream';
|
|
205
|
+
const fileName = parseContentDispositionFileName(getHeader(headers, 'content-disposition'));
|
|
206
|
+
const binaryPropertyName = this.getNodeParameter('binaryOutputPropertyName', itemIndex, 'data');
|
|
207
|
+
const binaryData = await this.helpers.prepareBinaryData(content, fileName, mimeType);
|
|
208
|
+
const json = {
|
|
209
|
+
fileName: binaryData.fileName,
|
|
210
|
+
mimeType: binaryData.mimeType,
|
|
211
|
+
fileSize: content.length,
|
|
212
|
+
};
|
|
213
|
+
if (requestOptions.returnFullResponse === true) {
|
|
214
|
+
json.statusCode = statusCode;
|
|
215
|
+
json.headers = headers;
|
|
216
|
+
}
|
|
217
|
+
return {
|
|
218
|
+
json,
|
|
219
|
+
binary: { [binaryPropertyName]: binaryData },
|
|
220
|
+
pairedItem: itemIndex,
|
|
221
|
+
};
|
|
222
|
+
}
|
|
100
223
|
class Calagopus {
|
|
101
224
|
constructor() {
|
|
102
225
|
this.description = {
|
|
@@ -136,7 +259,6 @@ class Calagopus {
|
|
|
136
259
|
};
|
|
137
260
|
}
|
|
138
261
|
async execute() {
|
|
139
|
-
var _a, _b;
|
|
140
262
|
const items = this.getInputData();
|
|
141
263
|
const returnData = [];
|
|
142
264
|
const credentials = await this.getCredentials('calagopusApi');
|
|
@@ -156,7 +278,7 @@ class Calagopus {
|
|
|
156
278
|
let url = operation.value === 'custom.request'
|
|
157
279
|
? normalizePath(this.getNodeParameter('customPath', itemIndex))
|
|
158
280
|
: operation.path;
|
|
159
|
-
for (const identifier of
|
|
281
|
+
for (const identifier of operation.identifiers) {
|
|
160
282
|
const value = encodeURIComponent(this.getNodeParameter(identifier, itemIndex));
|
|
161
283
|
url = url.replace(`{${identifier}}`, value);
|
|
162
284
|
}
|
|
@@ -181,28 +303,11 @@ class Calagopus {
|
|
|
181
303
|
requestOptions.timeout = additionalOptions.timeout;
|
|
182
304
|
}
|
|
183
305
|
if (operation.hasBody) {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
requestOptions.body = {
|
|
190
|
-
...structuredBody,
|
|
191
|
-
...jsonBody,
|
|
192
|
-
};
|
|
193
|
-
requestOptions.headers = {
|
|
194
|
-
...requestOptions.headers,
|
|
195
|
-
'Content-Type': 'application/json',
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
else if (bodyMode === 'raw') {
|
|
199
|
-
requestOptions.body = this.getNodeParameter('rawBody', itemIndex, '');
|
|
200
|
-
requestOptions.json = false;
|
|
201
|
-
requestOptions.headers = {
|
|
202
|
-
...requestOptions.headers,
|
|
203
|
-
'Content-Type': 'text/plain',
|
|
204
|
-
};
|
|
205
|
-
}
|
|
306
|
+
await setRequestBody.call(this, operation, itemIndex, requestOptions);
|
|
307
|
+
}
|
|
308
|
+
if (operation.response === 'binary') {
|
|
309
|
+
returnData.push(await requestBinary.call(this, itemIndex, requestOptions));
|
|
310
|
+
continue;
|
|
206
311
|
}
|
|
207
312
|
const response = await this.helpers.httpRequestWithAuthentication.call(this, 'calagopusApi', requestOptions);
|
|
208
313
|
returnData.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calagopus.node.js","sourceRoot":"","sources":["../../../nodes/Calagopus/Calagopus.node.ts"],"names":[],"mappings":";;;AASA,+CAAyF;AACzF,6CAMsB;AAEtB,SAAS,kBAAkB,CAAC,KAAa,EAAE,aAAqB;IAC/D,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACzB,OAAO,EAAE,CAAC;IACX,CAAC;IAED,MAAM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,IAAI,CAAC;oBACf,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC;oBAC5B,UAAU,EAAE,SAAS;iBACrB,CAAC,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,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,SAAS;qBACrB,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;YACpE,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAxID,8BAwIC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { IHttpRequestMethods, INodeProperties, INodePropertyOptions } from 'n8n-workflow';
|
|
2
|
-
export type IdentifierName = 'allocationUuid' | 'announcementUuid' | 'apiKeyUuid' | 'backupConfigurationUuid' | 'backupUuid' | 'commandSnippetUuid' | 'databaseHostUuid' | 'databaseUuid' | 'eggConfigurationUuid' | 'eggRepositoryUuid' | 'eggUuid' | 'extensionPackageName' | 'externalServerId' | 'externalUserId' | 'hostUuid' | 'locationUuid' | 'logFile' | 'mappingUuid' | 'mountUuid' | 'nestUuid' | 'nodeUuid' | 'oauthLinkUuid' | 'oauthProviderUuid' | 'oauthUserIdentifier' | 'operationUuid' | 'pullUuid' | 'revisionId' | 'roleUuid' | 'scheduleUuid' | 'securityKeyUuid' | 'serverGroupUuid' | 'serverUuid' | 'sessionUuid' | 'sshKeyUuid' | 'stepUuid' | 'subuserUuid' | 'templateIdentifier' | 'userUuid' | 'variableUuid';
|
|
2
|
+
export type IdentifierName = 'allocationUuid' | 'announcementUuid' | 'apiKeyIdentifier' | 'apiKeyUuid' | 'backupConfigurationUuid' | 'backupGroupUuid' | 'backupUuid' | 'commandSnippetUuid' | 'connectionUuid' | 'databaseAgentHostUuid' | 'databaseAgentTemplateUuid' | 'databaseHostUuid' | 'databaseInstanceUuid' | 'databaseUserUuid' | 'databaseUuid' | 'deviceUuid' | 'eggConfigurationUuid' | 'eggRepositoryUuid' | 'eggUuid' | 'emailVariableName' | 'extensionPackageName' | 'externalServerId' | 'externalUserId' | 'hostUuid' | 'locationUuid' | 'logFile' | 'mappingUuid' | 'mountUuid' | 'nestUuid' | 'nodeUuid' | 'oauthLinkUuid' | 'oauthProviderUuid' | 'oauthUserIdentifier' | 'operationUuid' | 'pullUuid' | 'revisionId' | 'roleUuid' | 'scheduleUuid' | 'securityKeyUuid' | 'serverGroupUuid' | 'serverUuid' | 'sessionUuid' | 'sshKeyUuid' | 'stepUuid' | 'subuserUuid' | 'systemBackupPolicyUuid' | 'templateIdentifier' | 'userUuid' | 'variableUuid';
|
|
3
|
+
export type BodyFormat = 'json' | 'raw' | 'binary';
|
|
4
|
+
export type ResponseFormat = 'json' | 'binary';
|
|
3
5
|
export interface OperationSpec {
|
|
4
6
|
name: string;
|
|
5
7
|
value: string;
|
|
@@ -8,14 +10,14 @@ export interface OperationSpec {
|
|
|
8
10
|
method: IHttpRequestMethods;
|
|
9
11
|
path: string;
|
|
10
12
|
description: string;
|
|
11
|
-
identifiers
|
|
12
|
-
hasBody
|
|
13
|
-
|
|
13
|
+
identifiers: IdentifierName[];
|
|
14
|
+
hasBody: boolean;
|
|
15
|
+
body: BodyFormat;
|
|
16
|
+
response: ResponseFormat;
|
|
14
17
|
}
|
|
15
18
|
export declare const operations: OperationSpec[];
|
|
16
19
|
export declare const customOperation: OperationSpec;
|
|
17
20
|
export declare const resourceOptions: INodePropertyOptions[];
|
|
18
21
|
export declare const operationProperties: INodeProperties[];
|
|
19
22
|
export declare const commonProperties: INodeProperties[];
|
|
20
|
-
export declare const defaultBodyModeByOperation: Map<string, string>;
|
|
21
23
|
export declare const operationByValue: Map<string, OperationSpec>;
|