mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
* 👕 Enable `consistent-type-imports` for nodes-base * 👕 Apply to nodes-base * ⏪ Undo unrelated changes * 🚚 Move to `.eslintrc.js` in nodes-base * ⏪ Revert "Enable `consistent-type-imports` for nodes-base" This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c. * 👕 Fix severity
30 lines
1.0 KiB
TypeScript
30 lines
1.0 KiB
TypeScript
import type { 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[];
|
|
};
|
|
}
|