mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-11 07:04:06 -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>
34 lines
1 KiB
TypeScript
34 lines
1 KiB
TypeScript
import {
|
|
AllEntities,
|
|
Entity,
|
|
PropertiesOf,
|
|
} from 'n8n-workflow';
|
|
|
|
type MattermostMap = {
|
|
channel: 'addUser' | 'create' | 'delete' | 'members' | 'restore' | 'statistics' | 'search';
|
|
message: 'delete' | 'post' | 'postEphemeral';
|
|
reaction: 'create' | 'delete' | 'getAll';
|
|
user: 'create' | 'deactive' | 'getAll' | 'getByEmail' | 'getById' | 'invite';
|
|
};
|
|
|
|
export type Mattermost = AllEntities<MattermostMap>;
|
|
|
|
export type MattermostChannel = Entity<MattermostMap, 'channel'>;
|
|
export type MattermostMessage = Entity<MattermostMap, 'message'>;
|
|
export type MattermostReaction = Entity<MattermostMap, 'reaction'>;
|
|
export type MattermostUser = Entity<MattermostMap, 'user'>;
|
|
|
|
export type ChannelProperties = PropertiesOf<MattermostChannel>;
|
|
export type MessageProperties = PropertiesOf<MattermostMessage>;
|
|
export type ReactionProperties = PropertiesOf<MattermostReaction>;
|
|
export type UserProperties = PropertiesOf<MattermostUser>;
|
|
|
|
export interface IAttachment {
|
|
fields: {
|
|
item?: object[];
|
|
};
|
|
actions: {
|
|
item?: object[];
|
|
};
|
|
}
|