n8n-nodes-base
Version:
Base nodes of n8n
34 lines (30 loc) • 1 kB
text/typescript
/**
* Mattermost Node - Version 1
* Discriminator: resource=reaction, operation=create
*/
interface Credentials {
mattermostApi: CredentialReference;
}
/** Create a new channel */
export type MattermostV1ReactionCreateParams = {
resource: 'reaction';
operation: 'create';
/**
* ID of the user sending the reaction. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
userId?: string | Expression<string>;
/**
* ID of the post to react to. Obtainable from the post link: <code>https://mattermost.internal.n8n.io/[server]/pl/[postId]</code>
*/
postId?: string | Expression<string> | PlaceholderValue;
/**
* Emoji to use for this reaction
*/
emojiName?: string | Expression<string> | PlaceholderValue;
};
export type MattermostV1ReactionCreateNode = {
type: 'n8n-nodes-base.mattermost';
version: 1;
credentials?: Credentials;
config: NodeConfig<MattermostV1ReactionCreateParams>;
};