tambahan
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "n8n-nodes-jenna-mcp",
|
||||
"version": "1.0.41",
|
||||
"version": "1.0.43",
|
||||
"main": "dist/index.js",
|
||||
"keywords": [
|
||||
"n8n",
|
||||
|
||||
@@ -520,12 +520,23 @@ class JennaMcp {
|
||||
displayOptions: { show: { operation: ["mcp_postApiPengaduanUpload"] } },
|
||||
},
|
||||
{
|
||||
displayName: "Body file",
|
||||
name: "body_file",
|
||||
displayName: "Body data",
|
||||
name: "body_data",
|
||||
type: "string",
|
||||
default: "",
|
||||
placeholder: "file",
|
||||
description: "file",
|
||||
placeholder: "data",
|
||||
description: "data",
|
||||
displayOptions: {
|
||||
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: "Body mimetype",
|
||||
name: "body_mimetype",
|
||||
type: "string",
|
||||
default: "",
|
||||
placeholder: "mimetype",
|
||||
description: "mimetype",
|
||||
displayOptions: {
|
||||
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
|
||||
},
|
||||
@@ -1160,8 +1171,9 @@ class JennaMcp {
|
||||
break;
|
||||
}
|
||||
case "mcp_postApiPengaduanUpload_base64": {
|
||||
const body_file = this.getNodeParameter("body_file", i, "");
|
||||
const body = { file: body_file };
|
||||
const body_data = this.getNodeParameter("body_data", i, "");
|
||||
const body_mimetype = this.getNodeParameter("body_mimetype", i, "");
|
||||
const body = { data: body_data, mimetype: body_mimetype };
|
||||
url = baseUrl + "/api/pengaduan/upload-base64";
|
||||
method = "post";
|
||||
axiosConfig = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "n8n-nodes-jenna-mcp",
|
||||
"version": "1.0.41",
|
||||
"version": "1.0.43",
|
||||
"main": "dist/index.js",
|
||||
"keywords": [
|
||||
"n8n",
|
||||
|
||||
@@ -542,12 +542,24 @@ export class JennaMcp implements INodeType {
|
||||
},
|
||||
|
||||
{
|
||||
displayName: "Body file",
|
||||
name: "body_file",
|
||||
displayName: "Body data",
|
||||
name: "body_data",
|
||||
type: "string",
|
||||
default: "",
|
||||
placeholder: "file",
|
||||
description: "file",
|
||||
placeholder: "data",
|
||||
description: "data",
|
||||
displayOptions: {
|
||||
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
displayName: "Body mimetype",
|
||||
name: "body_mimetype",
|
||||
type: "string",
|
||||
default: "",
|
||||
placeholder: "mimetype",
|
||||
description: "mimetype",
|
||||
displayOptions: {
|
||||
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
|
||||
},
|
||||
@@ -1290,8 +1302,13 @@ export class JennaMcp implements INodeType {
|
||||
}
|
||||
|
||||
case "mcp_postApiPengaduanUpload_base64": {
|
||||
const body_file = this.getNodeParameter("body_file", i, "") as any;
|
||||
const body = { file: body_file };
|
||||
const body_data = this.getNodeParameter("body_data", i, "") as any;
|
||||
const body_mimetype = this.getNodeParameter(
|
||||
"body_mimetype",
|
||||
i,
|
||||
"",
|
||||
) as any;
|
||||
const body = { data: body_data, mimetype: body_mimetype };
|
||||
url = baseUrl + "/api/pengaduan/upload-base64";
|
||||
method = "post";
|
||||
axiosConfig = {
|
||||
|
||||
Reference in New Issue
Block a user