mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 05:59:42 -08:00
1b993e4022
* Squashed commit of the following:
commit 9f76bdca9b4af4fd3ee429d1c381c3ed5529434c
Author: Matt Walther <matt@mashio.net>
Date: Sun Jan 16 16:40:34 2022 -0600
Mattermost Channel Search
* Add more boilerplate so Search action renders
* Changed order of search to make the operations alphabetical
* ⚡ Add pagination
Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
81 lines
1.5 KiB
TypeScript
81 lines
1.5 KiB
TypeScript
import * as create from './create';
|
|
import * as del from './del';
|
|
import * as members from './members';
|
|
import * as restore from './restore';
|
|
import * as addUser from './addUser';
|
|
import * as statistics from './statistics';
|
|
import * as search from './search';
|
|
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
export {
|
|
create,
|
|
del as delete,
|
|
members,
|
|
restore,
|
|
addUser,
|
|
statistics,
|
|
search,
|
|
};
|
|
|
|
|
|
export const descriptions: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'channel',
|
|
],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Add User',
|
|
value: 'addUser',
|
|
description: 'Add a user to a channel',
|
|
},
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create a new channel',
|
|
},
|
|
{
|
|
name: 'Delete',
|
|
value: 'delete',
|
|
description: 'Soft delete a channel',
|
|
},
|
|
{
|
|
name: 'Member',
|
|
value: 'members',
|
|
description: 'Get a page of members for a channel',
|
|
},
|
|
{
|
|
name: 'Restore',
|
|
value: 'restore',
|
|
description: 'Restores a soft deleted channel',
|
|
},
|
|
{
|
|
name: 'Search',
|
|
value: 'search',
|
|
description: 'Search for a channel',
|
|
},
|
|
{
|
|
name: 'Statistics',
|
|
value: 'statistics',
|
|
description: 'Get statistics for a channel',
|
|
},
|
|
],
|
|
default: 'create',
|
|
description: 'The operation to perform.',
|
|
},
|
|
...create.description,
|
|
...del.description,
|
|
...members.description,
|
|
...restore.description,
|
|
...addUser.description,
|
|
...statistics.description,
|
|
...search.description,
|
|
];
|