UNPKG

@digitalstories/n8n-nodes-infomaniak

Version:

n8n nodes to interact with Infomaniak services (Kchat)

90 lines 2.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.channelFields = exports.channelOperations = void 0; exports.channelOperations = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: ['channel'], }, }, options: [ { name: 'Create Post', value: 'createPost', action: 'Create a post in a channel', description: 'Create a post in a channel', }, { name: 'Get Posts', value: 'listPosts', action: 'Get posts from a channel', description: 'Get posts from a channel', }, ], default: 'createPost', }, ]; exports.channelFields = [ { displayName: 'Channel Name or ID', name: 'channelId', type: 'options', typeOptions: { loadOptionsMethod: 'getChannels', }, displayOptions: { show: { resource: ['channel'], operation: ['createPost', 'listPosts'], }, }, default: '', description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>', }, { displayName: 'Message', name: 'postContent', type: 'string', displayOptions: { show: { resource: ['channel'], operation: ['createPost'], }, }, default: '', description: 'The content of the post to publish', }, { displayName: 'Add File', name: 'addFile', type: 'boolean', displayOptions: { show: { resource: ['channel'], operation: ['createPost'], }, }, default: false, description: 'Whether to add a file to the post', }, { displayName: 'Binary Property', name: 'binaryPropertyName', type: 'string', displayOptions: { show: { resource: ['channel'], operation: ['createPost'], addFile: [true], }, }, default: 'data', description: 'Name of the binary property containing the file to be attached', }, ]; //# sourceMappingURL=ChannelDescription.js.map