@digitalstories/n8n-nodes-infomaniak
Version:
n8n nodes to interact with Infomaniak services (Kchat)
76 lines • 2.15 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fileFields = exports.fileOperations = void 0;
exports.fileOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['file'],
},
},
options: [
{
name: 'Upload File',
value: 'uploadFile',
action: 'Upload a file',
description: 'Upload a file to a channel',
},
{
name: 'Get File Details',
value: 'getFileDetails',
action: 'Get details of a file',
description: 'Get details of a file by ID',
},
],
default: 'uploadFile',
},
];
exports.fileFields = [
{
displayName: 'Channel Name or ID',
name: 'channelId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getChannels',
},
displayOptions: {
show: {
resource: ['file'],
operation: ['uploadFile'],
},
},
default: '',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
},
{
displayName: 'Binary Property',
name: 'binaryPropertyName',
type: 'string',
displayOptions: {
show: {
resource: ['file'],
operation: ['uploadFile'],
},
},
default: 'data',
description: 'Name of the binary property containing the file to upload',
},
{
displayName: 'File ID',
name: 'fileId',
type: 'string',
displayOptions: {
show: {
resource: ['file'],
operation: ['getFileDetails'],
},
},
default: '',
description: 'The ID of the file to get details for',
},
];
//# sourceMappingURL=FileDescription.js.map