n8n-nodes-chatwork
Version:
Provides n8n nodes to retrieve data from Chatwork API.
37 lines (36 loc) • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MyProperty = exports.MyOptionsValue = void 0;
const Resource_1 = require("./Resource");
var MyOptionsValue;
(function (MyOptionsValue) {
MyOptionsValue["STATUS"] = "status";
MyOptionsValue["TASKS"] = "tasks";
})(MyOptionsValue || (exports.MyOptionsValue = MyOptionsValue = {}));
exports.MyProperty = {
displayName: 'Operation',
name: 'operation',
type: 'options',
required: true,
noDataExpression: true,
displayOptions: {
show: {
resource: [
Resource_1.ResourceOptionsValue.MY,
],
},
},
options: [
{
name: 'Get status',
value: MyOptionsValue.STATUS,
description: 'Get the number of: unread messages, unread To messages, and unfinished tasks',
},
{
name: 'Get tasks',
value: MyOptionsValue.TASKS,
description: 'Get the list of all unfinished tasks',
},
],
default: MyOptionsValue.STATUS,
};