n8n-nodes-chatwork
Version:
Provides an n8n community node for integrating Chatwork messaging and task APIs into automated workflows.
49 lines • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Chatwork = void 0;
const getContacts_1 = require("./loadOptions/getContacts");
const getRooms_1 = require("./listSearch/getRooms");
const resources_1 = require("./resources");
class Chatwork {
constructor() {
this.description = {
displayName: 'Chatwork',
name: 'chatwork',
subtitle: '={{$parameter["resource"].toUpperCase() + ": " + $parameter["operation"].toTitleCase()}}',
icon: 'file:../../icons/Chatwork.svg',
group: ['input'],
version: 1,
description: 'Retrieve data from Chatwork API.',
defaults: {
name: 'Chatwork',
},
usableAsTool: true,
inputs: ["main"],
outputs: ["main"],
credentials: [
{
name: 'chatworkApi',
required: true,
},
],
requestDefaults: {
baseURL: 'https://api.chatwork.com/v2',
headers: {
Accept: 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
},
},
properties: [...resources_1.resourceProperties],
};
this.methods = {
listSearch: {
getRooms: getRooms_1.getRooms,
},
loadOptions: {
getContacts: getContacts_1.getContacts,
},
};
}
}
exports.Chatwork = Chatwork;
//# sourceMappingURL=Chatwork.node.js.map