n8n-nodes-chatwork
Version:
Provides an n8n community node for integrating Chatwork messaging and task APIs into automated workflows.
40 lines • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.roomLeaveOrDeleteProperties = void 0;
const properties_1 = require("../../shared/properties");
const enums_1 = require("../../shared/enums");
const utils_1 = require("../../shared/utils");
exports.roomLeaveOrDeleteProperties = (0, utils_1.withDisplayOptions)([
properties_1.roomIdProperty,
{
displayName: 'Action Type',
name: 'actionType',
type: 'options',
default: 'leave',
options: [
{
name: 'Leave Room',
value: 'leave',
description: 'Leave the room',
},
{
name: 'Delete Room (Admin Only)',
value: 'delete',
description: 'Delete the room (requires admin privileges)',
},
],
description: 'Type of action',
routing: {
send: {
type: 'body',
property: 'action_type',
},
},
},
], {
show: {
resource: [enums_1.Resource.ROOM],
operation: [enums_1.RoomOperations.LEAVE_OR_DELETE],
},
});
//# sourceMappingURL=leaveOrDelete.js.map