UNPKG

@digitalstories/n8n-nodes-infomaniak

Version:

n8n nodes to interact with Infomaniak services (Kchat)

79 lines 2.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.channelFields = exports.channelOperations = void 0; exports.channelOperations = [ { displayName: 'Opération', name: 'operation', type: 'options', options: [ { name: 'Publier un post', value: 'createPost', description: 'Publier un post dans un channel', }, { name: 'Lister les posts', value: 'listPosts', description: "Lister les posts d'un channel", }, ], default: 'createPost', description: "L'opération à effectuer sur un channel.", }, ]; exports.channelFields = [ { displayName: 'Channel', name: 'channelId', type: 'options', typeOptions: { loadOptionsMethod: 'getChannels', }, displayOptions: { show: { operation: ['createPost', 'listPosts'], }, }, default: '', description: 'Sélectionnez le channel', }, { displayName: 'Contenu du post', name: 'postContent', type: 'string', displayOptions: { show: { operation: ['createPost'], }, }, default: '', description: 'Le contenu du post à publier', }, { displayName: 'Ajouter un fichier', name: 'addFile', type: 'boolean', displayOptions: { show: { operation: ['createPost'], }, }, default: false, description: 'Voulez-vous ajouter un fichier au post ?', }, { displayName: 'Fichier (optionnel)', name: 'binaryPropertyName', type: 'string', displayOptions: { show: { operation: ['createPost'], addFile: [true], }, }, default: '', description: 'Nom de la propriété binaire contenant le fichier à attacher (optionnel)', }, ]; //# sourceMappingURL=ChannelDescription.js.map