n8n/packages/nodes-base/nodes/Slack/V2/MessageInterface.ts
Jon 40dd02f360
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
feat(Slack Node): Update wait for approval to use markdown (#11754)
2024-11-20 20:57:27 +00:00

39 lines
611 B
TypeScript

export interface IAttachment {
fields: {
item?: object[];
};
}
// Used for SendAndWaitMessage
export interface TextBlock {
type: string;
text: string;
emoji?: boolean;
}
export interface SectionBlock {
type: 'section';
text: TextBlock;
}
export interface DividerBlock {
type: 'divider';
}
export interface ButtonElement {
type: 'button';
style?: 'primary';
text: TextBlock;
url: string;
}
export interface ActionsBlock {
type: 'actions';
elements: ButtonElement[];
}
export interface SendAndWaitMessageBody {
channel: string;
blocks: Array<DividerBlock | SectionBlock | ActionsBlock>;
}