mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-17 18:14:05 -08:00
34 lines
1,023 B
TypeScript
34 lines
1,023 B
TypeScript
|
import {
|
||
|
AllEntities,
|
||
|
Entity,
|
||
|
PropertiesOf,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
type MattermostMap = {
|
||
|
channel: 'addUser' | 'create' | 'delete' | 'members' | 'restore' | 'statistics';
|
||
|
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[];
|
||
|
};
|
||
|
}
|