n8n-nodes-test-node 1.0.15 → 1.0.17
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 +5 -14
- package/dist/GitHubV3RESTAPIApi.credentials.d.ts +8 -0
- package/dist/GitHubV3RESTAPIApi.credentials.js +28 -0
- package/dist/{GofileAPINode.node.d.ts → GitHubV3RESTAPINode.node.d.ts} +1 -1
- package/dist/GitHubV3RESTAPINode.node.js +66813 -0
- package/dist/{GofileAPIToolNode.node.d.ts → GitHubV3RESTAPIToolNode.node.d.ts} +1 -1
- package/dist/GitHubV3RESTAPIToolNode.node.js +66814 -0
- package/package.json +6 -9
- package/dist/GofileAPIApi.credentials.d.ts +0 -9
- package/dist/GofileAPIApi.credentials.js +0 -45
- package/dist/GofileAPIFilesNode.node.d.ts +0 -5
- package/dist/GofileAPIFilesNode.node.js +0 -119
- package/dist/GofileAPIFilesToolNode.node.d.ts +0 -5
- package/dist/GofileAPIFilesToolNode.node.js +0 -120
- package/dist/GofileAPINode.node.js +0 -837
- package/dist/GofileAPIToolNode.node.js +0 -838
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# n8n-nodes-test-node
|
|
2
2
|
|
|
3
|
-
Auto-generated n8n community node for the **
|
|
3
|
+
Auto-generated n8n community node for the **GitHub v3 REST API** API (spec version 1.1.4), built from its OpenAPI document.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -14,19 +14,10 @@ npm install n8n-nodes-test-node
|
|
|
14
14
|
|
|
15
15
|
## What was generated
|
|
16
16
|
|
|
17
|
-
- Node type(s) in this package: **
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
- Default Base URL: `https://api.gofile.io` (override it in the credential's "Base URL" field to point at a different environment)
|
|
22
|
-
|
|
23
|
-
## File upload/download
|
|
24
|
-
|
|
25
|
-
Operations whose request body is a `multipart/form-data` file upload, or whose response is binary (an image, PDF, or other non-JSON file), are generated as a **separate node** ("...Files") rather than folded into the main one. This is deliberate, not a limitation of the source spec: n8n's declarative request-routing (what the main node is built with, so it needs no hand-written request logic) is confirmed broken for binary payloads -- it JSON-serializes binary data instead of sending real bytes ([n8n-io/n8n#17823](https://github.com/n8n-io/n8n/issues/17823)). The Files node is instead a small, hand-written (programmatic) node using n8n's HTTP helpers directly, which handle binary correctly.
|
|
26
|
-
|
|
27
|
-
- **Uploads**: set "Input Binary Field" to the name of the binary property on the incoming item that holds the file (n8n's convention -- usually `data`, e.g. from a **Read/Write File** or **HTTP Request** node upstream).
|
|
28
|
-
- **Downloads**: set "Output Binary Field" to the name the downloaded file should be written to on the output item (also usually `data`, ready for a **Read/Write File** node or another HTTP call downstream).
|
|
29
|
-
- The Files node shares the exact same credential as the main node.
|
|
17
|
+
- Node type(s) in this package: **gitHubV3RESTAPI**, **gitHubV3RESTAPITool** (AI Agent tool).
|
|
18
|
+
- 34 resource(s), 1038 operation(s) (identical parameter set on the regular and tool nodes -- they share the same credential and routing, differing only in identity and how they present themselves).
|
|
19
|
+
- Credential type **gitHubV3RESTAPIApi**, with an editable **Base URL** field, plus: no auth fields (the spec declared no security requirements).
|
|
20
|
+
- Default Base URL: `{protocol}://{hostname}/api/v3` (override it in the credential's "Base URL" field to point at a different environment)
|
|
30
21
|
|
|
31
22
|
## Using the AI Agent tool node
|
|
32
23
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class GitHubV3RESTAPIApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
test: ICredentialTestRequest;
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GitHubV3RESTAPIApi = void 0;
|
|
4
|
+
class GitHubV3RESTAPIApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'gitHubV3RESTAPIApi';
|
|
7
|
+
this.displayName = 'GitHub v3 REST API';
|
|
8
|
+
this.documentationUrl = '';
|
|
9
|
+
this.properties = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'Base URL',
|
|
12
|
+
name: 'baseUrl',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: '{protocol}://{hostname}/api/v3',
|
|
15
|
+
required: true,
|
|
16
|
+
description: 'Base URL every request is sent to. Change this to point the node at a different environment (staging, self-hosted, etc.).',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
this.test = {
|
|
20
|
+
request: {
|
|
21
|
+
baseURL: '={{$credentials.baseUrl}}',
|
|
22
|
+
url: '/manage/v1/cluster/status',
|
|
23
|
+
method: 'GET',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GitHubV3RESTAPIApi = GitHubV3RESTAPIApi;
|