Files
Automata/packages/nodes-base/nodes/Mattermost/v1/actions/channel/search/description.ts
Matthew Walther 1b993e4022 feat(Mattermost Node): Add support for Channel Search (#2687)
* 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>
2022-03-19 19:57:53 +01:00

89 lines
1.3 KiB
TypeScript

import {
ChannelProperties,
} from '../../Interfaces';
export const channelSearchDescription: ChannelProperties = [
{
displayName: 'Team ID',
name: 'teamId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTeams',
},
options: [],
default: '',
required: true,
displayOptions: {
show: {
operation: [
'search',
],
resource: [
'channel',
],
},
},
description: 'The Mattermost Team.',
},
{
displayName: 'Search Term',
name: 'term',
type: 'string',
default: '',
placeholder: 'General',
displayOptions: {
show: {
operation: [
'search',
],
resource: [
'channel',
],
},
},
required: true,
description: 'The search term for Channels in a Team',
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Whether to return all results',
displayOptions: {
show: {
operation: [
'search',
],
resource: [
'channel',
],
},
},
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
default: 100,
description: 'The number of results to return',
typeOptions: {
minValue: 1,
maxValue: 100,
},
displayOptions: {
show: {
operation: [
'search',
],
resource: [
'channel',
],
returnAll: [
false,
],
},
},
},
];